Score:1

Virtual Machine Platform Windows feature and virtualization in bios is enabled but getting error message

lc flag

I tried to install ubuntu 22.04 from the windows store but I get the following error:

Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.
For information please visit https://aka.ms/wsl2-install
Press any key to continue...

however both the Virtual Machine Platform windows feature is enabled and so is virtualization in the BIOS. Can there be anything else causing this error?

Score:2
vn flag

I'd definitely recommend trying @Dick's answer first if you are having this problem, but another option when this occurs is:

  • Go to Turn Windows features on or off in the Settings.
  • See if the Hyper-V option is selected, and deselect it if so.
  • Also deselect the Virtual Machine Platform at the same time.
  • Reboot
  • Re-enable the Virtual Machine Platform and reboot again.

Try WSL2.

If that works, and you need Hyper-V enabled on your system for other tasks, you should be able to:

  • Deselect Virtual Machine Manager
  • Re-select Hyper-V
  • Reboot

WSL2 can make use of either VMP or Hyper-V.

If the above doesn't work, at the very least you'll have some more data points for additional trouble-shooting.

Score:1
lc flag

Found this on another form online

Ran this command:

bcdedit /set hypervisorlaunchtype auto

rebooted and ubuntu launched. I didn't look into what the command actually does, so if someone would like to answer with additional details I'll accept the answer.

NotTheDr01ds avatar
vn flag
That's good info, and I'd encourage you to self-accept when the option becomes available (probably 48 hours?). The `bcdedit` tool is what modifies the boot options for the Windows bootloader. `hypervisorlaunchtype` is what tells Windows to actually *start* the Hypervisor (a.k.a. "VM manager"), which in this case is the "Virtual Machine Platform". The default *should* have been `auto` already, but something had apparently changed that in the past. Glad you got it working!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.