minikube: minikube not starting on Windows 10 with Hyper-V
Is this a BUG REPORT or FEATURE REQUEST? (choose one): Bug Report
Please provide the following details:
Environment:
Minikube version v0.23.0
- OS Windows 10 Enterprise version 1703 build 15063.483
- VM Driver Hyper-V
- ISO version
What happened: minikube will not start. Sometimes it hangs at “Starting VM…” and sometimes it gives an error: PS C:\WINDOWS\system32> minikube start --vm-driver=hyperv --hyperv-virtual-switch=ExternalSwitch Starting local Kubernetes v1.8.0 cluster… Starting VM… E1109 20:44:16.687707 10552 start.go:150] Error starting host: Error starting stopped host: exit status 1.
Retrying. E1109 20:44:16.725211 10552 start.go:156] Error starting host: Error starting stopped host: exit status 1
What you expected to happen: minikube starts and the local cluster is available to deploy pods and services.
How to reproduce it (as minimally and precisely as possible): Open powershell as administrator Enter minikube start --vm-driver=hyperv --hyperv-virtual-switch=ExternalSwitch
Output of minikube logs (if applicable):
F1109 21:07:39.528007 15212 logs.go:50] Error getting cluster bootstrapper: getting localkube bootstrapper: getting ss
h client: Error creating new ssh host from driver: Error getting ssh host name for driver: Host is not running
Anything else do we need to know: I did get minikube to start once, and was able to run a ReplicationController with a set of pods, and then it suddenly quit running for no reason. I have restarted multiple times since then, but have not been able to successfully start minikube. Hyper-V is running and I can successfully run VMs. Docker is running and I was able to create a container and use the ExternalSwitch.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 13
- Comments: 24 (1 by maintainers)
Quick summary for those seeing similar issues:
First create a vSwitch in Hyper-V
Once done make sure to start clean, remove ~/.minikube and remove any VM you tried to create before.
Once you’re ready, make it happen:
I had the same behavior, but due to 2 reasons:
Now I am experiencing some CPU overusage by minikube, but that’s a different topic 😃 So it’s still fun 😃 I hope this helps.
Had the same issue, fixed by selecting the correct NIC, purging all caches (basically rm ~/.minikube/) and then running minikube start again, with the correct flags. Thank you @dsebastien !
Had the same issue, fixed by not setting the virtual switch.
Here, the cluster will not get external IP, because the DHCP server only provides addresses to registered devices. So the external switch is actually guaranteed to break everything.
I have tried @dsebastien suggestions but did not work on my case. I’m still running into issues with “crio”.
Any other suggestions? I have tried almost everything I could find on the net.
Thank you
@dsebastien Thanks the detailed fix -I was able to get mine running after reading the post above. Clearing out the ./minikube was the kicker for me.