简体   繁体   中英

How to fix VM issue with minikube start ?

I am a beginner to Kubernetes and starting off with this tutorial. I installed VM and expected to be able to start a cluster by using the command:

minikube start

But I get the error:

Starting local Kubernetes v1.10.0 cluster...
Starting VM...
E0911 13:34:45.394430   41676 start.go:174] Error starting host: Error 
creating host: Error executing step: Creating VM.
: Error setting up host only network on machine start: The host-only 
adapter we just created is not visible. This is a well known 
VirtualBox bug. You might want to uninstall it and reinstall at least 
version 5.0.12 that is is supposed to fix this issue.

It says that it is a well known bug in Virtualbox but I installed its latest version. Any ideas?

Figured out the issue. VirtualBox was not installed correctly as Mac had blocked it. It wasn't obvious at first.

  • Restarting won't work if VirtualBox isn't installed correctly.

  • System Preferences -> Security & Privacy -> Allow -> Then allow the software corporation (in this case Oracle)

  • Restart

Now it worked as expected.

Have you tried restarting your computer after installing the VirtualBox ? (seems to be also a known bug to docker-machine which is used by minikube to initialize you local env)

This definitely worked for me, starting minikube by specifying vm-driver and kubernetes-version

minikube start --vm-driver=hyperkit --kubernetes-version v1.16.0

Sorry not writing the solution, but i found a good link through which you can get the issue resolved

https://medium.com/@DMeechan/fixing-the-installation-failed-virtualbox-error-on-mac-high-sierra-7c421362b5b5

Faced a similar issue in Mac after upgrading to big sur. The running minikube instance started giving the same error.

The solution that worked for me was to run a minikube delete , followed by a minikube start .

More combination of this option can be found in the thread below -

https://github.com/kubernetes/minikube/issues/3614

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM