WSL icon indicating copy to clipboard operation
WSL copied to clipboard

WSL2 fails to run any distros with error 0x80370102

Open BobbyBaratheon opened this issue 5 years ago • 33 comments

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. Screenshot 2021-06-15 163827 Screenshot 2021-06-15 164112 Screenshot 2021-06-15 164134 Screenshot 2021-06-15 164222

can anyone help?

BobbyBaratheon avatar Jun 15 '21 20:06 BobbyBaratheon

#4120. Please collect WSL logs and post the backlink to the feedback item here.

therealkenc avatar Jun 15 '21 23:06 therealkenc

https://aka.ms/AAcxty9

BobbyBaratheon avatar Jun 16 '21 00:06 BobbyBaratheon

@BobbyBaratheon - can you verify that virtualization is enabled in your BIOS?

Easiest way is to look at msinfo32.exe

benhillis avatar Jun 22 '21 17:06 benhillis

Says it is right in the cmd picture

Virtualization Enabled In Firmware: Yes

eggontargaryan avatar Jun 22 '21 17:06 eggontargaryan

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 ?

OneBlue avatar Jun 22 '21 23:06 OneBlue

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.

Dalot avatar Jul 02 '21 14:07 Dalot

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...

Amondale avatar Jul 28 '21 23:07 Amondale

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 :)?

Amondale avatar Jul 31 '21 15:07 Amondale

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.

tronix3 avatar Aug 19 '21 10:08 tronix3

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: hypervisor-detected

Window Features: windows-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!

tfmertz avatar Aug 19 '21 18:08 tfmertz

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!

ghost avatar Sep 01 '21 20:09 ghost

Hello, I have the same problem except that my computer does not restart and runs the automatic recovery.

Manguil avatar Sep 27 '21 10:09 Manguil

Still experiencing this exact same issue, what feedback can we provide? Or should we open separate tickets? Thanks.

tfmertz avatar Oct 08 '21 02:10 tfmertz

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.

tfmertz avatar Oct 27 '21 05:10 tfmertz

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.

eggontargaryan avatar Oct 29 '21 20:10 eggontargaryan

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.

bacchus101 avatar Nov 23 '21 01:11 bacchus101

Hi, I am also having the same issue on Windows 11.

Feedback: https://aka.ms/AAf0rot

AlienXAXS avatar Nov 30 '21 10:11 AlienXAXS

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.

HunterZ avatar Dec 18 '21 17:12 HunterZ

Same issue here windows 11

image

image

image

Edit: I made a new installation of windows 11 and the problem doesn't present again I have wsl working well.

JuanTorchia avatar Dec 20 '21 00:12 JuanTorchia

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.

swanserquack avatar Jan 05 '22 19:01 swanserquack