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

--set-version 2 does not work #7297

Closed
1 of 2 tasks
TobixDS opened this issue Aug 10, 2021 · 5 comments
Closed
1 of 2 tasks

--set-version 2 does not work #7297

TobixDS opened this issue Aug 10, 2021 · 5 comments

Comments

@TobixDS
Copy link

TobixDS commented Aug 10, 2021

Windows Build Number

Microsoft Windows [Version 10.0.19041.867]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

No response

Distro Version

Ubuntu 20.04

Other Software

No response

Repro Steps

I am trying to convert a fresh installed Ubuntu-20.04 from WSL1 to WSL2

Trying to convert with
wsl --set-version Ubuntu-20.04 2

But the distro stays on WSL 1

I have studied several articles on the internet with similar issues and checked several times their hints:

  • Windows is not running inside a VM
  • Feature Virtual Machine Platform is enabled
  • Feature Windows-Subsystem for Linux is enabled
  • Feature Hyper-V is enabled
  • BIOS VT and DEP are on
  • bcdedit hypervisorlaunchtype is set to auto

Expected Behavior

The distro upgrades to WSL2 or at least a helpful error message is displayed.

Actual Behavior

Distro stays on WSL1 - no error message what went wrong.

Diagnostic Logs

I have taken logs using the wpr
wsl2.zip

@benhillis
Copy link
Member

The error is still indicating that the hypervisor isn't running. Could you check msinfo32 and see if the virtualization settings look right? Are there any errors in eventvwr about the hypervisor not starting?

@TobixDS
Copy link
Author

TobixDS commented Aug 10, 2021

Hi Ben,
thanks for your reply.
msinfo32 looks fine
image

But the Eventvwr shows a failing hvservice.sys which then blocks HvHost.
The error message is for both of them: "Element not found".

Any ideas what might block the hvservice.sys?

Another hint:
The Microsoft Hyper-V NT Kernel Integration driver reports an error 37 (object not found)

@ghost ghost removed the needs-author-feedback label Aug 10, 2021
@TobixDS
Copy link
Author

TobixDS commented Aug 10, 2021

I Found a promising link.

https://rog.asus.com/forum/showthread.php?112543-Hyper-V-Broken-in-BIOS-1902-for-PRIME-X299-DELUXE

It seems that my motherboard's BIOS is the culprit.

I will report as soon I have made a BIOS upgrade.

@benhillis
Copy link
Member

Excellent, thanks @TobixDS. I'm trying to see if we can make more specific error codes for this case. Currently there is no distinction between the hypervisor not being installed, and the hypervisor failing to start.

@TobixDS
Copy link
Author

TobixDS commented Aug 12, 2021

Hi Ben,
Hyper-V is now running an the distro migrated to version 2.
It was indeed the non-running Hyper-V caused by the v1902 BIOS from ASUS.
Thanks for your help.

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