WSL icon indicating copy to clipboard operation
WSL copied to clipboard

WSL2 distros fail on start with Error 0xffffffff. (Exit code 4294967295 if launched from Windows Terminal)

Open trbenning opened this issue 6 years ago • 118 comments

  • Your Windows build number: (Type ver at a Windows Command Prompt) Microsoft Windows [Version 10.0.19041.84]

  • What you're doing and what's happening: (Copy&paste the full set of specific command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.) Problem occurrs anytime I try to launch a WSL2 distro.

C:\Users\10057871> wsl -d Ubuntu
Error: 0xffffffff
  • What's wrong / what should be happening instead: All WSL2 distros crash on start. WSL1 distros work fine. My current set:
C:\Users\10057871> wsl -l -v
  NAME                   STATE           VERSION
* Ubuntu                 Stopped         2
  Alpine                 Stopped         1
  docker-desktop-data    Stopped         2
  docker-desktop         Stopped         2
  • Strace of the failing command, if applicable: (If some_command is failing, then run strace -o some_command.strace -f some_command some_args, and link the contents of some_command.strace in a gist here). N/A

  • For WSL launch issues, please collect detailed logs. wsl_logs.zip

  • Additional info:

I recently got a new laptop. Before configuring WSL or Docker, I upgraded to insiders version 2004 (full version above). I then enabled WSL, installed Ubuntu, & set the version to 2. Later I installed Docker for Windows, and configure that to use WSL2 as well.

Everything worked great for a while, until my group policy forced me to enable Bitlocker. After that, I started seeing the errors mentioned above. While searching for a solution, I came across this reply on another issue. After executing those 2 commands and rebooting, I was able to install Ubuntu again & upgrade it to WSL2. I then reinstalled Docker, and configured it for WSL2 again as well. This worked great for almost 2 days, until my laptop Green Screened and rebooted (I have the minidump if you'd like me to send it). After the reboot, my WSL2 instances no longer work, and I'm unable to get them working again. I even executed the fsutil commands again just in case they got reset, but to no avail.

Is this behavior caused by Bitlocker, or is the timing merely coincidental?

trbenning avatar Feb 25 '20 23:02 trbenning

I'm currently experiencing the same issue, minus Docker & Bitlocker. My Debian was working perfectly in WSL 2 up until today - now it hangs which causes Windows Terminal to hang also, I've tried remove/readding features etc to no avail.

privacyguy123 avatar Feb 25 '20 23:02 privacyguy123

Update: today when I booted into Windows WSL said it had no distro installed despite having Debian installed up until until last night.

privacyguy123 avatar Feb 26 '20 13:02 privacyguy123

Same issue here with my WSL2 distro (ubuntu 18.04)

slecorvaisier avatar Feb 26 '20 13:02 slecorvaisier

Do you have latest Windows 10 insider build?

Biswa96 avatar Feb 26 '20 13:02 Biswa96

Do you have latest Windows 10 insider build?

Who would put themselves through that? I'm on Slow ring atm.

privacyguy123 avatar Feb 26 '20 14:02 privacyguy123

I'm on the slow ring as well. Interestingly enough, today I was able to create a new instance of Alpine, and upgrade it to WSL2 (I couldn't do this yesterday). Nothing about my system has changed that I'm aware of, aside from an additional reboot.

That gave me the confidence to enable WSL2 on my Docker install, which worked as well.

I just got my Ubuntu dev environment setup again, so I'm hesitant to upgrade that one, but I'll update this thread if my Alpine or Docker instances start crashing again.

trbenning avatar Feb 26 '20 16:02 trbenning

I think the most puzzling part of all this is that there are no steps to reproduce in my case - it just happened by itself overnight.

privacyguy123 avatar Feb 26 '20 16:02 privacyguy123

My experience was more or less the same. I work primarily out of the WSL Ubuntu instance, and everything was going great until suddenly it wasn't. No idea what caused the green screen, but after rebooting I couldn't get anything to work with WSL2. I rebooted a couple of times, and reinstalled the WSL distros but was unable to upgrade them to v2. Then today, on a whim, I tried again and everything just worked. 🤷‍♂️

trbenning avatar Feb 26 '20 17:02 trbenning

This post fixed it for me!

