WSL2 fails to run any distros with error 0x80370102
Microsoft Windows [Version 10.0.19043.1052]
Fresh install of WSL, hypervisors platform, virtual machine platform, windows subsystem for Linux, and WSL2 update installed. CPU Virtualization is enabled, but no distro can setup.

can anyone help?
#4120. Please collect WSL logs and post the backlink to the feedback item here.
https://aka.ms/AAcxty9
@BobbyBaratheon - can you verify that virtualization is enabled in your BIOS?
Easiest way is to look at msinfo32.exe
Says it is right in the cmd picture
Virtualization Enabled In Firmware: Yes
Root cause appears to be:
{"Error":-2143878910,"ErrorMessage":"The virtual machine could not be started because a required feature is not installed.","ErrorEvents":[{"Message":"Cannot create system 'ECEAFECC-E667-42F2-98BB-59AB37EABD25' since Hyper-V is not installed on the host."
Maybe something went wrong when the features were enabled. Can you to disable the virtual machine platform, reboot, enable it again, reboot again try to run wsl ?
I am having the same problem. I've tried disabling and enabling Virtual machine platform between restarts and it did not work. I've also did for Virtualization in the BIOS and it also did not work and I've tried a complete wsl reinstall as well without any success.
So I'm looking at the same error in W11 10.0.22000 on a Hyper-V VM. Best guess is problem has to do with missing TPM? I get the impression WSLg won't run on a VM, as no distro will install. Like the OP my error is:
PS C:\WINDOWS\system32> ubuntu Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x80370102 Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.
Press any key to continue...
If you're using HyperV, shutdown the VM and use this script in PowerShell:
set-vmprocessor nameofyourvm -ExposeVirtualizationExtensions $true
Next, disable dynamic RAM (HyperV) and start the VM.
This comment from another issue allowed WSL2/WSLg to run. The error text Error: 0x80370102 The virtual machine could not be started IMO was misleading, as I was already inside a "virtual machine"?? Maybe I'm overthinking as usual :)?
I'm having the same issue. WSL1 ran perfectly fine but WSL2 has not worked since it was released. I have Virtualization turned on, HyperV, etc. I have tried disabling them and reenabling, restarting, removing the ubuntu app and reinstalling. All to no avial.
Having this same issue. I was running wsl2 with no issues for around 4 months using docker to develop until around June 12th, 2021. Then I guess I updated windows and it hasn't worked since (or my wife installed Revit 2020, but I uninstalled it and it still doesn't work). I used to get the error that the Virtual Machine Platform wasn't installed so I couldn't open Ubuntu. So I backed up the Local State/ext4.vhdx (because wsl exporting feature won't work without the distro working apparently) And uninstalled VMP, WSL features, and the linux kernel update and my ubuntu distros. Then reinstalled them all following these instructions https://docs.microsoft.com/en-us/windows/wsl/install-win10.
Some system details: Version 21H1 (OS Build 19043.1165) Windows 10 Home Task manager on performance tab has Virtualization: Enabled.
I've tried a bunch of different solutions in a ton of different threads which have included a sampling of, uninstall docker desktop, uninstall and reinstall VMP and WSL features and distros, Set hyper-v launch type in bcdedit to auto, install VMP and WSL features, turn off virtualization in bios, enable virtualization in bios, and reinstall following the installation instructions above, restarting throughout the process, update some weird networking configurations, testing with windows hypervisor platform feature installed or uninstalled.
The one thing I can't do is enable/disable hyper-V feature because (I think) I'm on Windows 10 Home, which doesn't have hyper-V? (idk I just read it on this page https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/reference/hyper-v-requirements)
Though if I uninstall WSL completely I get information in my systeminfo that says hyper-v is up and running correctly, which is weird. With WSL installed it only says that it has detected a hypervisor so it doesn't show hyper-v info.
System Info:

Window Features:

~~I can't include the .etl file because github doesn't support it, I'll try to run through that weird feedback workflow.~~ EDIT Feedback link is here: https://aka.ms/AAdjc3r
Been stuck on this for at least 2 months, would love to get some of my projects back that are stuck on WSL. Any help is greatly appreciated. Thanks!
This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it.
Thank you!
Hello, I have the same problem except that my computer does not restart and runs the automatic recovery.
Still experiencing this exact same issue, what feedback can we provide? Or should we open separate tickets? Thanks.
A very strange thing happened to me today. I went to boot up Ubuntu WSL 2 just to test and see if it was still broken and I got a completely different error that directly me to this issue: https://github.com/microsoft/WSL/issues/4103 After uncompressing my LocalState folder (like this comment says: https://github.com/microsoft/WSL/issues/4103#issuecomment-501885534) Ubuntu installed correctly without a hitch and I'm using WSL 2 again now.
Super weird, I didn't change any virtualization settings or anything. Maybe windows update happened and somehow I got a better error message, so I could finally resolve this issue. Anyway, hope it helps.
Lol, after this long, I just upgraded to windows 11 and now it works fine, i can even use the GUI apps which is cool too. I never figured out what caused the original error tho, wish I did.
Having the exact opposite issue. I upgraded to windows 11 on the same hardware, with the exact same settings and now getting - Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.
Virtualization is enabled. The linux subsystem is installed. Ubuntu is installed. Not sure what else I can do. Been running this for years without issue before the change to windows 11.
Hi, I am also having the same issue on Windows 11.
Feedback: https://aka.ms/AAf0rot
Same issue on Windows 11 Home. If I turn off the hypervisor via bcdedit, it shows all required features available. Setting it back to auto with WSL, VM Platform, and Hypervisor Platform features enabled (and, yes, toggled many times) and rebooting results in Event Log showing failure to run WSL2 due to Hyper-V not installed on host.
Same issue here windows 11



Edit: I made a new installation of windows 11 and the problem doesn't present again I have wsl working well.
Guess I'm going to be another person to hop on this band of people reporting this. Same issue here, the same error message and everything enabled and setup. Guess this is just going to be ignored.