Step 1. Enable WSL-related features by DISM
Run Windows Terminal as administrator
Enable Microsoft-Windows-Subsystem-Linux Features
1 | $ dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart |
- Enable the VirtualMachinePlatform feature
- Reboot if the operation is completed successfully.
1 | $ dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart |
Step 2. WSL2 Kernel Update
Install the update file from the link below.
Open Windows terminal and change WSL version to 2.
1 | $ wsl --set-default-version 2 |
Install Ubuntu, the most popular Linux distribution, and run as administrator.
![](/images/Setting/wsl2/Untitled 1.png)
In Ubuntu, Set the username and password.
Check the currently installed version with wsl -l -v
1 | $ wsl -l -v |
- If it says version 1, execute the following command.
1 | $ wsl --set-version Ubuntu 2 |
- Make sure that it says version 2.
1 | $ wsl -l -v |