https://www.surfacetablethelp.com/2018/10/fix-hyper-v-not-working-after-windows-10-v1809-upgraded.html

Still couldn't tell you how those options got set in the first place.

privacyguy123 avatar Feb 26 '20 17:02 privacyguy123

The post shared by @privacyguy123 solved my issue too, it just requires an additional reboot.

slecorvaisier avatar Feb 27 '20 18:02 slecorvaisier

I'm really bummed out by this.. I needed to use traceroute and couldn't under version 1 so followed the bouncing ball to upgarade to V2 and my ubuntu machine took ages to migrate.

Now nothing works.

I tried the post shared by @privacygui123 as well, but when I try and change the settings for vmcompute I get an error

Unexpected error. Sorry, we ran into a problem. Please try again.

But, try as I might... I can't get anything working.

ver returns Version 10.0.19041.113

wsl -l -v returns Ubuntu-18.04 Stopped 2

Any ideas please.. I'm stuck without wsl working.

I just managed to install Alpine (which is running as version 1) so atleast I can still do stuff.. BUT... what the??

pnunn avatar Feb 28 '20 08:02 pnunn

Try to install Ubuntu in WSL2 from scratch without migrating from v1. wsl.exe --set-default-version 2 will set WSL2 as default. Also make a backup of existing WSL user home folder and installed packages.

Biswa96 avatar Feb 28 '20 09:02 Biswa96

Thanks Biswa96, how do I backup the home and installed packages? Sorry, new to wsl.

pnunn avatar Feb 28 '20 09:02 pnunn

I tried install openSuse-Leap-15-1 after setting the default version but it won't work either.

wsl --distribution openSuse-Leap-15-1 --user root The attempted operation is not supported for the type of object referenced.

Running it as a normal user, started, set up the new user, then crashed with a screen full of the same messages.

pnunn avatar Feb 28 '20 11:02 pnunn

It happened again today. None of my WSL2 instances will start due to the same error. This time, I believe it was caused by me messing with Hyper-V. I needed to reserve some ports that Hyper-V was hogging, so I performed the following steps:

  1. Opened Windows Features dialog, and disabled Hyper-V
  2. Restarted
  3. Opened PowerShell, and ran the following:
netsh int ipv4 add excludedportrange tcp 8000 100 persistent
netsh int ipv4 add excludedportrange tcp 8800 100 persistent
  1. Opened Windows Features dialog, and enabled Hyper-V
  2. Restarted
  3. After booting, all of my WSL2 instances crash with the above-mentioned error.

trbenning avatar Feb 28 '20 18:02 trbenning

Is there a fix for this or do I blow windows away and install a proper OS? This is crazy.

OK, I've converted my main machine back to v1 so I can atleast do some work.

pnunn avatar Feb 29 '20 01:02 pnunn

Still no official response for this?

Are you guys on Slow or Fast ring, can we confirm the problem exists in both?

privacyguy123 avatar Feb 29 '20 15:02 privacyguy123

I'm on slow.

pnunn avatar Feb 29 '20 22:02 pnunn

Is there a fix for this or do I blow windows away and install a proper OS? This is crazy.

OK, I've converted my main machine back to v1 so I can atleast do some work.

@pnunn If this is your attitude, maybe you shouldn't be on the insider builds at all. The point of us using these builds is to find issues like these so they can fix them before the GA release.

Incidentally, I'm able to get WSL2 instances working again, after deleting all of them and rebooting a couple of times. I have no idea if either of those was required though. This time I'll keep a WSL2 instance installed to see if it ever comes back without having to delete & reinstall it.

trbenning avatar Mar 02 '20 15:03 trbenning

The error 0xffffffff indicates that the virtual network could not be created. We've identified a possible bug fix for this that is on Windows version 19555 and higher.

For an immediate fix for this error, please consider moving to the fast ring (and understand that this means you'll get updates quicker but could experience more technical issues) otherwise eventually a build will be released to the slow ring that includes this fix!

As well, please let us know if the update does fix your error, we want to make sure that the fix targets this specific use case since the fix was lower in the stack.

For more context check out this Github issue where we are tracking the progress: https://github.com/microsoft/WSL/issues/4364

Thanks for helping report this!

craigloewen-msft avatar Mar 02 '20 17:03 craigloewen-msft