Windows10 Pro
You are running Windows 10 updated to build 18362 or higher since version 1903.
→ It was OK. (See below)
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
→ When completed, ** Reboot **.
wsl --set-default-version 2
Invalid command line option--set-default-version
that?
If the result of wsl --set-default-version is an invalid command, enter wsl --help. If you don't see --set-default-version, it means it's not supported by your OS and you need to update to version 1903, build 18362 or higher.
And that.
winver
**that? ** **
For the time being, I tried Windows Update to upgrade the version.
PS C:\WINDOWS\system32> wsl --set-default-version 2
Kernel component updates are required to run WSL 2. For more information https://aka.ms/See wsl2kernel
For the main differences from WSL 2, https://aka.ms/See wsl2
I've advanced!
https://aka.ms/wsl2kernel → Implemented as described
PS C:\WINDOWS\system32> wsl --set-default-version 2
For the main differences from WSL 2, https://aka.ms/See wsl2
It seems to have worked.
https://aka.ms/wslstore → Select Ubuntu
First user creation
PS C:\WINDOWS\system32> wsl -l -v
NAME STATE VERSION
* Ubuntu Running 2
→ Done!
MS official procedure English version
https://dev.classmethod.jp/articles/docker-desktop-for-windows-on-wsl2/
https://dev.classmethod.jp/articles/how-to-setup-wsl2/
https://aka.ms/wsl2kernel
Recommended Posts