Open waldyd opened 2 years ago
I think I am seeing similar / related bug / issue with WSL
I posted this in Windows forum here: https://docs.microsoft.com/en-us/answers/questions/756612/windows-11-hyperv-bridge-binding-to-nic-hidden-for.html?childToView=765392#answer-765392
Command line or GUI launch shows same error on launch
>wsl
The network was not found.
Question: 1) Where is the WSL configuration file stored for network configuration? 2) How can we list details of bridge that WSL links to?
Post also notes to collect diagnostics to go to cd $env:TMP\WSL\diagnostics\
PS C:\> cd $env:TMP\WSL\diagnostics\
cd : Cannot find path 'C:\Users\nerd\AppData\Local\Temp\WSL\diagnostics\' because it does not exist.
At line:1 char:1
+ cd $env:TMP\WSL\diagnostics\
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\nerd\...SL\diagnostics\:String) [Set-Location], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
How can we pull diagnostic logs?
Update: Removing Ubuntu / Ubuntu 20 and doing fresh installation does not fix this. So until their is update as to where this "network" is defined and cleaned up... WSL is broken
Hey, I found a solution that worked in my case, a least:
After that, networking got fixed on my machine and I was able to re-use WSL2, again.
I updated Posting... but I tried remove / reboot / re-add WSL and no change. https://github.com/microsoft/WSL/discussions/8224 MS moved my question to a "dicussion" but no progress. But thanks for responding. I did glean a bit from above.
`PS C:\GitHub\penguinpages_cluster_devops\cluster_devops> wsl --list --verbose
NAME STATE VERSION
Windows Subsystem for Linux was last updated on 3/25/2022 WSL automatic updates are on.
Kernel version: 5.10.102.1 PS C:\GitHub\penguinpages_cluster_devops\cluster_devops>
`
Then I used windows to "launch ubuntu" and get this error:
. Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x803b0001 Error: 0x803b0001 The network was not found.
Press any key to continue.. '
Which lead to this thread: https://github.com/microsoft/WSL/issues/4959
So no fix.. but I think Windows sticks some virtual bridge interface ID / number into the WSL instance for the NIC... and when that gets orphaned / broken, their is no means to repair.
@mszcool thanks for the suggestion. I had same error as OP.
Sadly I lost all my data but aside from that I finally have WSL working again
I updated Posting... but I tried remove / reboot / re-add WSL and no change. #8224 MS moved my question to a "dicussion" but no progress. But thanks for responding. I did glean a bit from above.
`PS C:\GitHub\penguinpages_cluster_devops\cluster_devops> wsl --list --verbose NAME STATE VERSION
- Ubuntu Stopped 2 PS C:\GitHub\penguinpages_cluster_devops\cluster_devops> wsl --unregister Ubuntu Unregistering... PS C:\GitHub\penguinpages_cluster_devops\cluster_devops> wsl Windows Subsystem for Linux has no installed distributions. Distributions can be installed by visiting the Microsoft Store: https://aka.ms/wslstore PS C:\GitHub\penguinpages_cluster_devops\cluster_devops> wsl --install -d ubuntu Ubuntu is already installed. Launching Ubuntu... PS C:\GitHub\penguinpages_cluster_devops\cluster_devops> wsl --status Default Version: 2
Windows Subsystem for Linux was last updated on 3/25/2022 WSL automatic updates are on.
Kernel version: 5.10.102.1 PS C:\GitHub\penguinpages_cluster_devops\cluster_devops>
`
Then I used windows to "launch ubuntu" and get this error:
. Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x803b0001 Error: 0x803b0001 The network was not found.
Press any key to continue.. '
Which lead to this thread: #4959
So no fix.. but I think Windows sticks some virtual bridge interface ID / number into the WSL instance for the NIC... and when that gets orphaned / broken, their is no means to repair.
Hey Bro, I just resolved this error:0x803b0001. Hope here after comment will help for you.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\vmsmp\parameters\SwitchList\{yada yada}
Anyway, It is work for me.
Uninstall.
Then disable AV/Firewall
Then Reinstall.
How to Re-install vEthernet, i Tried re-enableling Hyper -V but it wont install Ethernet again
Version
Microsoft Windows [Version 10.0.19042.1526]
WSL Version
Kernel Version
Kernel version: 5.4.72
Distro Version
Debian
Other Software
Docker version 20.10.10, build b485636 VS Code: 1.64.2 f80445acd5a3dadef24aa209168452a3d97cc326 x64
Repro Steps
WSL logs:
wsl-etl.zip
Expected Behavior
Actual Behavior
Error Prompted:
Diagnostic Logs
wsl.zip