Atlas icon indicating copy to clipboard operation
Atlas copied to clipboard

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

Open wizard-lgtm opened this issue 1 year ago • 1 comments

Before continuing...

  • [X] I agree to follow Atlas' Code of Conduct
  • [X] I have searched our issue tracker to verify that the issue hasn't been reported already
  • [X] I have searched the Atlas documentation beforehand for a solution
  • [X] 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 avatar Oct 12 '24 16:10 wizard-lgtm

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

A1ynn5 avatar Oct 15 '24 02:10 A1ynn5

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.

giopalma avatar Oct 20 '24 14:10 giopalma

Just fixed by setting wsl disable and enable, and couple of wsl tweaks i found in internet. Then i rebooted it.

wizard-lgtm avatar Nov 06 '24 08:11 wizard-lgtm

The solution doesn't work for me on Windows 11 23H2.

WSL 2 doesn't work, only WSL 1 works.

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070003
Error: 0x80070003 Impossibile trovare il percorso specificato

giopalma avatar Feb 08 '25 10:02 giopalma

@giopalma win+r > cmd > bcdedit /set hypervisorlaunchtype Auto > reboot

meetox80 avatar Feb 11 '25 21:02 meetox80