Steps:
1. Install WSL2
Open Powershell as Administrator and run the below command. If it's already installed, it will show you WSL options. Restart the system.
wsl --install
https://docs.microsoft.com/en-us/windows/wsl/install
2. On Powershell run the below command and restart the system.
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
3. In Powershell run the below command.
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
4. Download the Linux kernel and install it.
https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
5. Open Powershell and run the below command to set WSL2 as the default version.
wsl --set-default-version 2
6. Recheck the WSL version in Powershell.
wsl --list --verbose
- Ubuntu 18.04 LTS
- Ubuntu 20.04 LTS
- Ubuntu 22.04 LTS
- openSUSE Leap 15.1
- SUSE Linux Enterprise Server 12 SP5
- SUSE Linux Enterprise Server 15 SP1
- Kali Linux
- Debian GNU/Linux
- Fedora Remix for WSL
- Pengwin
- Pengwin Enterprise
- Alpine WSL
- Raft(Free Trial)
Comments
Post a Comment