Minikube: Improve error handling for "VirtualBox won't boot a 64bits VM when Hyper-V is activated"

Created on 4 Apr 2019  路  9Comments  路  Source: kubernetes/minikube

Shows the error bellow:
! Unable to start VM: create: precreate: This computer is running Hyper-V. VirtualBox won't boot a 64bits VM when Hyper-V is activated. Either use Hyper-V as a driver, or disable the Hyper-V hypervisor. (To skip this check, use --virtualbox-no-vtx-check)

good first issue help wanted kinbug prioritbacklog

Most helpful comment

I was able to deactivate hyper-V. However, now I get an error message from Docker that it requires Hyper-V to work properly, and minikube start just stops at Preparing Kubernetes v1.15.2 on Docker 18.09.8 ... indefinitely. My understanding is that running Docker containers is the main purpose of Kubernetes? Confused.

All 9 comments

@Dhiraj0007 IIUC are you using virtualbox to create the VM when Hyper-V is activated?

Yes

@Dhiraj0007 Only one hypervisor can run at a time, and since Hyper-V runs all the time as it is enabled virtualbox won't boot a 64bits VM. The workaround is to disable Hyper-V when you want to run VirtualBox.

@Dhiraj0007 try this workaround and lets see this works for you or not?

Did we find any solution for this problem?

When you want to use Hyper-V instead of the default vBox.

1) run CMD as admin
2) "minikube start --vm-driver hyperv"

3) optional, you might need this:
https://docs.docker.com/machine/drivers/hyper-v/

I was able to deactivate hyper-V. However, now I get an error message from Docker that it requires Hyper-V to work properly, and minikube start just stops at Preparing Kubernetes v1.15.2 on Docker 18.09.8 ... indefinitely. My understanding is that running Docker containers is the main purpose of Kubernetes? Confused.

I am also facing the similar problem , when you disable the deactivate hyper-V and it wont able to connect the virtual box itself. since i have download the latest version

@tstromberg Latest VirtualBox 6.1.16 can run 64bits VM with Hyper-V backend

Was this page helpful?
0 / 5 - 0 ratings