-
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
Unable to start minikube for hyperv if vmware module is present #2226
Comments
This is found in hyper-v\powershell.go on line 58. If that would to be |
I wonder if I am seeing the same issue: I have the VMware PowerCLI modules installed as well, I received the following precreate check error during installation:
I have tried running: The first time I run 'get-command new-vm', it lists it from the VMware module: but if I specify hyper-v\new-vm it will list it, and then subsequent queries return hyper-v:
I tried removing the VMware module for the session, and still receive the error above. |
As mentioned above, the problem occurs because of a naming collision between commands in the Hyper-V and VMware PowerCLI modules. The affected code is in the docker machine driver, so I submitted a pull request to fix docker/machine#4404. Not sure of the protocol here. Do I need to wait for Docker to merge my pull request, then submit a minikube pull request that incorporates all docker machine updates to that point, or should I submit a pull request that only fixes this specific issue? |
Fixes kubernetes#2226 Signed-off-by: Dave May <[email protected]>
Fixes kubernetes#2226 Signed-off-by: Dave May <[email protected]>
Fixed by #2586 |
**this is a BUG REPORT:
Please provide the following details:
Environment:
Minikube version (use
minikube version
): v0.23.0cat ~/.minikube/machines/minikube/config.json | grep DriverName
): hypervcat ~/.minikube/machines/minikube/config.json | grep -i ISO
orminikube ssh cat /etc/VERSION
): minikube-v0.23.6.isoThe above can be generated in one go with the following commands (can be copied and pasted directly into your terminal):
echo "";
echo "ISO version";
grep -i ISO ~/.minikube/machines/minikube/config.json
What happened:
If i try to start minikube with hyperv driver it tells me hyperv is not present when checking for the new-vm command
What you expected to happen: It should detect new-vm of the hyper-v module as hyper-v\new-vm works
How to reproduce it (as minimally and precisely as possible):
Output of
minikube logs
(if applicable):Anything else do we need to know:
This is easily fixed, by checking if the hyper-v\new-vm command is present. It now checks for new-vm, Gets the first item of the returned array (in this case hyperv, and vmware), then checks the module it belongs to. If this is vmware, it fails.
Replace the new-vm powershell command with hyper-v\new-vm and check the entire array for hyper-v module to be present and this works as exepected.
The text was updated successfully, but these errors were encountered: