Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 459
Saty Avatar asked Sep 11 '18 13:09

Saty


People also ask

Can you run minikube in a VM?

minikube is a tool that makes it easy to run Kubernetes locally. It runs a single-node Kubernetes cluster inside a virtual machine (VM) on your laptop.

How do I access minikube VM?

If you want to ssh into your Minikube node/VM, then use SSH keys. You can use a Windows client application like WinSCP to configure the keys for your VM. If the format of keys is not as expected (. ppk), then use another client called PuttyGen to convert the keys into the expected format.


2 Answers

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.

like image 74
Saty Avatar answered Sep 29 '22 17:09

Saty


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)

like image 30
Nepomucen Avatar answered Sep 29 '22 16:09

Nepomucen