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

yet another WslRegisterDistribution failed with error: 0x80070057 #10761

Closed
1 of 2 tasks
twest820 opened this issue Nov 16, 2023 · 9 comments
Closed
1 of 2 tasks

yet another WslRegisterDistribution failed with error: 0x80070057 #10761

twest820 opened this issue Nov 16, 2023 · 9 comments

Comments

@twest820
Copy link

Windows Version

Microsoft Windows [Version 10.0.19045.3570]

WSL Version

2.0.9.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

n/a: distro install failure

Distro Version

Ubuntu default

Other Software

No response

Repro Steps

wsl --install

or

wsl --install -d Ubuntu

Expected Behavior

wsl --install succeeds.

Actual Behavior

WslRegisterDistribution failed with error: 0x80070057

Diagnostic Logs

Setup is the following:

  • Windows 10 22H2 machine with WSL, Virtual Machine Platform, and two domain users who have local admin
  • one user has no problem installing distros
  • if the other user tries to install a distro WSL tries to start Hyper-V, which fails
  • Windows' Hyper-V features and Windows Hypervisor Platform are not installed
  • neither user has a %USERPROFILE%.wslconfig
  • affected user has no distro keys under HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss
  • wsl's messages for the affected user are conflicting, saying both that they have Ubuntu installed and that there is no distro installed, wsl --list --verbose typically shows no distros
  • after Ubuntu install fails the affected user has Ubuntu package files under AppData\Local\Packages and Ubuntu shows as installed app
  • wsl --install fails the same way regardless of whether the previous failed Ubuntu installs are left in place, uninstalled through Apps & features, or the package is deleted through File Manager

It seems clear wsl is holding some bad state that's point the affected user to Hyper-V rather than Virtual Machine Platform. Concerns are

  • where is this state and how can it be reset for the affected user
  • what needs to change in WSL not generate this broken bit of state in the future

If Hyper-V is installed and virtualization enabled in the BIOS the affected user can complete an Ubuntu installed. This is, however, not a long term viable workaround. The affected user can successfully install Ubuntu on other machines with WSL2 (even if not admin) so it doesn't look like WSL is keeping state in their roaming profile.

None of the other 0x80070057 issues appear to have reached this level investigation. We have .etl logs but most of the messages are empty and the populated ones just indicate Hyper-V failed to start, which is hardly surprising since it's not installed. So there's nothing informative about why WSL is trying to start Hyper-V instead of VMP.

Copy link

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.

@rcarde
Copy link

rcarde commented Nov 16, 2023

Probably related latest Windows Updates. See #10754 and #10755.

Try going into Windows Features and re-enable "Virtual Machine Platform".

@twest820
Copy link
Author

Try going into Windows Features and re-enable "Virtual Machine Platform".

VMP's always been enabled.

@OneBlue
Copy link
Collaborator

OneBlue commented Nov 16, 2023

/logs

@twest820
Copy link
Author

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

Already in OP; @OneBlue's bot trigger is erroneous.

@OneBlue
Copy link
Collaborator

OneBlue commented Mar 23, 2024

/logs

@twest820
Copy link
Author

Still in OP; @OneBlue's repeat of the previous bot trigger remains not needed.

@OneBlue
Copy link
Collaborator

OneBlue commented Mar 23, 2024

@twest820 I'm not seeing any logs in the OP.

Copy link
Contributor

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-file it as a new issue.

Thank you!

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

No branches or pull requests

3 participants