Open wizard-lgtm opened 1 week ago
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
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.
Before continuing...
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
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