VirtualBox cannot run when Hyper-V is installed

Objective of this article to share how to solve the problem of VirtualBox can not run when Hyper-V is installed in windows machines. This problem might occur when we try to run VirtualBox where already docker was installed. Because docker internally enables Hyper-V configuration in windows which will be the problem to run VirtualBox.

VirtualBox can not run when Hyper-V is installed

There are total 3 steps which we must follow to enable/disable Hyper-V in Windows 10.

  1. Search for Apps & Features in Windows Search option
  2. Search for Turn Windows features on or off
  3. Select/deselect the Hyper-V option from the popup opened to enable/disable accordingly.

For more detailed explanation continue with further article.

  • Search for Apps & Features in Windows Search option: Look at the below image for more easiness to find Apps & Features option.
Windows Apps & Features
  • Search for Turn Windows features on or off
Turn Windows feature on or of
  • Select/Deselect the Hyper-V option from the popup opened: Deselect Hyper-V option and click on OK button to disable Hyper-V in your system. Since Hyper-V is OS level configuration, it will ask to restart the computer to make changes are affected.
Hyper-V enable/disable

We should restart the system to make affect of Hyper-V configuration changes. Afterwards, try to run the virtual box again. Hope it will run successfully without any failure.


Docker ToolBox for Windows

Docker Toolbox is for older Mac and Windows systems that do not meet the requirements of Docker Desktop for Mac and Docker Desktop for Windows. Mostly windows Home edition doesn’t support Docker Desktop.

Please follow below link to install docker tool box in windows :

After the installation ,following issue might occur in windows .

Issues :

  1. When we run Docker QuickStart terminal after the installation, following error pops up in command
  2. Unable to start the VM: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe startvm default –type headless failed:
  3. VBoxManage.exe: error: Raw-mode is unavailable courtesy of Hyper-V. (VERR_SUPDRV_NO_RAW_MODE_HYPER_V_ROOT)
  4. VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole
  5. Details: 00:00:01.943299 Power up failed (vrc=VERR_SUPDRV_NO_RAW_MODE_HYPER_V_ROOT, rc=E_FAIL (0X80004005))
  6. Looks like something went wrong in step ´Checking status on default´… Press any key to continue…

Resolution :

The above error is because of Hyper Vision . We need to enable HyperVision in windows with the below steps:

->Run a command prompt as administrator and execute:

dism /Online /Disable-Feature:Microsoft-Hyper-V

Note : For some cases ,you will get Feature name Microsoft-Hyper-V is unknown. when you trying to disable Hyper-V from Powershell. Please run below command

DISM /Online /Disable-Feature:HypervisorPlatform

->Reboot windows and type below in command prompt /powershell as admin.

bcdedit /set hypervisorlaunchtype off

If the above issue is not resolved after enabling hypervision then please follow below steps

-> Open C:\Program Files\Docker Toolbox

when docker toolbox was installed it should be as “${DOCKER_MACHINE}” create -d virtualbox $PROXY_ENV “${VM}”

Please edit start file as “${DOCKER_MACHINE}” create -d virtualbox -virtualbox-no-vtx-check $PROXY_ENV “${VM}”

-> Run bcdedit in powershell as admin mode,If hyper vision launcher type status OFF then its fine. If it is AUTO then run bcdedit /set hypervisorlaunchtype off to change status to OFF.

-> Reboot the system and start docker quick start