microsoft / WSL

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

WslRegisterDistribution failed with error: 0x80070426 #12031

Open ft-scobra opened 2 months ago

ft-scobra commented 2 months ago

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

No response

Distro Version

Ubuntu

Other Software

No response

Repro Steps

Run wsl --install or wsl --install Ubuntu or ubuntu.

Expected Behavior

Ubuntu Launches Successfully.

Actual Behavior

C:\Windows\System32>wsl --install
Ubuntu is already installed.
Launching Ubuntu...
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070426
Error: 0x80070426 The service has not been started.

Press any key to continue...

Diagnostic Logs

WslLogs-2024-09-13_08-13-28.zip

ft-scobra commented 2 months ago

Same issue as #12030

github-actions[bot] commented 2 months ago

The logs show that the VM failed to start because the HNS network couldn't be created. Adding network tag

Diagnostic information ``` Detected appx version: 2.2.4.0 Found evidence of HcnCreateNetwork failure: HcnCreateNetwork {"Success":false,"Error":"The service has not been started. ","ErrorCode":2147943462}. HResult: 0x80070426 ```
ft-scobra commented 2 months ago

Not sure what service is off but from what I could find online, these services are running and set to Automatic:

Microsoft Store is working fine and downloading fine.

In addition, these windows features are tuned on:

sfc /scannow shows no errors.

Not sure if there's something else I need to look for.

CatalinFetoiu commented 2 months ago

thanks for reporting the issue. can you please collect networking logs using instructions at https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues?

the script will create a zip with name starting with "WslNetworkingLogs"

ft-scobra commented 2 months ago

WSL Networking Logs: WslNetworkingLogs-2024-09-14_00-18-19.zip

github-actions[bot] commented 2 months ago
Diagnostic information ``` Detected appx version: 2.2.4.0 optional-components.txt not found Detected user visible error: Wsl/Service/CreateInstance/GetDefaultDistro/WSL_E_DEFAULT_DISTRO_NOT_FOUND Detected user visible error: Wsl/Service/CreateInstance/GetDefaultDistro/WSL_E_DEFAULT_DISTRO_NOT_FOUND ```
ft-scobra commented 2 months ago

bump. I can't use docker desktop because of this issue.

ibrouos commented 2 weeks ago

@ft-scobra did you manage to get anywhere with this, had the same problem for over a week now (ended up using my macbook instead for work)

Tempted to just reinstall windows at this point, but it shouldn't be this difficult.