-
Notifications
You must be signed in to change notification settings - Fork 821
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 won't start after Windows Update 18950 #4371
Comments
Same here. My default WSL2 instance and sole WSL1 instance both work fine, but the other WSL2 instances have this problem and I haven't found a cause yet. It doesn't seem to be related to networking config or the new .wslconfig file. I may try rolling back to 18945. |
Alright, looks like we may have a bug in init...
|
Alright, I just figured this one out... So this issue only occurs with a rootfs that is /usr-merged... which includes Kali-linux in the Microsoft Store. Not really sure why init is trying to create a /bin directory anyways, but this is going to need to be fixed by someone at Microsoft since init is closed-source code. |
This has been fixed and will be in an Insider build soon. |
Glad to know I'm not the only one having this issue. I've reverted to Windows 18945 for the time being. |
Hi, any idea when the Insider build will be released please ? |
The time from us checking in the bug fix to the change being available inside of an Insiders build can vary, and is dependent on many different factors. In general, it's around 3 to 6 weeks. |
Hi @mscraigloewen, thanks for the answer. Keep up the good :) |
Could you tell me how you downgraded? Can't wait the 3-6 Weeks and would love to use WSL2 :) |
Now that the problem has been identified, is it possible to share a workaround. This build is completely unusable with this. I've downgraded, but Windows update keeps trying to reupgrade me. I was hoping that it would get fixed in this week's patch, but since it sounds like that won't be happening, do you have any suggestions? |
Same here on build 18956. |
It is possible to convert it to wsl 1 to keep it running |
I'm also getting this now on 18956. Oh, for a functioning workaround. |
Hi! |
Biswa yes it is installed, the only time I experience this issue is with the WSL2 Kali distribution. |
I run a Arch distribution on 18956, also caught bugs |
I would suggest rolling back to the previous build until an Insider Fast build with the fix is released. |
@benhillis, For those who aren't in a hurry. When is the next build going to be available? Since this is a serious bug for many, could this be elaborated for faster release for next build, even if it's a bugfix for this WSL issue? |
I'm also getting this on 18956 with Arch LInux.
|
Not resolved for me I am already on 18956 and get the same error using Fedoraremix |
Workaround that ended up working for me (use at your own risk, but no issues so far):
Hope this will be useful to others :) |
@chadrien thanks, this work good for me. |
@chadrien Thanks! Working fine for me as well. But I believe you may have this backwards: ln -s /bin usr/bin It's ln [OPTION]... [-T] TARGET LINK_NAME. Or maybe it was intentional so that swapping back and forth between v1 and v2 would work? Either way on arch I had to create it as it was originally like 'ln -s usr/bin /bin' otherwise I got some error when I tried to install packages using pacman. |
@citruspress it was intentional. I had to make |
@chadrien I see. I haven't noticed, I assume it hasn't shut down yet. Thanks again! |
Thanks Craig and onomatopellan @ Onomatopellan: I've incorporated that command into the profiles.json settings file for Windows terminal at "commandline" : "wsl.exe -d kali-linux -u myusername" under Kali settings, so this workaround is working nicely for now. Craig: Thanks but I actually installed the distro from the Windows store, not the command line |
Suspiscions were right, its just a workaround for now... Metasploit is broken :( uberck@CPPCStation:/mnt/c/Users/Chris$ msfconsole uberck@CPPCStation:/mnt/c/Users/Chris$ sudo /usr/bin/msfdb start System has not been booted with systemd as init system (PID 1). Can't operate. |
@Uberck If you need Systemd as PID 1 there are workarounds like https://github.com/arkane-systems/genie or https://github.com/shayne/wsl2-hacks |
@Uberck if you've installed it from the store you can run the command: |
@chadrien It works fine in 18963. Thanks a lot! |
Still not fixed in 18965 |
Is there a way to get any visibility as to what the WSL VM is doing? When errors like this happen you can't see any of the console log or anything, you just see the equivalent of "It didn't work /shrug" |
* well it's better to have it working now than wait for few more weeks * tnx to microsoft/WSL#4371 (comment)
seems they finally fixed on 18970, right? |
Can confirm fixed in 18970. |
I had version 18965.1000, and the method suggested by @chadrien worked fine for me. |
Fixed as well for me with Arch Linux on 18970 |
Tested on 18970, this seems to have been fixed. |
@MostHated That looks like #4105 (comment) |
I just updated to
Prior to the update the WSL 2 environment worked fine. I have tried the suggestions in this issue to no effect. |
It looks like this issue is back in 19555 released today. I have opened a feedback ticket with some telemetry if you need it here: https://aka.ms/AA75u9m Two releases ago localhost didn't work, the previous release fixed that and seemed to work just fine. |
Same here... 19555 broke WSL2. However, I don't believe it's the same issue as before... where /usr-merged distros failed to create /bin due to existing sym-link. Even non-/usr-merged distros fail to connect with WSL2, and therefore I haven't found a way inside yet, to be able to print the kernel ring buffer messages. |
Yes this is a new issue, please start a new GitHub thread. |
Your Windows build number: Microsoft Windows [Version 10.0.18950.1000]
What you're doing and what's happening:
wsl ~ -d DistroName
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
wsl --shutdown
wsl ~ -d DistroName
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
wsl --import DistroName2 <install-location> <rootfs.tar.gz> --version 2
wsl -d DistroName2
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
This happened after Windows Updated to 18950, (from 18945)
Also, the processes
vmwp.exe
andvmmem
show up in the task manager and do not go away tillwsl --shutdown
is executed.What's wrong / what should be happening instead: WSL console should appear.
For WSL launch issues, please collect detailed logs.
wsl-logs.zip
The text was updated successfully, but these errors were encountered: