Skip to content
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/0x803b0001 #11811

Open
1 of 2 tasks
mohamad13225 opened this issue Jul 19, 2024 · 4 comments
Open
1 of 2 tasks
Labels

Comments

@mohamad13225
Copy link

Windows Version

Microsoft Windows [Version 10.0.19045.4651]

WSL Version

2.2.4.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.153.1-2

Distro Version

Ubuntu 22.04

Other Software

none

Repro Steps

Allow Hyper-V
in .wslconfig I add
[wsl2] networkMode=bridged
then nat
and that happened

Expected Behavior

ubuntu start normaly

Actual Behavior

Failed to configure network (networkingMode Nat). To disable networking, set wsl2.networkingMode=None in C:\Users\A7med & Mohammed.wslconfig
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/0x803b0001

[process exited with code 4294967295 (0xffffffff)]
You can now close this terminal with Ctrl+D, or press Enter to restart.

Diagnostic Logs

WslLogs-2024-07-18_17-30-38 (1).zip

Copy link

View similar issues

Please 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:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Diagnostic information
Detected appx version: 2.2.4.0
Detected user visible error: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/0x803b0001

@mohamad13225
Copy link
Author

I did all solutions nothing changed

@OneBlue
Copy link
Collaborator

OneBlue commented Jul 22, 2024

@keith-horton: Have you ever seen this before ? Looks like we fail to create the network because it already exists (we get HCN_E_NETWORK_ALREADY_EXISTS) , but then we fail to open it:

Microsoft.Windows.Lxss.Manager	Error	07-18-2024 07:30:45.509	"	"	"code: 	
failurecount: 	627
file: 	D:\a\1\s\src\windows\wslcore\lib\NatNetworking.cpp
function: 	
hr: 	0x803B0001
linenumber: 	880
message: 	""HcnOpenNetwork {""""Success"""":false,""""Error"""":""""The network was not found. """",""""ErrorCode"""":2151350273}""
threadid: 	15092
type: 	0
wslVersion: 	2.2.4.0"	D:\a\1\s\src\windows\wslcore\lib\NatNetworking.cpp			5480	15092	2		00000000-0000-0000-0000-000000000000		
Microsoft.Windows.Lxss.Manager	NatNetworking::CreateNetwork [HcnCreateNetwork]	07-18-2024 07:30:45.610	"	"	"hr: 	-2143617008
networkGuid: 	{b95d0c5e-57d4-412b-b571-18a81a16e005}
retryCount: 	6
settingsFlags: 	EnableDns EnableNonPersistent
settingsInterfaceConstraintInterfaceAlias: 	
settingsIsolateSwitch: 	1
settingsName: 	WSL
settingsType: 	ICS"				5480	15092	5		00000000-0000-0000-0000-000000000000		

@CatalinFetoiu
Copy link
Collaborator

Hi. Can you please collect networking logs by following the instructions below?
https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants