microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
16.93k stars 799 forks source link

Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/0x80070424 #10778

Open sigit2 opened 7 months ago

sigit2 commented 7 months ago

Windows Version

Microsoft Windows [Version 10.0.22631.2715]

WSL Version

WSL version: 2.0.9.0

Are you using WSL 1 or WSL 2?

Kernel Version

5.10.102.1

Distro Version

Debian 12

Other Software

No response

Repro Steps

Try and start a new Debian session.

Expected Behavior

New window starts and left at command prompt.

Actual Behavior

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

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

If I uninstall the wsl update, then Debian starts without error.

Diagnostic Logs

WslLogs-2023-11-16_11-53-35.zip

github-actions[bot] commented 7 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

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. Thank you!

Open similar issues:

Closed similar issues:

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

Sprokket commented 7 months ago

Still an issue for me

jsanchezba commented 7 months ago

@Sprokket This worked for me without having to reinstall nor losing projects or configuration: https://github.com/microsoft/WSL/issues/10755#issuecomment-1812579096

keith-horton commented 7 months ago

The OS feature "Virtual Machine Platform" is not installed (only Hyper-V optional features are installed). Can you go through optional components to install it?

FeatureName : VirtualMachinePlatform State : Disabled

Thanks!

sigit2 commented 7 months ago

The OS feature "Virtual Machine Platform" is not installed (only Hyper-V optional features are installed). Can you go through optional components to install it?

FeatureName : VirtualMachinePlatform State : Disabled

Thanks!

I've installed Virtual Machine Platform, and updated WSL. Seems to have fixed the issue. Not a very user-friendly error message, when it could have just said "install Virtual Machine Platform".

bing-zhub commented 5 months ago

I have updated the windwos 11 pro to 23h2, and also update the wsl to 2.0.14.0. The VMP and Hyper-V are also installed, but the wsl still not working.

(base) PS C:\WINDOWS\system32> wsl
Failed to configure network (networkingMode Nat). To disable networking, set `wsl2.networkingMode=None` in C:\Users\lab\.wslconfig
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/0xffffffff

Please help me out! Thanks!

keith-horton commented 5 months ago

If you are hitting issues, please collect traces for us to be able to troubleshoot: https://github.com/microsoft/WSL/blob/master/diagnostics/collect-networking-logs.ps1

dong9205 commented 3 months ago

为了使电脑有更好的性能,我尝试关闭了Windows Defender Firewall,遇到了这个错误,可以使用命令进行修复

REG add "HKLM\SYSTEM\CurrentControlSet\services\MpsSvc" /v Start /t REG_DWORD /d 2 /f