I'm trying to get WSL 2 running. To wit I did the following:
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-LinuxThe next step, according to , is to make a distro use WSL2 vs WSL1. To do that you need to do wsl --set-version <Distro> 2. I tried that, substituting <Distro> for Ubuntu and got the following error:
Invalid command line option: --set-versionSo I guess I don't have WSL2 installed idk.
I'm running Windows 10 Build 18362.356.
01 Answer
I'm running Windows 10 Build 18362.356.
You need to be on build 18917 or greater, and already have WSL 1 installed
See
Invalid command line options #419
and
WSL 2 install documentation updated to include links to instructions on how to install WSL 1.