-
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
WSL don't start, don't open and don't answer #5836
Comments
Did you install a WSL distro from the Store? Can you run it from the icon on the Start Menu? I know this isn't a solution for WT but I am trying to determine if it is properly installed. In PowerShell, what does the following report?
Do you have any third-party security or endpoint management utilities installed on this device? |
I followed this setup https://github.com/lewagon/setup/blob/master/WINDOWS.md |
Since Windows [10.0.20201.1000] wsl doesn't work (neither Docker for Windows) basicaly.. when we enter wsl : nothing happen.. it won't respond. I try this (also.. lot of reboot) dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart wsl --set-default-version 2 wsl.exe --update wsl --shutdown wsl -l -v PS C:\WINDOWS\system32> wsl -l -v
no problem so far... but if I try just to enter wsl... it will stalled I try wsl -d Ubuntu ... same thing. |
Same issue. It worked until the last update arrived |
Same issue. When I try to stop it with
Only way to fix this is a complete reboot. |
I had same issue. Turning off Hyper-V in Windows Features resolved the issue for me, but then I have trouble with Docker Desktop. |
when you hit the issue, can you check the disk usage? I do found that if there is very few free disk space available(eg. 1G), the lxss has slow response or no response. |
@licanhua I don't have a issue with free disk space (over 350gigs), no trouble with ram 32gigs. The problem appear only with the build [10.0.20201.1000] (no problem before that update) |
My C:\ drive has 20GB free and the M:\ drive where I have my Ubuntu distro installed has 80GB free. I have 16GB RAM. And the issue only started recently, 1 or 2 weeks ago. |
How about the %temp% folder? did you see a .vhdx which is created when you start Ubuntu and the size is always 0? For example: |
That should be plenty of space. @licanhua I suspect this is not the same issue you have been looking at. |
If it is, disabling swap and trying to launch would confirm: .wslconfig |
I already ran the @survivant commands and my Hyper-V it's already off. My C: have a lot space yet too
|
There are two suspicious:
|
When I run |
@isaporto A reboot may required to apply .wslconfig if your machine is already in weird state. Could you please help to provide logs by Feedback Hub and share the feedback link after you submitted it? I tried and I never be able to reproduce the problem locally. |
After I created the .wslconfig file I reboot the computer. Still not working! |
Yes same problems, and I found few posts that others persons have the same
issues.
|
@isaporto, Thanks for the log, but there is no log is attached. Have you |
Yes! I wasn't able to see the record, only the images. Maybe I can try once more @licanhua |
I'll try after work
|
Disabling and then re-enabling HyperV feature followed by a restart worked for me to revive My WSL2 |
I try to record the screen, but I don't have a stop recording. I added a screenshot. I rebooted again.. still not working |
oh ! I got a Green screen of death again.. after that I did a hard reboot (press poweroff for few seconds) Windows rebooted and I got a welcome screen and enter few settings like (my default browser, finger...) rebooted again.. and now wsl + docker works. but I previously I added .wslconfig and rebooted, but wsl didn't work at that time |
I decided to reinstall the ubuntu once more and it's stuck in the |
@isaporto It's hard to identify what's the problem. I guess:
|
In my case i have only the first symptom, everything keeps frozen and each time that i want to poweroff my Surface it hangs in a BSoD. How do we suppose to fix Lxss? Reinstalling? Moreover, how do i diagnose Lxss? Sorry if my questions are too basic. |
I'm getting this as well, but I have everything enabled. WSL2 just doesn't work. |
WSL hangs forever for me, anyone facing the same issue? used to be fine yesterday |
The only thing that ever worked with me was getting my machine completely reimaged. And then using a different machine entirely! |
This worked for me, enabled Windows Hypervisor Platform and restarted, all good afterwards, back on track! |
I have Windows 11 and this solution worked for me. |
this worked for me |
I recently had this issue and I just uninstalled Docker Desktop on Windows and wsl stopped to hang forever |
Hey folks - so it looks like there was a recent regression given the uptick in comments. Here's the fix that worked for me. None of the fixes in this thread worked. |
This worked for me W10 22H2 19045.4412. Also rebooted. I noticed that the vmmem also went to 100% cpu usage on my 16 core machine on all cores. Was nice. Things to do with the LxssManager did not work. |
finally fixed it. nothing in the comments above helped me. I navigated to the .wslconfig files placed in |
My wsl2 broke after installed nvidia workbench and cannot access files there. |
For me the solution was to enable Control Flow Guard (CFG). I needed to disable this in Windows Security settings to run some games, never couldn't guess that this will make Docker and WSL stop working |
You save my life. |
This worked for me too. Thank you. |
I just ended the WSL tasks from Task Manager and re-opened it. This worked for me. |
I had the same issue. My observation is that when I login as soon as the welcome screen appears, this issue is more likely to happen. The issue doesn't occur as often when I wait a few seconds before logging into Windows. Maybe some race condition? Another issue that often happens at the same time is edge browser and anything that requires webview does not load. Opening edge browser has no effect. No error. The process shows up in the task manager but there is no UI. Both issues can be fixed by rebooting |
This solved for me on Windows 11. Thank you. |
Also seems to have fixed my problem when WSL and Rancher stopped working abruptly (in the middle of a remote container work session with VSC) on Microsoft Windows 11 Entreprise Version 10.0.22631. Digging into the Event Viewer, the only thing I noticed is that there seemed to be a hardware error in "PCI Express Legacy Endpoint" at about the same time it failed, but I don't see how that disabled the hypervisor: https://gist.github.com/rngadam/2a43df052ed1221c51ccf74e61aacee2
|
GA104GLM [RTX A3000 12GB Laptop GPU] I have a different graphic card on desktop that also crashed around the same time, that time. Didn't correlate that until this message. |
Never had issues, but now started happening to me too. However it happens only after PC sleep and recovers after OS restart, which is very annoying..
|
my hyperservice was disabled |
i managed to solve the issue. In my case it was related to docker resource saver + autoMemoryReclaim: gradual. Reported in #11066 |
I had the same problem.
As a last resort, you can force exit and rerun. https://github.com/uzchss22/TerminateWSLService.git
|
I disabled the windows features, restarted, enabled them again, restarted, and it worked again. |
This one worked for me as well though not sure how this is related to wsl. |
Nothing helps: WSL version: 2.3.26.0
Kernel version: 5.15.167.4-1
WSLg version: 1.0.65
MSRDC version: 1.2.5620
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.22631.4460 |
This worked for me too (reboot required), cheers |
It works for me. |
up |
Environment
Windows build number: 20197.1000
WSL 2
Steps to reproduce
Open the Windows terminal
Expected behavior
Should open the Ubuntu terminal but didn't appear even the tab in the Windows terminal.
Actual behavior
The problem is that sometimes, when I open the Windows Terminal the WSL don't appear. Acctually appear once but don't show/load anything, then, when I open again the terminal, it's gone. If I try to run wsl or wsl -l -v or wsl --shutdown, nothing happens, just keep like it's loading the answer forever. If I try to open the Linux folder just keep loading forever. Sometimes I restart the computer and just works but sometimes don't. I tried reinstall all Linux but the error appear again.
The text was updated successfully, but these errors were encountered: