Windows Subsystem for Linux
Windows Subsystem for Linux (WSL)
Getting WSL2
See https://docs.microsoft.com/en-us/windows/wsl/install-win10
- Enable WSL
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
- Enable Virtual Machine Platform
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
- Reboot
- Set WSL to be default
wsl --set-default-version 2
- Install the kernel from https://aka.ms/wsl2kernel if prompted to do so.
- Download a linux distro from the Microsoft Store WSL page
WSL 1 vs WSL 2
See https://docs.microsoft.com/en-us/windows/wsl/compare-versions.
Basically WSL 2 is a full linux kernel running in a VM.
WSL 1 is a compatibility layer on top of the Windows kernel.