Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.
Environment
C:\Users\Liu.D.H>ver
Microsoft Windows [Version 10.0.19041.264]
C:\Users\Liu.D.H>bcdedit
Windows Boot Manager
--------------------
identifier {bootmgr}
device partition=\Device\HarddiskVolume1
description Windows Boot Manager
locale en-US
inherit {globalsettings}
default {current}
resumeobject {8c132511-806f-11e9-8860-f798d1b7a8f1}
displayorder {current}
{89f269f4-cc9f-11e6-8727-64006a16df31}
{8c132516-806f-11e9-8860-f798d1b7a8f1}
toolsdisplayorder {memdiag}
timeout 5
Windows Boot Loader
-------------------
identifier {current}
device partition=C:
path \WINDOWS\system32\winload.exe
description Windows 10
locale en-US
inherit {bootloadersettings}
recoverysequence {8c132514-806f-11e9-8860-f798d1b7a8f1}
displaymessageoverride Recovery
recoveryenabled Yes
allowedinmemorysettings 0x15000075
osdevice partition=C:
systemroot \WINDOWS
resumeobject {8c132511-806f-11e9-8860-f798d1b7a8f1}
nx OptIn
bootmenupolicy Legacy
hypervisorlaunchtype Off
Windows Boot Loader
-------------------
identifier {89f269f4-cc9f-11e6-8727-64006a16df31}
device partition=\Device\HarddiskVolume1
path \Windows\system32\winload.exe
description Windows 7
locale zh-CN
inherit {bootloadersettings}
osdevice partition=\Device\HarddiskVolume1
systemroot \Windows
resumeobject {89f269f3-cc9f-11e6-8727-64006a16df31}
nx OptIn
detecthal Yes
Windows Boot Loader
-------------------
identifier {8c132516-806f-11e9-8860-f798d1b7a8f1}
device partition=C:
path \WINDOWS\system32\winload.exe
description Windows10 with Hyper-V
locale en-US
inherit {bootloadersettings}
recoverysequence {8c132514-806f-11e9-8860-f798d1b7a8f1}
displaymessageoverride Recovery
recoveryenabled Yes
allowedinmemorysettings 0x15000075
osdevice partition=C:
systemroot \WINDOWS
resumeobject {8c132511-806f-11e9-8860-f798d1b7a8f1}
nx OptIn
bootmenupolicy Legacy
hypervisorlaunchtype Auto
C:\Users\Liu.D.H>systeminfo
Host Name: DESKTOP-LDH
OS Name: Microsoft Windows 10 Education
OS Version: 10.0.19041 N/A Build 19041
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
Registered Owner: Windows User
Registered Organization:
Product ID: 00328-10000-00001-AA635
Original Install Date: 2020-05-11, 22:13:14
System Boot Time: 2020-06-08, 10:12:11
System Manufacturer: Dell Inc.
System Model: Vostro 3900
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: Intel64 Family 6 Model 60 Stepping 3 GenuineIntel ~3601 Mhz
BIOS Version: Dell Inc. A10, 2015-07-30
Windows Directory: C:\WINDOWS
System Directory: C:\WINDOWS\system32
Boot Device: \Device\HarddiskVolume1
System Locale: zh-cn;Chinese (China)
Input Locale: zh-cn;Chinese (China)
Time Zone: (UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi
Total Physical Memory: 16,301 MB
Available Physical Memory: 9,703 MB
Virtual Memory: Max Size: 33,709 MB
Virtual Memory: Available: 26,300 MB
Virtual Memory: In Use: 7,409 MB
Page File Location(s): C:\pagefile.sys
Domain: WORKGROUP
Logon Server: \\DESKTOP-LDH
Hotfix(s): 6 Hotfix(s) Installed.
[01]: KB4552925
[02]: KB4534170
[03]: KB4537759
[04]: KB4545706
[05]: KB4557968
[06]: KB4556803
Network Card(s): 4 NIC(s) Installed.
[01]: TAP-Windows Adapter V9
Connection Name: ไปฅๅคช็ฝ
Status: Media disconnected
[02]: Realtek PCIe GBE Family Controller
Connection Name: Ethernet_Realtek
DHCP Enabled: Yes
DHCP Server: 113.55.112.1
IP address(es)
[01]: 113.55.127.140
[02]: fe80::3d0a:ecde:2178:d77c
[03]: 2001:250:2800:cc09:6600:6aff:fe16:df31
[03]: Realtek RTL8188CU Wireless LAN 802.11n USB 2.0 Network Adapter
Connection Name: Wi-Fi 2
Status: Media disconnected
[04]: Microsoft KM-TEST Loopback Adapter
Connection Name: Npcap Loopback Adapter
DHCP Enabled: Yes
DHCP Server: 255.255.255.255
IP address(es)
[01]: 169.254.104.11
[02]: fe80::d8bf:11ab:7b05:680b
Hyper-V Requirements: VM Monitor Mode Extensions: Yes
Virtualization Enabled In Firmware: Yes
Second Level Address Translation: Yes
Data Execution Prevention Available: Yes
C:\Users\Liu.D.H>

Steps to reproduce
Open Ubuntu 18.04 or 20.04.
Expected behavior
Works as expected.
Actual behavior

I can confirm that I have enabled Virtual Machine Platform and VT-x. But the errors when I started Ubuntu is confused.
And for some reasons I do not want to enable Hyper-V features. From the doc (https://docs.microsoft.com/en-us/windows/wsl/), it is not a requirement for WSL2.
From the doc https://docs.microsoft.com/en-us/windows/wsl/wsl2-faq, It seems that hyper-v is a requirement when running wsl2.
So I have to enable hyper-v? I will test it and report later.
Hope to document enable Hyper-V in https://docs.microsoft.com/en-us/windows/wsl/install-win10 when install and run wsl2.
DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-Vbcdedit /set hypervisorlaunchtype auto
@liudonghua123 - The Hyper-V feature is not required, but Virtual Machine Platform (which includes the Hyper-V hypervisor) is required.
I get same error after clean install, Win 10 Home. Tried many times to enable/reenable features and rebooting pc. Virtualization is enabled in bios and shown as active in task manager. With clean install of ubuntu i get error WslRegisterDistribution failed with error: 0x80370102. Really disappointed as it works on laptop but not on desktop....
I suspect that hyper-v is somehow enabled on my pc, but i can disable it scince im running with home edition. It appears when i disable virtualization in bios
suddenly resolved it by resetting bios.
@benhillis From the doc https://docs.microsoft.com/en-us/windows/wsl/wsl2-faq, It seems that hyper-v is a requirement when running wsl2. If I disabled it, then I got Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS. error message. I have tried many times.
The faq says (quoth) "...WSL uses Hyper-V architecture to enable its virtualization. This architecture will be available in the 'Virtual Machine Platform' optional component". That is the checkbox you want, and you look good:

You also seem okay as far as Hyper-V requirements go, notably your BIOS, per your systeminfo output in the OP.
Collect detailed logs.
@benhillis there is probably some semi-actionable here, at least in terms of user feedback in the error path. The upcoming wsl --install feature might mitigate some fails for people "doing it wrong", but there is at least some evidence of folks who seem to have their prerequisite ducks in line, and yet wsl.exe still tells them to "Please enable the Virtual Machine Platform". Which is unreasonably confusing when they already have VMP enabled. The WSL stack knows (or can at least determine) whether VMP is enabled and whether Windows thinks the BIOS is okay.
Seems that NX Pages protection can be issue, enable it if the WSL2 fails to launch.
I'm having the same issue. i updated my windows system, restarted and keep getting this message.
I have been running wsl2 with no issues and all of a sudden this is now occurring.
Same problem: After restart my computer for an update, i can not start my wsl2 Ubuntu with same error message.
I'm having the same issue. i updated my windows system, restarted and keep getting this message.
I have been running wsl2 with no issues and all of a sudden this is now occurring.
I figured out my issue. It broke to do installing CS:GO ESEA client. In order to fix, i had to uninstall and disable and re-enable WSL features.
when i took your advice, I fixed unexpectedly. thanks ๏ผ
I'm having the same issue. i updated my windows system, restarted and keep getting this message. I have been running wsl2 with no issues and all of a sudden this is now occurring.
I figured out my issue. It broke to do installing CS:GO ESEA client. In order to fix, i had to uninstall and disable and re-enable WSL features. when i took your advice, I fixed unexpectedly. thanks ๏ผ
I was just glad to see that by enabling the following modules in Turn Windows features on or off, followed by a restart, I was able to convert wsl from v1 to v2 via wsl --set-version Ubuntu 2:
- [ ] Containers
- [x] Hyper-V
- [x] Virtual Machine Platform
- [ ] Windows Hypervisor Platform
- [ ] Windows Sandbox
- [x] Windows Subsystem for Linux
Seems to be kind of like brute force, but at least it works now ๐ Update: Adapted needed features from last test.
After the update to WSL2 and some reboots later, I had the same issue. Disabling and re-enabling WSL fixed the problem for me.
@spennymac Thanks for figuring that out! ๐
When I try to update to WSL 2 I get this as well. Of course I followed all the steps listed here https://docs.microsoft.com/en-us/windows/wsl/install-win10#update-to-wsl-2
PS C:\Users\admin> wsl --set-version Ubuntu-20.04 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
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
PS C:\Users\admin>
suffer this problem and still cannot fix it, even though I reinstall WSL and enable the virtualization in BIOS
Hope to document enable Hyper-V in https://docs.microsoft.com/en-us/windows/wsl/install-win10 when install and run wsl2.
DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-Vbcdedit /set hypervisorlaunchtype auto
bcdedit /set hypervisorlaunchtype auto
this command saved my life, thank you
I reset my BIOS and
bcdedit /set hypervisorlaunchtype auto
Really worked!
If anyone else come across this trying to upgrade to WSL2 from 1
- If you come across Kernel issues read this
- If you're getting virtualization bios error, look into updating bios for your motherboard
- Run
DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V&bcdedit /set hypervisorlaunchtype auto(Credit: @liudonghua123) - Everything should be working fine at this point