Enable Hypervisor

Apr 8, 2020  

Now that VMware 20H1 Tech Preview with Hyper-V support is available, I decided to upgrade my Worstation in order to use WSL 2 and Docker on top of Hyper-V.

I have however been struggling for hours to get Hyper-V to run. I consistently got an error message, asking me to enable Hardware assisted virtualization and Hardware assisted data-execution protection in the BIOS.

  1. I did not find any related setting in my BIOS, so I decided to reflash my in the hope this would help. I did not see any new options pop up. The ThinkStation P910 User Guide was of no help either.
  2. I made sure the Hyper-V role was installed.
  3. I made sure that every option pertaining to Hyper-V was enabled by running systeminfo from the command prompt.

I vaguely remembered disabling something related to Hyper-V a few months ago (yes, I even blogged about it), and I finally realized that I had disabled the the hypervisor at boot time, using bcdedit.

Here is how to turn the hypervisor back on:

bcdedit /set hypervisorlaunchtype auto

Now I have:

  • Hyper-V running.
  • VMware running on top of Hyper-V.
  • WSL 2 running on top of Hyper-V.
  • Docker running on top of Hyper-V.