-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minikube start: Allow Hyper-V virtual switch to be configured #561
Comments
This is a good idea, we will try to get this in. |
It appears as though you can set the hyper-v switch via the ENV variable HYPERV_VIRTUAL_SWITCH |
@swinterberger Well I tried your suggestion of setting the switch via the Env variable HYPERV_VIRTUAL_SWITCH but it does not work. It still picks up the Virtual Swtch created first (even though its internal) But you can always go change it in the Hyper V Manager. Thats what I did. Since by default it was picking the Internal Switch. IP could not be detected ...so everything including dashboard was failing. After I changed the VM to use the external switch , everything worked fine |
I'm not sure I follow. It being internal/external has nothing to do with the selection. It must either be the only vswitch in the list, queried first (somehow) or specified via ENV VAR. The specified switch must also be set to external or it won't work at all. Granted a new ver of minikube has released since I posted that but I still use it this way because I have multiple vswitches and without the ENV var it will not choose my external. I am on a windows machine (booo) so maybe that is the difference. |
@swinterberger What I meant was that it was picking always the first created virtual switch which on my laptop is an internal one.. But also creating the environment variable as you mentioned above, does not change the behavior. It still picks the 1st created switch. I have to change that switch via HyperV Manager later on |
Fixed with: #719 |
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
Feature request
Equivalent functionality to
--hyperv-virtual-switch
in Docker MachineMinikube version (use
minikube version
):0.9.0
Environment:
cat ~/.minikube/machines/minikubeVM/config.json | grep DriverName
): hypervdocker -v
): 1.12.0What happened:
Error creating machine: Error detecting OS: OS type not recognized
What you expected to happen:
Success!
How to reproduce it (as minimally and precisely as possible):
minikube start --vm-driver=hyperv
Anything else do we need to know:
The text was updated successfully, but these errors were encountered: