-
Notifications
You must be signed in to change notification settings - Fork 822
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/0x80041002 #12022
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:
|
I have emailed the files. |
thanks for reporting the issue. can you please collecting networking logs using instructions below? download https://github.com/microsoft/WSL/blob/master/diagnostics/collect-networking-logs.ps1 |
Did you by any chance install VMware Workstation? That broke my WSL networking, even after uninstalling VMware. It left behind a registry key which prevented virtual network adapters from being created. This is the registry key:
After removing this registry key, then clicking Maybe try a To be clear: the issue is that there is that WSL is unable to create a Hyper-V virtual networking adapter for WSL to connect to the Internet with. If you don't actually need the Internet, you can disable WSL networking by adding this to C:\Users\YourUserName.wslconfig:
|
I was having the same error. Have never had VMWare installed and don't have the registry key mentioned above. I had to tweak the WSL config to say the following (not quite what's written above). Obviously that leaves me without network but that's fine for my use case. I also have the 2024-09 preview installed.
|
As a note from a Nix Wsl user. if anyone facing the same issue and want internet to work with it:
[wsl2]
networkingMode=mirrored
wsl.usbip.snippetIpAddress = "127.0.0.1";
|
Windows Version
Microsoft Windows [Version 10.0.22631.4169]
WSL Version
2.2.4.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.153.1-2
Distro Version
Kali
Other Software
No response
Repro Steps
Running wsl, kali, or docker engine
Expected Behavior
WSL distro to start
Actual Behavior
Failed to configure network (networkingMode Nat). To disable networking, set
wsl2.networkingMode=None
in C:\Users\USER.wslconfigError code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/0x80041002
Press any key to continue...
Diagnostic Logs
I have sent my logs to [email protected] with the subject line "WslLogs-2024-09-11_12-29-53 GitHub Issue"
The text was updated successfully, but these errors were encountered: