Skip to content

WSL 2

::alert{type="info"} You need to have Windows 10 update 2004 before execute below commands. ::

WSL 2 improve performances for WSL.

Enable Virtual Machine feature

sh
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Download the Linux kernel update package

Download package and install it.

::alert{type="warning"} Reboot after this. ::

Set WSL 2 as your default version

sh
wsl --set-default-version 2

Check your distro

sh
wsl --list --verbose

If any distro is in version 1, you can force version update

sh
wsl --set-version Ubuntu 2

MIT License