-
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
WSL2 can't start after VMware 17.6.0 incident, virtual networking missing #12055
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The script will output the path of the log file once done. If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here Once completed please upload the output files to this Github issue. Click here for more info on logging View similar issuesPlease view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it! Open similar issues:
Closed similar issues:
|
After the above, I tried reinstalling my Intel network driver to see if that fixed the issues with the broken Hyper-V virtual switches. Unfortunately, that made it worse. My Intel network adapter also turned into a yellow exclamation point and had the same error message as appeared on my Hyper-V Extensible Virtual Switch in the General tab:
After this, my Intel network adapter would not longer accept a driver at all. It would try to install a driver, freeze up for minutes, then give me an error. After a couple more hours of troubleshooting I solved the problem. There is a registry key that VMware leaves behind, which broke my
After removing this registry key manually, then clicking I'm pretty sure the fix was the registry key, as all my problems started when VMware was installed then uninstalled. But it's possible the Note: Other error codes I experienced which can help search engines finding this solution:
Hope it works for others! |
Windows Version
Microsoft Windows [Version 10.0.19045.4894]
WSL Version
2.2.4.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.153.1-2 (according to wsl --version)
Distro Version
Ubuntu 20.04 LTS
Other Software
From my generated WSL logs:
Repro Steps
Virtual network drivers missing, WSL2 will not start
After an incident with VMware Workstation 17, the virtual network adapter needed by WSL2 have disappeared, and I cannot find any way to recover them. Ubuntu always remains in the status
Stopped
. I cannot access my internal web sites and programming environment for over a week, this is aggravatingly frustrating and awful.Steps that got me to where I am:
Expected Behavior
WSL should start up and let me run my local development environment and my local Nginx PHP-FPM web server.
Actual Behavior
When attempting to run my WSL v2 Ubuntu 20.04 distro:
It also says:
However, following the instructions to disable networking with
wsl2.networkingMode=None
does not have any effect. I created the file with the suggested line, but then WSL complains that the file does not have an=
sign in it -- which it clearly does, on the first and only line in the file! Because it was not doing anything useful, I removed the file again.Diagnostic Logs
Features I have added, removed, or reinstalled multiple times include:
I also tried these adding and removing these ones because I heard people on forums having problems with virtual networking adapters with/without these Features enabled:
And I tried this one because it mentioned networking:
None of these components has had any effect on the missing virtual network drivers.
I also tried these commands from an Administrator PowerShell:
These commands did not recover the virtual network drivers needed by WSL2.
Commands above with
vEthernet (WSL)
in them failed due to this adapter not existing. Note: the adapter is not simply hidden. The only adapter that exists is myIntel(R) Ethernet Connection (2) I219-V
, everything else has been purged/deleted. Runningipconfig /all
only shows the Intel adapter, no virtual networking entries (as would usually show up).I attempted to install another random distro to see if WSL2 would recreate the required virtual network adapters, but it did not do so. After the installer downloaded Debian, WSL provided this error:
Another thread mentioned the WSL kernel file might have gone missing as a cause, but my WSL2 kernel appears intact:
Network logs show these errors repeated thousands of times:
I looked in my Ethernet Adapter properties to see if anything was amiss, and these don't look right:
I don't want the
VMware Bridge Protocol
as I already uninstalled VMware, but if I try to uninstall it I receive the following error:I do want the
Hyper-V Extensible Virtual Switch
as I believe that's how WSL2 produces its virtual network adaptervEthernet (WSL)
, but when I try to enable it I receive this error message:When I select Yes it then gives me this second pop-up error message:
These errors don't make a bit of sense, I am literally just selecting the checkbox for that one feature and hitting Apply.
It seems there is something else that is required before I can enable the virtual switch feature, or else the virtual switch feature on my system is completely broken.
When I go to my
Device Manager
, underNetwork Adapters
I seeHyper-V Extensible Virtual Switch
appearing and disappearing every few seconds. When it appears, it has a yellow exclamation point, and if I load up Properties for it there are hundreds of these add/remove error log entries shown.Screenshot:
How can I recreate the missing
vEthernet (WSL)
virtual network adapter and continue using WSL2?The text was updated successfully, but these errors were encountered: