-
Notifications
You must be signed in to change notification settings - Fork 823
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
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/ERROR_UNHANDLED_EXCEPTION #11389
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 scipt will output the path of the log file once done. 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:
|
Log is 35MB, exceeding Github's 25MB limit |
Log is 35MB, exceeding Github's 25MB limit |
@alohith: If the log file is too big for github, you can use google drive or onedrive. |
here you go: https://drive.google.com/file/d/1YoBleuiy5Z--mBYkcbMlTTHwg2GZuv-1/view?usp=drive_link |
This indeed looks like something is crashing when trying to create the WSL network. @keith-horton: How could we root cause this ? |
@OneBlue , sorry, I don't know hvsocket architecture very well. maybe we should talk internally with the owning teams. |
@keith-horton: We're seeing the failure come from here:
I don't think this is related to hvsocket. It looks like something is failing inside HNS |
@OneBlue , my mistake. I was thinking this was a different issue. looking into it. |
@alohith , this wasn't the networking trace - but this looks like a pattern we've seen where vswitch is unable to create a NAT switch from the underlying network configuration. Did this start failing once you bridged 2 network adapters? It looks like something between vswitch and netsetup is failing. |
I haven't successfully bridged the 2 NICs, every time I try to, I get some "we can't do this" type error dialog box without any helpful resolution path, so I've just reset all the networking to 'default' (2 LAN connections +1 WLAN connection) but WSL networking i guess is broken now... Some context, I was having failing RAM issues, for which I did a replacement with a new kit of RAM, which in turn somehow disconnected my NVME boot and corrupted it. I fixed all that and ended with a 'fresh' install of win10, but with all my files. So I've just been over last couple weeks bringing back online all the settings and programs I had before the win10 reset. Just so happens that trying to do the LAN connection bridge, broke WSL's ability to ANY networking. My current Device Manager pane for network adapters looks like this: |
If you are getting errors trying to create an L2 bridge, there is something wrong very low in the stack. That's something NDIS support would probably have to look at :( Did you do a full network reset? (Settings -> Network & Internet -> Network reset) |
One other option that might just solve it, in Device Manager, click on the "View" menu item and click on "Show hidden devices". if you see any Hidden device under Network Adapters, I would remove them. For some configurations, we have seen those "ghost" adapters break a lot of things. |
thanks for these solutions: I don't see any 'hidden devices' in device manager under network adapters, so i guess that may not be it. |
@OneBlue @keith-horton I just did the network reset (after changing the networkingMode= NAT), and it doesn't seem to have fixed the WSL network connection, still: |
where would I submit a support ticket to find a resolution at NDIS? |
@alohith in an elevated session run |
@zcobol Do you mean elevated session of Powershell? or disable networkingMode with .wslconfig run this If the former, it didn't seem to do anything: |
@zcobol @keith-horton @OneBlue So following the elevated But it looks like Ubuntu on WSL still doesn't have any networking, throwing the same error that i've been seeing the whole time I don't want to go the 'nuclear' resolution and reset windows again starting from scratch all my setup for the second time... |
@alohith, Were you able to get this resolved? I'm no expert on this, but I'll share a couple things that worked for me. Hopefully it helps someone. In both these solutions I have the following Windows features enabled: Hyper-V, Virtual Machine Platform, and Windows Subsystem for Linux. As a side note, I also have NordVPN running and both the following solutions still worked. This documentation helped me, WSL Networking Documentation Host Machine: Window 11 23H2 22631.3296 My wsl
My .wslconfig. - Your config doesn't need all these setting, but add them as needed.
|
@kohded Thanks for the suggestions. unfortunately WSL in win 10 with your .wslconfig parameters returns the following for the first option for the second option, when I try to open (as Administrator) the 'Virtual Switch Manager' from the Hyper-V manager to set up the vmSwitch as you describe I get the following, so little lost on what resolution I can actually do. And applying the .wslconfig settings as described without futzing in the virtual switch manager, I get the following: .wslconfig settings set as following:
|
Sorry, it looks like your Hyper-V configuration is in some broken state. I would recommend removing all Hyper-V related features, then adding them back to get into a known working state. This does mean that if you have VMs, you'll want to ensure they are backed up correctly first. Same with your Linux distros. (always good to have backups!) That would mean removing the optional components for Hyper-V, Virtual Machine Platform, Windows Sandbox, Microsoft Defender Application Guard, Windows Subsytem for Linux. |
@keith-horton Thanks for the suggestions about removing the optional windows components and then bringing them back. After doing that, i went an extra step and unregistered Ubuntu before installing it again, (while .wslconfig had [wsl2] networkingMode=None, then after changing to NAT, Ubuntu is able to launch like normal and i was able to ping google so 🤞 its all solved? Thanks for all your help on this. |
@alohith that's great - glad you're up and running :) |
Closing since the issue is resolved. |
Solution - Mirroredsaved my life! Thanks |
Windows Version
Microsoft Windows [Version 10.0.19045.4170]
WSL Version
2.1.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.146.1-2
Distro Version
Ubuntu (22.04)
Other Software
No response
Repro Steps
I was trying to setup LAN Network Bridge in 'Network and Sharing Center' again after hardware change forced windows 10 reset, then suddenly lost networking ability in WSL. I've tried suggested fixes from the following issue#: #10709 #10495 #10755 #10764, none of which have worked besides creating a .wslconfig file, and setting
networkingMode=none
Expected Behavior
Actual Behavior
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: