-
Notifications
You must be signed in to change notification settings - Fork 840
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: error 0x80370109 while installing ubuntu on wsl2 #5194
Comments
In my case, reinstalling Hyper-V fix the issue |
I'm using Windows 10 Home Edition,there is no Hyper-V.... |
@Xavier-Lam WSL2 do available in Windows 10 Home. See docs https://docs.microsoft.com/en-us/windows/wsl/wsl2-faq |
I already enabled WSL2 on my Windows 10 Home, and my docker runs on it well, this error occurred when I first ran Ubuntu, which downloaded on Microsoft Store. |
I'm on Windows 10 Pro though. Seems Hyper-V Services feature need to be enabled (for now): Sorry. Not sure what's the workaround for Windows 10 Home |
Not sure how to verify if it works completely, but I just installed Ubuntu 20.04 successfully "a la carte", i.e. no Hyper-V enabled, just Virtual Machine Platform and WSL of course. Converted it to WSL-2, no issues. I also read this "the latest release of WSL-2 will build on Hyper-V", but that seems not to be necessary (yet?). This is on Win 10 pro 2004, quite old i5 with the virtualisation option enabled in BIOS. |
Confirming that enabling Hyper-V got rid of the error. Then I got another error 0xc03a001a. That one got resolved by disabling compression as in #4103 (comment). Update: that error only occurred on older (~10 y.o. i7) computer. I also installed wsl2 on another computer - brand new Lenovo Yoga and the install succeeded without enabling hyper-v. |
Same as OP here. Windows 10 Pro, Hyper-V enabled, Virtual Machine Platform enabled. Went through everything suggested in MicrosoftDocs/WSL#404 too. Tried uninstalling by unticking Windows Subsystem for Linux, reboot, tick it again, reboot. Same error. I have got it to work by opening The only slight issue is that the script that creates a user didn't run so when I run bash I am 'root'. I created a user in linux using |
I wast times with this issue. Next I just run Ubuntu app under administrator. Who would have thought! It works! |
I had the same experience, I tried enabling and disabling multiple times, fresh installs of WSL. I got it working finally by going into the services.msc and turning off and restarting the Hyper V compute service. This caused my docker desktop to crash and I restarted it once I had restarted the Hyper V compute service. I then ran the ubuntu 20.04 installer with WSL default version set to 2. IT FINALLY loaded and prompted me for a new Unix user. I am not entirely sure why this worked, something I found was the folder that holds the ubuntu defaulted to the compression attribute, I kept seeing the error op had mixed with a compression error the first time I tried to run after reboot. This is located in /Users/$User/Appdata/Local/Packages/CanonicalGroupLimited. Under properties and advanced attributes, unchecked the compression. Doing this alone did not solve it for me, I had to restart the Hyper V Compute Service. I hope that this may help someone. Was very frustrating... but yay WSL 2. |
Bumped, as issue is still present in the newer pipeline for Windows 11. Happy to report however that Cyber's workaround still works with rebooting the Hyper V service. |
For others coming across this while previewing Sun Valley / Windows 11, I also had to run |
can confirm that running |
We have identified the issue preventing WSL2 from launching. We are working on backporting the change to all impacted versions of Windows. |
Did a full reinstall through recovery, reinstalled WSL, still not working. Considering I can't switch to WSL1 I can't access my files at the moment. For other people in the same boat that need their files quickly, you can convert the VHDX-image (probably in You can also mount the VHDX-image natively and mount it using pass-through. Considering my issue was marked as duplicate (and it most probably is), I tried the solutions from here as well. Running Is there a fix that we can apply in the meantime before the patch rolls out? |
@benhillis Is there a temporary workaround for this issue / manual patch that we can apply. I currently can't use my WSL2 installs and need them badly. Where is the problem that causes this situated - in OS configuration or in the VMP source itself? |
Try to install any GNU/Linux distribution with |
I see that the latest build contains fixes for specifically Hyper-V and WSL not running on ARM64. That fixed it, the Virtual Switch Extension Adapter is now created and I can start WSL2 containers again! Tried that, only works on WSL version 1 - and (thus) not with the old image / VHDX-file. Running I do see |
I am exactly in the same situation. Surface Pro X.. Windows 11. Tried everything above. |
Incredible, just after giving up and writing the above comment, I noticed that I deleted the following registry key, restarted WSL and finally managed to convert a WSL1 to WSL2 instance! HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\RollbackKernel I'm on latest W11 - 22468.rs_prerelease |
Nothing of aforementioned helped to me. Weirdly enough, I did run
And then I could run that distro again! |
Win 11 device(Surface Laptop Studio) |
same here. |
This error appeared me when I tried to install Ubuntu from cmd console through the command wsl --install -d ubuntu (even with admin permissions). I solved that just executing ubuntu app directly with admin permissions. P.S.: Before that note (anybody) must change the windows features (VM and WSL) first and enable Virtualization on your BIOS or UEFI. This procedure was done with Windows 11 and works fine. |
Trying to install wsl on Windows 11 running in a VM. Have run the following to enable nesting VMs:
I ran I then run
So, I run
What am I missing? Is this scenario also covered by the inbound fix? |
I had same issue here on Windows 10 VM when was running command in PowerShell and had the
and I confirm the necessary components are installed correctly. I finally switch to cmd.exe to run the install command and it works like magic :~~~ 10/24 update:after VM reboot, I failed to start WSL again...and found windows event logs has error on
|
A couple of weeks ago my WSL2 was Working, on Windows 11. After I deactivated it for a reason. And when I tried to reactivate it I got the x80370109 error. I tried everything written on this page, without success. WSL Status:
|
this as well as stopping running instances and installing via |
yeah been trying to get WSL/WSL2 running for a week now, and keep ending up with the same issue. |
i have no clue if this is gonna help anyone else, but just in case, i'll post what fixed it for me: i was struggling with this issue for a long time and it was absolutely frustrating. none of the solutions online helped at all. just a few moments ago, however, i stumbled upon my old after opening it up in notepad, i immediately remember what i had done here: the last time i had WSL up and running, i felt that by default it was using too much ram for my taste, and i wanted the bare minimum to be able to run some minor things on it (which was AFTER the installation of a distro) i had the RAM limit for WSL set to 256MB of RAM. which, unsurprisingly, was causing all subsequent attempts at distro installations to fail. upping that limit to 6144MB / 6GB immediately fixed the issue and I was able to finally install distros. for reference, here is what my
even if you don't already have this file in your user folder, maybe you could try creating this file (put it in |
@prism2001 Thank you so much. I tried everything online but your answer was the only thing that helped. I just realized that I had created a .wslconfig file and had put memory=4 which caused wsl to produce the following error "The operation timed out because a response was not received from the virtual machine or container." As soon as I removed it; BOOM! Everything started working normally. |
I am brand new to using linux and wanting to learn more about using it but I'm no stranger to tech, I've followed the instructions here that everyone has suggested and I'm still getting the timed out error when installing any distro using wsl. The only thing I can think of that is stopping me is that I upgraded to windows 11 on unsupported hardware (i7 7700k) otherwise I have everything else installed and working. I have hyper v running and actually made a couple virtual machines but trying to install kali or debian from admin terminal gives me the timed out error Edit: wsl --update doesn't fix it |
Can confirm this fixed it for me. |
I did this (and restarted hyper v compute service actually while install was trying to run) and it worked. So it was for sure for me one of these that fixed it. So thanks. |
Updating to the pre-release version (1.3.15) works for me. Nothing else worked on Windows 11 (10.0.22621.1992), updated to July 2023.
|
For me, I was trying to launch a brand-new instance of WSL2 on a brand-new Windows 11 VM (10.0.22621, running in Hyper-V host with AMD Epyc processors) and wsl would fail to install a distro when launching within PowerShell 7. I switched to a command prompt and Ubuntu installed fine. I can launch it from PowerShell 7 console as well just by calling wsl.exe. |
Just worked for me too |
Thank you @dbaileyut, updating to prerelease 2.0.7 and then launching Ubuntu as Administrator worked for me when nothing else worked. |
I landed here and none of the above recommendations helped (Although I appreciate).
|
Thanks so much it worked for me |
finally fixed it. nothing in the comments above helped me. I navigated to the .wslconfig files placed in |
@Bekaryss im facing the same issue now. i have even reset my pc but nothing seems to work. any idea what to do? |
someone help me man |
My problem was resolved 1). Resolved after uninstalling the cumulative update for Windows 11, KB5043145. 2). Other option: It still doesn't work with Docker, but at least WSL responds and works. |
Can confirm that uninstalling KB5043145 fixed the issue (which started after it was installed). |
Same here. I can confirm that too. Had problem with docker desktop not opening. |
Your Windows build number: 10.0.19041.208
What you're doing and what's happening: I installed ubuntu from microsoft store, when I first run, I got this error:
I'm using Surface Pro with Windows 10 Home Edition,The language on my system is simplified Chinese and the country in my system is People's Republic of China.
I also installed docker desktop edge and it works perfect.
What's wrong / what should be happening instead:
The error message should be correct displayed.
I couldn't see the detail error message, I don't know if this issue is duplicated to #4103
logs.zip
The text was updated successfully, but these errors were encountered: