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

WslRegisterDistribution failed with error: 0x8007023e #11716

Open
1 of 2 tasks
CYST084 opened this issue Jun 20, 2024 · 8 comments
Open
1 of 2 tasks

WslRegisterDistribution failed with error: 0x8007023e #11716

CYST084 opened this issue Jun 20, 2024 · 8 comments
Labels

Comments

@CYST084
Copy link

CYST084 commented Jun 20, 2024

Windows Version

Microsoft Windows [Version 10.0.19045.4529]

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 LTS, Ubuntu

Other Software

No response

Repro Steps

Open Terminal as administrator, run wsl --install Ubuntu-22.04 or wsl --install Ubuntu

Expected Behavior

For Linux distros, in my case Ubuntu to install and run successfully

Actual Behavior

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\user> wsl --install Ubuntu-22.04
Installing: Ubuntu 22.04 LTS
Ubuntu 22.04 LTS has been installed.
Launching Ubuntu 22.04 LTS...
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x8007023e
Error: 0x8007023e {Application Error}
The exception s (0x
Press any key to continue...
The installation process for distribution 'Ubuntu-22.04' failed with exit code: 1.
Error code: Wsl/InstallDistro/WSL_E_INSTALL_PROCESS_FAILED

PS C:\Users\user> wsl --update
Checking for updates.
Updating Windows Subsystem for Linux to version: 2.2.4.

PS C:\Users\user> wsl --status
Default Version: 2

PS C:\Users\user> wsl --version
WSL version: 2.2.4.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.61
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26091.1-240325-1447.ge-release
Windows version: 10.0.19045.4529

PS C:\Users\user> wsl --install Ubuntu
Installing: Ubuntu
Ubuntu has been installed.
Launching Ubuntu...
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x8007023e
Error: 0x8007023e {Application Error}
The exception s (0x
Press any key to continue...
The installation process for distribution 'Ubuntu' failed with exit code: 1.
Error code: Wsl/InstallDistro/WSL_E_INSTALL_PROCESS_FAILED

PS C:\Users\user>

Diagnostic Logs

  • I have hypervisor in BIOS enabled

  • I have also turned on in windows features: wsl, Hyper-V, Virtual Machine Platform, Windows Hypervisor Platform

  • Haven't found any helpful fix so far and I have searched a lot, I have come across the turn off restart, turn on restart try again (pretty much almost all posts) but it still doesn't work

Copy link

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!

Open similar issues:

Closed similar issues:

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

@CYST084
Copy link
Author

CYST084 commented Jun 20, 2024

WSL-Logs

WslLogs-2024-06-20_16-26-07.zip

Copy link

The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running.

Diagnostic information
Detected appx version: 2.2.4.0
Found no WSL traces in the logs

@CYST084
Copy link
Author

CYST084 commented Jun 20, 2024

Updated WSL-Log

WslLogs-2024-06-20_16-35-18.zip

Copy link

Diagnostic information
Detected appx version: 2.2.4.0

@CYST084
Copy link
Author

CYST084 commented Jun 23, 2024

Nothing helpful so far, anyone who has experienced similar issue and resolved it, kindly reach out.

@OneBlue
Copy link
Collaborator

OneBlue commented Jul 9, 2024

Looks like this is caused by an HNS issue:

Microsoft.Windows.Lxss.Manager	Error	06-20-2024 06:35:47.165	"	"	"code: 	
failurecount: 	56
file: 	D:\a\1\s\src\windows\wslcore\lib\NatNetworking.cpp
function: 	
hr: 	0x8007023E
linenumber: 	885
message: 	""HcnCreateNetwork {""""Success"""":false,""""Error"""":""""{Application Error} The exception s (0x"""",""""ErrorCode"""":2147942974}""
threadid: 	4748
type: 	0
wslVersion: 	2.2.4.0"	D:\a\1\s\src\windows\wslcore\lib\NatNetworking.cpp			10176	4748	2		00000000-0000-0000-0000-000000000000		

Adding the networking tag

@keith-horton
Copy link
Member

Sorry, this is similar to #10507, where vswitch failed to create a NAT switch. It's not clear from the traces why this is failing. If you collect networking-logs, we might get more information. https://github.com/microsoft/WSL/blob/master/diagnostics/collect-networking-logs.ps1

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