Unable to start minikube with Hyper V

10/2/2019

I am trying to start minikube on my machine but it gives an error :

 Error: [VBOX_NOT_FOUND] create: precreate: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path

When I installed VirtualBox then and tried to start minikube it says that VirtualBox and Hyper V in conflict. So what is the way to get it started?

Should I disable Hyper V and install VirtualBox or is there a way to use Hyper V ?

-- user1474111
kubernetes
minikube

1 Answer

10/3/2019

Error: [VBOX_NOT_FOUND] create: precreate: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path

means that Minikube tries to start using the default hypervisor which is Virtualbox (ref) and it is looking for VBoxManage command in your system's PATH environment variable which of course is not present there if VirtualBox is not installed.

When you want to use a different hypervisor ( and you can do it as Minikube for Windows also supports Hyper-V ( ref ) you need to provide additional flag to minikube start command, specifying the virtualization technology that you want it to use. If you want it to use Hyper-V, it should look like this:

minikube start --vm-driver=hyperv 

Additionally you may want to set hyper as your default driver. You can do it with the following command:

minikube config set vm-driver hyperv

You can also find this information here.

-- mario
Source: StackOverflow