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

[BUG] - WSL WslRegisterDistribution failed with error: 0x80370102 #1255

Open
4 tasks done
wizard-lgtm opened this issue Oct 12, 2024 · 2 comments
Open
4 tasks done

[BUG] - WSL WslRegisterDistribution failed with error: 0x80370102 #1255

wizard-lgtm opened this issue Oct 12, 2024 · 2 comments
Labels
bug Something isn't working, let’s fix that

Comments

@wizard-lgtm
Copy link

Before continuing...

  • I agree to follow Atlas' Code of Conduct
  • I have searched our issue tracker to verify that the issue hasn't been reported already
  • I have searched the Atlas documentation beforehand for a solution
  • I am on the latest version of Atlas, and didn't do an unsupported upgrade

Description

PS C:\Users\j> wsl --install
Ubuntu is already installed.
Launching Ubuntu...
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...

Steps to reproduce

image

image

image

image

Expected behavior

Enable wsl 2

Actual behavior

I just tried to install wsl on my computer

Atlas Version

Atlas v0.4.1 for Windows 10 22H2

Desktop information

Ryzen 5600h
Rtx 3050 Mobile
16gb ram

Additional content

No response

@wizard-lgtm wizard-lgtm added the bug Something isn't working, let’s fix that label Oct 12, 2024
@A1ynn5
Copy link

A1ynn5 commented Oct 15, 2024

Not sure this is an Atlas bug, other users suggest this is a DISM issue. You can run this script to disable - and then re-enable - the required services.
WSL.zip

# #

## Restart WSL.ps1
## Disables required services
DISM /Online /Disable-Feature /FeatureName:Microsoft-Hyper-V-All /All
DISM /Online /Disable-Feature /FeatureName:Microsoft-Windows-Subsystem-Linux /All
DISM /Online /Disable-Feature /FeatureName:HypervisorPlatform /All
DISM /Online /Disable-Feature /FeatureName:VirtualMachinePlatform /All

## Enables the services we just got rid of
DISM /Online /Enable-Feature /FeatureName:Microsoft-Hyper-V-All /All
DISM /Online /Enable-Feature /FeatureName:Microsoft-Windows-Subsystem-Linux /All
DISM /Online /Enable-Feature /FeatureName:HypervisorPlatform /All
DISM /Online /Enable-Feature /FeatureName:VirtualMachinePlatform /All

## Automatic restart
shutdown /r /t 10 /f /d p:2:16

@giopalma
Copy link

giopalma commented Oct 20, 2024

This problem is only for WSL 2. Using WSL 1 works fine. This problem is present also in Windows 11 23H2. It's an AtlasOS problem brcause before executing AME Wizard, WSL works fine, after installin AtlasOS, WSL 2 stop working.

You can use
wsl --set-default-version 1
to use WSL 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working, let’s fix that
Projects
None yet
Development

No branches or pull requests

3 participants