I need to double-check, but I believe the installing wsl2 step can be simplified to the single command wsl --install
on a previously not-enabled system. This should, IIRC, enable the right Windows features without manually searching for and enabling “Virtual Machine Platform” in the Add/Remove Windows Features screen, and will download and install Ubuntu from the store automatically with just the one command. It will also download the latest WSL2 from the store and enable WSLg and the latest WSL2 kernel.
4 Likes