VirtualBox Settings
- Launch VirtualBox
- Right click on the Windows 10 VM > Settings...
- Select System from the left navigation > Click the Processor Tab
- Check the Enable Nested VT-x/AMD-V box
- Click OK to close the settings dialog
- Right click on the Windows 10 VM > Start > Normal Start
Installing WSL2 Inside the VM
- Launch Powershell as administrator
- Run the following command
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
- Reboot
- If running Windows 2004 or newer, run the following additional commands to use WSL 2
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2 - Click the Start Button > Search Microsoft Store > Select Microsoft Store
- Search for the Linux distribution to install (Debian, Ubuntu, etc)
- Select the Linux distribution and click the Get button in the upper right corner
- After the Linux distribution downloads and installs, select the distribution from the Start menu to launch it
- Input a username and password to be used in the Linux environment