-
Notifications
You must be signed in to change notification settings - Fork 868
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
WslRegisterDistribution failed with error: 0xe000020b when launching Ubuntu #9909
Comments
Looks like an issue creating the virtual network, can you share the output of |
@benhillis Sure,
|
This seems to be similar to another issue |
I tried steps in that issue without any luck. So any other advises are appreciated |
Have you tried running the wsl --install command with administrator privileges |
Wanted to expand on it
it didn't help.
@mariorecinos tried right now, result is the same :( |
Try resetting the WSL service by opening a PowerShell terminal with administrative privileges and running the following command:
Try unregistering any existing Ubuntu distributions by running the following command in PowerShell with administrative privileges:
and then running the installation command again. If none of the above steps work, you could try resetting the WSL installation entirely by following the instructions in this Resetting the installation may help in case anything is corrupted or not setup correctly I hope these commands help! |
Hi @mariorecinos sorry for late reply, So I tried Didn't help. I noticed that LxssManager wasn't even running before I run that command. Unregistering didn't help either:
I run wsl --list, and it appears no distros are registered at all:
So it looks like distro is not even registering. Any other thoughts? |
Thank you for sharing so try uninstalling ubuntu from "apps and features" then restart your computer and after restart go to the Microsoft store and re install wsl Ubuntu again like mentioned in the commands |
@mariorecinos I tried to reinstall ubuntu, alas the same error. Switching to wsl1 helped, but it seems WSL1 has issues with podman. Rootless is not working and I can't launch any container.
I tried openSUSE Leap distro, rootless podman still doesn't work. But the issue is different when I try to run a container:
|
@mariorecinos I was able to find some useful traces for this issue in event viewer:
Then there are a bunch of entries from Hyper-V-VmSwitch, couple of most interest:
Then a bunch of verbose logs which I don't understand. Next logs indicate that switch was deleted. I assume something went wrong, thus system decided to clean up the switch:
I really don't want to give up on this. If there any other ideas, I would gladly try them out |
Forgot to mention, I'm trying to get this running on virtualization enabled VMWare virtual machine. Hope that helps. |
I am also facing same issue, do anyone have found fix. Really helpful if any reply. @dmytroettcdw please. |
I have lost my faith trying to make it work, so unfortunately I have no good news to share with you. |
@dmytroettcdw , I've been looking at the original traces you provided. We can see that initially the request to create the switch for WSL (NAT) succeeded. But immediately afterwards there was an attempt to reset all switch extensions (normal process to startup a switch), and that failed with ERROR_NO_SUCH_DEVINST. Which looks like something ganked the switch from beneath us. Do you have any switch extensions installed? This is a VM hosted by VMWare? (this is a guest VM - that VMWare is hosting?) |
@keith-horton I'm really sorry for late reply, I lost access to this account for some time. Answering your questions.
I'm not sure. How do I check that?
Yes, This is a guest VM running under VMWare hypervisor.
Not sure how to check. Is it possible to do from under guest VM? |
WSL is hosted by vmSwitch in Windows. The fact you have VMWare installed suggests the 2 are in conflict somehow. You have a guest VM running, and you're trying to run WSL within the guest VM? I don't know VMWare - do they also have software running within the guest VM? Not knowing about interop issues with VMWare, are you able to run other VMs or containers within this guest VM? For example, can you start Windows Sandbox? |
Facing the same issue in the same Environment, as you, @dmytroettcdw. Looking forward for the resolution, but assuming, that you've covered the long way already, there are not a lot of hopes to get a fix, I suppose :( |
@dmytroettcdw : as this is a virtual machine, this may be due to phantom PnP devices breaking us. Are you OK running this script which we found that does an OK job finding and removing "ghost adapters" (i.e. adapters marked as Phantoms by PnP)? https://gist.github.com/alexjebens/a027f8757348bdacbcbb5aa85612d045 |
If you don't want to run someone's powershell script, you can check this by hand :)
|
Yes, this finally solved it! It has breen driving me crazy for the last 2 days. Thanks! |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Windows Version
Microsoft Windows [Version 10.0.19042.2728]
WSL Version
1.1.3.0, but i'm not on Store version, I installed it via podman
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.90.1
Distro Version
Ubuntu 22.04 LTS, but honestly it happens with any distro
Other Software
Podman version 4.4.4
Repro Steps
Run following command:
wsl --install "Ubuntu-22.04"
Expected Behavior
Ubuntu is getting installed and working
Actual Behavior
wsl --install "Ubuntu-22.04"
Installing: Ubuntu 22.04 LTS
Ubuntu 22.04 LTS has been installed.
Launching Ubuntu 22.04 LTS...
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0xe000020b
Error: 0xe000020b (null)
Press any key to continue...
Diagnostic Logs
WslLogs-2023-04-04_16-18-37.zip
The text was updated successfully, but these errors were encountered: