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: 0x80040323 #9196

Closed
2 tasks
DevPlus31 opened this issue Nov 23, 2022 · 11 comments
Closed
2 tasks

WslRegisterDistribution failed with error: 0x80040323 #9196

DevPlus31 opened this issue Nov 23, 2022 · 11 comments

Comments

@DevPlus31
Copy link

DevPlus31 commented Nov 23, 2022

Version

Microsoft Windows [Version 10.0.19045.2311]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

No response

Distro Version

Ubuntu 22.04

Other Software

No response

Repro Steps

Installation

Expected Behavior

Installation success.

Actual Behavior

I had WSL working great, I installed the Windows Store version. then it wouldn't work
I've remove it completely from my system and re-install it from scratch now I cannot install any distro.

output:
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80040323
Error: 0x80040323 (null)
Press any key to continue...

Diagnostic Logs

No response

@benhillis
Copy link
Member

/logs

@ghost
Copy link

ghost commented Nov 23, 2022

Hello! Could you please provide more logs to help us better diagnose your issue?

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

Thank you!

@DevPlus31
Copy link
Author

WslLogs-2022-11-23_17-44-45.zip

Here is the result.

@ghost ghost removed the needs-author-feedback label Nov 23, 2022
@benhillis
Copy link
Member

@DevPlus31 - I don't see any WSL events in that trace. Did you start the trace, try to register the distro, then stop the trace?

@benhillis
Copy link
Member

The error you are seeing looks like it's one of ours related to nested virtualization. Can you share the contents of you %userprofile%\.wslconfig file?

@DevPlus31
Copy link
Author

I did a new tracing, sorry the other one is wrong.
WslLogs-2022-11-23_18-23-23.zip

my wslconfig file content:
[wsl2] nestedVirtualization=true kernel=C:\\Users\\Mustapha\\bzImage

@benhillis
Copy link
Member

Thanks - it looks like your machine does not support nested virtualization. Try removing that line and it should work.

@DevPlus31
Copy link
Author

DevPlus31 commented Nov 23, 2022

Yes, I just set nestedVirtualization to false and it worked.
Any tool or command to confirm Nested virtualization is not supported, I am on a system with a Core i7 6700K.

@benhillis
Copy link
Member

Nested virtualization is not enabled on Windows 10.

@DevPlus31
Copy link
Author

Okay, thank you.

@benhillis
Copy link
Member

No problem. I'll update the code to remove this error path and allow the VM to boot.

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

No branches or pull requests

2 participants