-
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 not starting on Windows 10 with Hyper-V #2181
Comments
Same behavior here. |
Here's a more detailed error log I got after deleting everything and trying again with
Actually it might just be because I don't have enough disk space available! ;-) |
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 have 700 GB free space, and I am using an external switch I set up in HyperV for Docker. Starting VM...
|
I've tried again with more disk space available and also after creating a dedicated (external) vSwitch, but I still get errors:
|
Digging into the logs using journalctl told me a bit more. crio.service seems to fail with:
|
Ok so it's really /usr/bin/crio that's not happy when starting up. Some refs: Sorry if my comments seem stupid but I'm discovering rkt, cni, etc just at the moment ;-) |
Okay, I've finally got it working. |
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:
|
@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. |
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 |
What worked for me was first following dsebastien's instructions in his last comment, however it still didn't work after that so I tried launching the minikube VM through the Hyper-V Manager and it showed me an error saying I don't have enough memory, so after putting in some more RAM and following dsebastien's instructions again, I got it working. |
What is interesting is that I can get the Minikube to start once, it works as expected, however, once I reboot the server, issuing a start of Minikube does not work anymore.
I find this very puzzling. If I roll back hte VM checkpoint I can create the Minikube again. I tried to clean up everything related to Minikube and it still errors. |
Creating an external virtual switch cuts my connection to our network (and as such, the internet). Is there a way to run minikube w/o loosing internet connection? |
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. |
Please have a try of a solution posted here: #2131 |
I have found the solution for this on #2255 |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Remember use "minikube delete" for clean configurations. |
Even though the above solution works just fine, I was also able to keep the virtual switch internal, by going to Control Panel\Network and Internet\Network and Sharing Center\Network Adapter (wifi or ethernet)"Properties" button"Sharing" tab, then ticked the "Allow other network users to connect through this computer's Internet connection" and picked from the dropdown list the "minikube" virtual switch. |
Is this a BUG REPORT or FEATURE REQUEST? (choose one): Bug Report
Please provide the following details:
Environment:
Minikube version
v0.23.0
Windows 10 Enterprise version 1703 build 15063.483
Hyper-V
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.
The text was updated successfully, but these errors were encountered: