Windows Subsystem for Linux 2
Windows Subsystem for Linux 2 (WSL2) is a way to run Linux software on Windows with a minimal performance loss.
Requirements[edit]
Virtualization needs to be enabled in the machines BIOS settings. VT-D should also be enabled on Intel machines.
The Setup[edit]
Windows users using the "Windows Insider" program can install WSL2 by running wsl --install
in a command prompt with administrator privileges.
Stable versions of Windows 10 require two other commands to be executed in an administrator command prompt:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
A reboot is required after running these commands since it is, after all, Windows. You will have to manually download the Linux Kernel Update package from Microsoft after rebooting. Next, configure the WSL sub-system to use WSL2:
wsl --set-default-version 2
It should now be possible to install Linux distributions like Ubuntu from the Microsoft Store.
Enable comment auto-refresher