-
Notifications
You must be signed in to change notification settings - Fork 827
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
Starting WSL 2 distribution hangs forever #5845
Comments
Turning off Hyper-V like #5836 said fixed the issue. |
Had my PC BSoD and restart a bunch, same issue occurs. Hyper-V is still off |
Are you windows running on physical machine or Windows itself is a virtual machine? I hit the very slow response yesterday because I only allocated 1G memory and limited disk space to Windows. Try disable swap file to see if it improve the time in your case. |
I am running Windows standard with several GB of RAM free. |
The same behavior on
Also constant BSoDs on system shutdown. |
Someone knows how to fix this issue? Neither disabling HyperV nor write |
Ok after about 10 minutes, Windows terminal says these:
Running Please, if you need more information please ask. I will keep investigating / learning to solve it. |
Updating to Microsoft Windows NT 10.0.20206.0 seems to have fixed the issue. |
Restarting my PC caused the issue to keep reoccurring 😎. |
I am having the exact same issue. At every windows update, WSL starts working again, but after the first reboot the problem is back. |
When the problem happens, can you check the disk usage? @isaporto reported that the disk is very busy. If possible, could you please collect wsl log? |
Uninstalling VirtualBox fixed the problem of wsl2 archlinux distro hanging on start and wsl --shutdown taking >10mins to execute, reinstalling VirtualBox brought the problem back. Build 20206.rs_prerelease.200828-1431 |
Uninstalling VirtualBox fixed this for me too |
I forgot I even had VirtualBox installed. I uninstalled/updated and WSL works. What. |
Having the same issue with Build 20206.rs_prerelease.200829-1431 |
Wow, uninstalling VirtualBox and rebooting finally fixed it! I had also forgotten that I'd installed it. Thanks so much @mercurytoxic !!! |
If you are dual-booting Linux and Windows, like I do - a VirtualBox installation on the Linux partition will influence WSL. |
Windows 10 20H2 19042.630 kernel 4.19.128-microsoft-standard Ubuntu 20.04.1 LTS |
I was getting the error
For me, the issue was the Host Network Service was not running. I changed it to start automatically and started it up once manually. I was then able to launch Ubuntu and set it as the default in WSL 2. |
This fixed the problem for me today. Killing vmmem, starting the service and then using WSL2 worked normally, without a restart. |
Hm, I followed the advice of starting the |
For anyone who's still having this issue occasionally like myself, I find this solution without rebooting your PC or tweaking services. I've used it twice and it worked perfectly. |
For me, the HNS service is the issue. Though I cannot start the service for some reason (error 1075). |
I opened my WSL distro as admin from the start menu |
Thank you all for the hints. Uninstalling minikube app was the trick for me (Win10). |
Experienced this issue, and my Host Network Service was running. However, restarting the service fixed the issue for me. This can be done from an Administrator powershell prompt with Get-Service -Name 'Host Network Service' | Restart-Service |
I faced this issue on Windows 11. To fix, go to Windows Optional Features > Turn off the "Windows Subsystem for Linux" feature > Apply but do not restart. Then turn the feature back on. No need of restart and WSL started to run normally. |
Just got the same issue. No response even I type "wsl --version". |
Worked like a charm, thanks! |
Just experienced this issue and this was the fix for me, after it got fixed I got the message:
I've done this upgrade and it was successful, hopefully this "new version" is better and doesn't have this problem again... |
Anyone know of any other fix? All WSL commands hang forever except --version and --help. I've tried the LxssManager fix, toggling HyperV/WSL features. |
Same problem. And I see that there are several different solutions above. This do not seem stable. Seems like using wsl is a bd choice, or at least premature. Maybe better in the future? |
WHAT - I've been struggling with WSL boot problem and this solved it. I didn't even know what LxssManager do, but I can finally run WSL2. Thank you so much. |
I also encountered this problem on windows 11, and I can't shut down and restart, I can only reset the computer. |
after reset , i got same problem again soon |
You can try to adopt this configuration in This feature is added on Windows 11, and for me, it would lead the VM to "sleep forever." You need to restart the WSL, when you possibly get stuck into "wsl --shutdown" and "inaccessibility". You can try this one w/o rebooting OS |
This just started happening to me today - my Debian distros just kept hanging forever. Terminating the task in Task Manager didn't help. I was able to resolve the issue by running command prompt in admin mode, and typing |
Just in case, you have Valet installed just stop the valet services and it would run WSL normally. |
for me going to the task mannager and ending the task of the wsl or windows subsystem for linux and opening it again worked for me |
I can reproduce this issue on my Windows 10 corporate laptop:
The WSL session cannot shut down ( |
if this is still happening, in my case, it needs to restart.
|
My symptom is exactly the same as @davidalexisnyt |
Thank you so much. Facing the same issue and for me I also have to |
I found uninstalling Ubuntu and installing Debian instead fixed my issues with it hanging. |
If your WSL 2 Instance suddenly just hangs, try to look at the other side like if the current disk might be already full. |
Turning On the Hypervisor worked for me |
I suffered a similar problem with Ubuntu 22.04 and an "normal" apt install. A post-install script tries to index the file system. I hangs on /mnt/c due to my company antivirus. I restart. The system hangs. I can not umount /mnt/c because I have no console access. :( I can not fix it, I GOT fired, but I'm happy because no I can dedicate full time to hate Microsoft soooOOOOoouuu much for creating Windows and Office #humor |
this solution worked for me |
Environment
Steps to reproduce
Open
wsl.exe
,wt.exe
, orubuntu.exe
Possible duplicate of #5836
wsl.exe
Running
wsl
hangs forever, or at least the 10 minutes I waited.Running
wsl --help
works properly.Running
wsl -l
hangs for several minutes but then seems to properly output.wt.exe
Windows TerminalOpening Windows Terminal displays the error since my default profile of Ubuntu isn't working:
WSL logs: Feedback app hangs, can't collect anything.
Expected behavior
WSL opens.
Actual behavior
WSL doesn't open. See 'Steps to reproduce'.
The text was updated successfully, but these errors were encountered: