1.- Open Powershell as administrator. 2.- Execute:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
3.- Check Hiper-V compatibility, for it, launch msinfo32 and check compatibility.
4.- Install wsl2 and restart:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
5.- After restart, install latest linux kernel for wsl2 from here:
6.- Set wsl2 as default (you have wsl and wsl2 simultaneously):
wsl –set-default-version 2
7.- Install linux distribution from windows store.
Open File Explorer. Type \wsl$ in the address bar