- Set-VMProcessor -VMName -ExposeVirtualizationExtensions $true
- Reboot host
- Login to VM
- Install WSL
- Enable HyperV from Windows Features (Add/Remove Programs)
- You might need to reboot the VM
- Launch Windows Security > App & Browser Control > Exploit Protection > Program Settings > add C:/windows/system32/VMCompute > Control Flow Guard ticked
- Reboot VM
- wsl --set-default-version 2
- wsl --install Ubuntu (--beb-download if you are stuck at 0%)