Description
**this is a BUG REPORT:
Please provide the following details:
Environment:
Minikube version (use minikube version
): v0.23.0
- OS (e.g. from /etc/os-release): Windows 10 Version 10.0.15063 Build 15063
- VM Driver (e.g.
cat ~/.minikube/machines/minikube/config.json | grep DriverName
): hyperv - ISO version (e.g.
cat ~/.minikube/machines/minikube/config.json | grep -i ISO
orminikube ssh cat /etc/VERSION
): minikube-v0.23.6.iso - Install tools:
- Others:
The above can be generated in one go with the following commands (can be copied and pasted directly into your terminal):
minikube version
echo "";
echo "OS:";
cat /etc/os-release
echo "";
echo "VM driver":
grep DriverName ~/.minikube/machines/minikube/config.json
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):
- install the vmware module (VMware.PowerCLI)
- make sure the hyper-v components are present.
- check if the new-vm commands is present (get-command hyper-v\new-vm) -> note I am calling hyper-v\new-vm, otherwise it could be that the VMware.VimAutomation.Core\new-vm command is returned.
- Start minikube with the hyperv driver
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.