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

WSL Registration Error: 0x80370102 #12382

Open
1 of 2 tasks
kweeks95 opened this issue Dec 15, 2024 · 5 comments
Open
1 of 2 tasks

WSL Registration Error: 0x80370102 #12382

kweeks95 opened this issue Dec 15, 2024 · 5 comments
Assignees

Comments

@kweeks95
Copy link

Windows Version

Microsoft Windows 11 Version 23H2

WSL Version

2.3.26.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.167.4-1

Distro Version

Ubuntu 24.04

Other Software

Sysinfo.txt

Repro Steps

PS C:\Windows\system32> wsl.exe --install Ubuntu-24.04
Ubuntu 24.04 LTS is already installed.
Launching Ubuntu 24.04 LTS...
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80370102
Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.
For information please visit https://aka.ms/enablevirtualization
Press any key to continue...

Expected Behavior

I was expecting that ubuntu for wsl would install and i be prompted to create a user account and password.

Actual Behavior

PS C:\Windows\system32> wsl.exe --install Ubuntu-24.04
Ubuntu 24.04 LTS is already installed.
Launching Ubuntu 24.04 LTS...
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80370102
Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.
For information please visit https://aka.ms/enablevirtualization
Press any key to continue...

Diagnostic Logs

WslLogs-2024-12-15_13-51-23.zip

Copy link

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.

Diagnostic information
Detected appx version: 2.3.26.0

@zcobol
Copy link

zcobol commented Dec 16, 2024

According to Windows API documentation error 0x80370102 means The virtual machine could not be started because a required feature is not installed but won't tell what feature is missing!

If you have VS Studio installed open a VS command prompt and enter errlook.exe to lookup errors.

The error definition in winerror.h:

//
// MessageId: HCS_E_HYPERV_NOT_INSTALLED
//
// MessageText:
//
// The virtual machine could not be started because a required feature is not installed.
//
#define HCS_E_HYPERV_NOT_INSTALLED       _HRESULT_TYPEDEF_(0x80370102L)

Do you have hyper-v installed?

On my system I have these hyper-v features installed and WSL works okay:

FeatureName : Microsoft-Windows-Subsystem-Linux
State       : Enabled

FeatureName : HypervisorPlatform
State       : Disabled

FeatureName : VirtualMachinePlatform
State       : Enabled

FeatureName : Containers-DisposableClientVM
State       : Enabled

FeatureName : Microsoft-Hyper-V-All
State       : Enabled

FeatureName : Microsoft-Hyper-V
State       : Enabled

FeatureName : Microsoft-Hyper-V-Tools-All
State       : Enabled

FeatureName : Microsoft-Hyper-V-Management-PowerShell
State       : Enabled

FeatureName : Microsoft-Hyper-V-Hypervisor
State       : Enabled

FeatureName : Microsoft-Hyper-V-Services
State       : Enabled

FeatureName : Microsoft-Hyper-V-Management-Clients
State       : Enabled

Maybe the developers could clarify what features are needed for WSL only instead a full hyper-v installation.

@kweeks95
Copy link
Author

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.

Diagnostic information

I have reviewed and tried the suggested fix's from similar problems with no success. I have ensured that virtualization is enabled in bios.

@kweeks95
Copy link
Author

According to Windows API documentation error 0x80370102 means The virtual machine could not be started because a required feature is not installed but won't tell what feature is missing!

If you have VS Studio installed open a VS command prompt and enter errlook.exe to lookup errors.

The error definition in winerror.h:

//
// MessageId: HCS_E_HYPERV_NOT_INSTALLED
//
// MessageText:
//
// The virtual machine could not be started because a required feature is not installed.
//
#define HCS_E_HYPERV_NOT_INSTALLED       _HRESULT_TYPEDEF_(0x80370102L)

Do you have hyper-v installed?

On my system I have these hyper-v features installed and WSL works okay:

FeatureName : Microsoft-Windows-Subsystem-Linux
State       : Enabled

FeatureName : HypervisorPlatform
State       : Disabled

FeatureName : VirtualMachinePlatform
State       : Enabled

FeatureName : Containers-DisposableClientVM
State       : Enabled

FeatureName : Microsoft-Hyper-V-All
State       : Enabled

FeatureName : Microsoft-Hyper-V
State       : Enabled

FeatureName : Microsoft-Hyper-V-Tools-All
State       : Enabled

FeatureName : Microsoft-Hyper-V-Management-PowerShell
State       : Enabled

FeatureName : Microsoft-Hyper-V-Hypervisor
State       : Enabled

FeatureName : Microsoft-Hyper-V-Services
State       : Enabled

FeatureName : Microsoft-Hyper-V-Management-Clients
State       : Enabled

Maybe the developers could clarify what features are needed for WSL only instead a full hyper-v installation.

Image

These are my enabled features

@OneBlue
Copy link
Collaborator

OneBlue commented Dec 17, 2024

@kweeks95: If the feature is enabled this usually means that the hypervisor failed to launch. Can you check if virtualization is enabled on bios ?

Also, can you create virtual machine let's say with Hyper-V ?

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