-
Notifications
You must be signed in to change notification settings - Fork 823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WSL2 fails to run any distros with error 0x80370102 #7068
Comments
@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
|
Root cause appears to be:
Maybe something went wrong when the features were enabled. |
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 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: 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.
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: #4103 After uncompressing my LocalState folder (like this comment says: #4103 (comment)) 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. |
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. |
I had this same error as well. Virtualization was enabled in BIOS, Task Manager Performance tab showed it was activated. But still could not get WSL2 to work after many updates and reboots. What fixed my problem in the end was:
Hope that helps others. |
This worked for me. Enable Hypervisor using; bcdedit /set hypervisorlaunchtype auto |
@markjasper if you are running VirtualBox this setting may work to re-enable wsl, but it will cause some severe issues with VirtualBox (and Hyper-V as I recall). |
Installing, this may take a few minutes... guys what to do with it? |
Make sure virtualization is enabled within the computer's BIOS. Instructions on how to do this will vary from computer to computer and this feature will most likely be under CPU related options. |
That helped - thanks! |
Thanks woohoo!!!!!!!! |
This doesn't work. I have done tried every recommended method. I have a brand new windows 11 machine it is June 2024. Why is this so hard? |
Have you found a solution yet? |
Yes. It is nearly always some weird bios setting that is the problem. |
Funcionou perfeito. Muito obrigado!! |
That works!Thank for your help.I've tried for the whole day! |
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?
The text was updated successfully, but these errors were encountered: