-
Ensure WSL (Windows Subsystem for Linux) check box is checked under "Control Panel > Programs > Turn Windows feature On or Off". If not check the check nox and save. This will enable WSL.
-
Open PowerShell in administrator mode and run the following comand
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Restart your system
- Enable virtual Machine. Run the following command in powershell
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
-
Download and install WSL kernel update https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
-
Set WSL2 as default. Run following command
wsl --set-default-version 2
List all Linux versions installed
wsl --list --verbose
Setting a specific verion
wsl --set-version <distribution name> <versionNumber>
- Run Linux