-
Notifications
You must be signed in to change notification settings - Fork 822
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
Error 0x80370102 #4120
Comments
@sieja - Could you make sure that virtualization is enabled via your BIOS? |
yes, before updating used wsl 1 |
Can you ensure both these are enabled?
|
hi @benhillis . |
Yeah, hm. I guess this means if you're running a Windows VM you're stuck with WSL 1, yeah? (Unless Generation 1 Hyper-V can have VMs within VMs) |
@Aidolii hyper-v supports nested Virtualization so this is not an issue. |
I only mentioned it because I already tried. I made sure to run the |
Make sure it says "Virtualization: Enabled" on Task Manager -> Performance tab -> CPU Also you can run |
Also, when I run Microsoft's documentation says that is the expected response for a working nested Hyper-V environment: https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/reference/hyper-v-requirements |
@Aidolii So the host OS is Linux? I think that is an important detail. |
uh, what? no, the host OS is Windows. I don't know where you got the idea the host OS is Linux. |
Sorry, I was confused because of this: https://stackoverflow.com/questions/51364707/how-does-windows-10-task-manager-detect-a-virtual-machine In my case I'm running WSL2 inside a Hyper-V VM with Win10 v1903 as host and Task Manager says "Logical processors" and "Virtualization". Which CPU are you running, BTW? About Windows Sandbox feature, it utilizes a lighweight VM too so if you can run it at least we can discard nested virtualization problems. |
It says virtual processors because it's a Generation 2 VM with NUMA spanning enabled. Either of those two things could be an issue. I forget what processor it is off the top of my head, I'll have to check when I get home. |
@onomatopellan The host machine is on an i5-6500 (non-K unfortunately). Windows Sandbox is grayed out and says the processor does not have the necessary virtualization capabilities. Hyper-V Hypervisor does too, interestingly. |
@Aidolii Thanks. Intel CPU shouldn't be an issue with nested virtualization. |
@onomatopellan Sorry it took me so long to reply. I was using a modified installation so I wanted to come back with an unmodified install, which took me a while to get around to. Unfortunately, even with a completely vanilla install of 18917 in a Hyper-V VM, I hit the same roadblocks as before. Bear in mind, Hyper-V Hypervisor is the only Hyper-V Windows feature that is grayed out, Hyper-V Services and Hyper-V Management Tools are still available. If this is not supposed to happen, please let me know. |
If the hypervisor feature is greyed out, likely virtualization is disabled in your BIOS. |
It's grayed out within the Hyper-V VM. It's obviously not grayed out on the host machine, given virtualization needs to be enabled to run a Hyper-V VM. |
Ok, I discovered the issue. Nested virtualization is not enabled on new Hyper-V VMs by default because it disables the Dynamic Memory feature for that VM. You have to enable it after the fact with a command on the host machine (make sure the target is powered off):
Alternatively, this command will enable it on every existing VM that is currently powered off (does not affect future VMs):
|
** if this is off-topic, or belongs somewhere else, please let me know and I'll move it. Also, if I read the thread correctly, this is regarding trying to enable WSL2 in a Windows 10 vm running on a linux host, but the errors that I'm seeing are basically the same ** Will running these commands on a Windows 10 host allow other hypervisors (particularly Virtualbox) to run with WSL2 enabled on the host also? I've found that enabling the VirtualMachinePlatform functionality for WSL2 on my host machine (specs below) gives me an error in both VMWare Workstation 12.5.6 and VirtualBox 6.0.8 r130520 (Qt5.6.2) that virtualization is not enabled in the bios even though it is. if i disable VirtualMachinePlatform and reboot, VMWare and VirtualBox both work again. I do not have Hyper-V installed on my machine. I'd love to take advantage of the benefits of WSL2, but for my docker development setup on my work machine, I need to be able to use at least VirtualBox, so this is a killer for me.. Machine Specs: Thanks! |
No, that was someone's incorrect assumption.
Afraid not.
VMWare and VirtualBox have to publish updates that make themselves compatible, just like they did with Hyper-V. The technology is similar so it shouldn't take much of their time whenever they get around to it. |
Thanks for the clarification, Ghost. Hopefully they'll get these wrinkles ironed out soon. |
I have a Windows 10 Pro PC (not VM) running build 19041. I had WSL2 working. I am not sure when it broke but it might have been after I got VMWare Workstation working again. Nothing has changed in my BIOS (all virtualization options are on). Now I am seeing the following: When I try my original ubuntu shell I get. So I tried loading the ubuntu 20.04 just for yucks and see this: Suggestions? |
@transientuser From that Windows Features window untick "Virtual Machine Platform" and restart Windows. Then tick it again and restart Windows. This is from the May 2020 release notes:
It looks like Dism never knows when a feature is really enabled so you need to try several times until it works. |
You really had my hopes up but it did not work. I tried uncheck / reboot / recheck / reboot a couple of times, then tried going through the whole wsl2 install process. Then I tried uninstalling ubuntu / reinstalling. And I also tried installing SUSE. Same results each time. And now that I have uninstalled ubuntu and reinstalled it and SUSE I see this: |
If you want to uninstall that Legacy distro you can with You can also try to enable "Windows Sandbox". If it works at least you will know you have everything needed (containers, virtualization) for running WSL2. Edit: I just remembered some users had a similar problem and they fixed it configuring Windows Defender. Follow these steps #4626 (comment) |
Ok. I unistalled everything. Virtual platform, WSL, ubuntu. Rebooted. Followed the install steps, loaded the kernel update, installed ubuntu, bounced lxxsmanager (a couple of times) and it finally worked. So I am good now. Now if only I could get past windows update hanging at 61% for 2004 on my other computer I would be golden |
|
I have this same problem, but so far I had no luck figuring out how to fix it. in
Note that VirtualBox and VmWare Player seem to work without issues. I opened WinDBG and looked at the IA32_FEATURE_CONTROL MSR (0x3A) and it reports value 0x5 (Locked + VMX Enabled) Edit: Forgot to mention the things I tried: I did the |
I went ahead and installed Windows Pro + Hyper-V, launching Hyper-V VMs would fail saying that the hypervisor is not running, even though the services were running. Looking at the event log, I found the following message:
It seems like 4GiB of ram might not be enough to run Hyper-V (maybe it is because some of the ram goes to the onboard video card memory?) |
Found a solution. @mvanotti |
@Davidxdh0 your link seems to be hyper linked to Hello I am trying to install WSL2 on Ubuntu 20.04. my BIOS is Legacy. Does this actually mean I cannot change the virtualization settings as stated here? I ran through all of the steps in many official documentations but I cant turn Virtualization on: systeminfo32 tells me I have legacy: off topic but I'm using this old windows bc my new mac M1 isnt compatible with a bunch of things I need to code but even this backup is having issues and I am big sad ;{ |
temporary fix: use ws1 instead of ws2: |
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. |
I was able to fix it by enabling virtualization in the bios, and enabling Hyper V after, if virtualization is not enabled in the bios the dropdown in Hyper V will have a greyed-out option. |
good solutions ,it works. |
VadneyK You're a life saver! |
WSLg will it run inside a VM running Beta Windows 11?? |
I had tested pretty much everything: Virtualization was enabled in the Bios but did not show up in the task manager. |
This tutorial works for me. |
In my case I didn't have vritualization enabled in BIOS. After I enabled it the error went away. |
Thanks |
On Surface 3, Windows 10 Home, 21H1, 19043.1237.
I can install Ubuntu version 1, but when I try to convert it to 2 with @jackchammons any hope of running wsl 2 for this case or at least understanding which feature is missing? |
sorry for reviving this issue here, but figured i'd post since its still open. I'm having the exact same error described here. I'm on windows 11 21H2 OS build 22000.527. I've tried everything listed in this issue since its creation except doing a clean install yet the issue persists. I've validated my hardware supports this and can run hyper v vms and vm's with other systems. Has anyone encountered this on windows 11 and know if the solution to make it work is any different. wsl1 does work but i'm stubborn and want wsl 2 |
I fixed this problem with the 21H2 Update for win 10 (10.0.19044.1586) Maybe it help somebody else |
win 10 x64 21h2 19044.1706 |
also for me |
Fixed the issue for me - and really quick too! Hours of frustration solved by a single line of code. Love it. |
Can enabling NX please be added to documentation? This would severely reduce the amount of time trying to solve the issue of not being able to install a distro on WSL. |
Thankyou, this fixed it for me. |
Today, while I reinstated Windows 11, I ran into that issue, which was ode because it was working right before. With only Windows Subsystem for Linux features activated, no need Hyper-V... I resolved it by doing an update: |
Thank you so much! This solved my issue as well. I was stuck on this for a while on this one! Thank you again. |
i Reinstalled wsl and virtual machine in Windows features
The text was updated successfully, but these errors were encountered: