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

Persistent Error 0x80070426 with WSL on Windows 11 #11656

Closed
1 of 2 tasks
LemonadeGoneLime opened this issue Jun 5, 2024 · 7 comments
Closed
1 of 2 tasks

Persistent Error 0x80070426 with WSL on Windows 11 #11656

LemonadeGoneLime opened this issue Jun 5, 2024 · 7 comments
Labels

Comments

@LemonadeGoneLime
Copy link

Windows Version

Microsoft Windows 11 Enterprise, Version 21H2, OS build 22000.2960

WSL Version

2.1.5.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.146.1-2

Distro Version

Not applicable as the installation of Ubuntu does not complete.

Other Software

None involved.

Repro Steps

  1. Enable WSL and Virtual Machine Platform via PowerShell and Windows features.
  2. Start LxssManager service, confirm it's running.
  3. Use wsl --install -d Ubuntu to install Ubuntu.
  4. Encounter error: WslRegisterDistribution failed with error: 0x80070426.
  5. Use wsl --list --verbose, results show no distributions installed despite installation claims.

Expected Behavior

Expected Ubuntu to install successfully and launch without errors.

Actual Behavior

Received error 0x80070426 indicating a service has not started, despite services running as expected. Despite multiple installation attempts, Ubuntu does not appear to be registered correctly and fails to launch.

Diagnostic Logs

  • Checked and manually started LxssManager which is running.
  • Full reinstall of WSL conducted, including disabling and re-enabling through Windows features (including virtual machine, hyper).
  • sfc /scannow run to check for system integrity violations; no issues found.
Copy link

github-actions bot commented Jun 5, 2024

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

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
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

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!

Closed similar issues:

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

@LemonadeGoneLime
Copy link
Author

Here are the diagnostic logs collected as requested. The logs were captured while attempting to install Ubuntu via WSL, which consistently fails with error 0x80070426, indicating that a service has not started. These logs should provide more insight into what might be causing this persistent issue.

I followed the log collection procedure using collect-wsl-logs.ps1 and encountered the error during the process, so the logs should reflect the state of the system at the time of the error.

Please let me know if further information is required.

WslLogs-2024-06-05_10-17-45.zip

Copy link

github-actions bot commented Jun 5, 2024

Diagnostic information
.wslconfig found
Detected appx version: 2.1.5.0

@LemonadeGoneLime
Copy link
Author

Closing

@OneBlue
Copy link
Collaborator

OneBlue commented Jun 11, 2024

This looks like an issue with the HNS service:

Microsoft.Windows.Lxss.Manager	Error	06-05-2024 07:19:22.579	"	"	"code: 	
failurecount: 	11
file: 	D:\a\1\s\src\windows\wslcore\lib\NatNetworking.cpp
function: 	
hr: 	0x80070426
linenumber: 	883
message: 	""HcnCreateNetwork {""""Success"""":false,""""Error"""":""""The service has not been started. """",""""ErrorCode"""":2147943462}""
threadid: 	8144
type: 	0
wslVersion: 	2.1.5.0"	D:\a\1\s\src\windows\wslcore\lib\NatNetworking.cpp			4452	8144	2		00000000-0000-0000-0000-000000000000		

@keith-horton: Have you ever seen this before ?

@chanpreetdhanjal
Copy link

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

@keith-horton
Copy link
Member

@LemonadeGoneLime : this failed to deploy the container when HNS tried to set DNS information on the interface - it failed with an error stating that the dnscache service was not running. Did you happen to manually stop/disable the dnscache service? That will be required to deploy a NAT container.

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

4 participants