43

I installed docker. During installation, it complained that you can't have two virtualization environments, and that it would make docker the primary one. I said: "OK."

Now, I need to go back to enabling virtualbox. I uninstalled Docker, hoping it would put things back the way they were, but: no joy.

How do I re-enable virtualization for VirtualBox now that docker is gone?

Note: Virtualization bit is set / enabled on the chip.

OS: Win10 Enterprise.

DrDamnit
  • 4,736
  • 4
  • 23
  • 38
  • Just re-install VirtualBox. – Jonathon Reinhart Dec 13 '16 at 18:39
  • I did a repair installation. Will now completely uninstall, reboot, say a prayer to the Windows API gods, and try again... – DrDamnit Dec 13 '16 at 19:01
  • 3
    Uninstalled virtualbox, rebooted, re-installed. No joy. – DrDamnit Dec 13 '16 at 19:05
  • 1
    What if I need _both_ VirtualBox and Docker working on Win10? – Alexander Gonchiy Aug 31 '20 at 14:30
  • You cannot run them both at the same time. Docker on Windows is (essentially) creating a Linux VM to handle the kernel name spaces that docker relies on (and which is not available in Windows 10 as of 1 year, 9 months ago when I posted this question). Hyper-V and Docker are not compatible with each other. You have to pick one. – DrDamnit Sep 14 '20 at 19:57

2 Answers2

50

Virtualbox will get upset and not run if Microsoft Hyper-V is enabled.

Here's the solution:

  1. Open command prompt as administrator
    • search for 'command'
    • right-click then select 'run as administrator'
  2. paste the following command:

    dism.exe /Online /Disable-Feature:Microsoft-Hyper-V
    
  3. Then reboot.

David LeBauer
  • 31,011
  • 31
  • 115
  • 189
DrDamnit
  • 4,736
  • 4
  • 23
  • 38
12

To complete @DrDamnit answer, it is also possible to disable Microsoft Hyper-V from the menu.

  1. Search for "Turn Windows features on" on the start menu

Turn Windows features on and off

  1. Disable Hyper-V

Disabele Hyper-V

  1. Reboot your computer

Voilà

Alexis.Rolland
  • 5,724
  • 6
  • 50
  • 77