Watch the video:
Timestamps:
0:00 - Explanation
0:20 - Enable WSL & Features
1:05 - Enable WSL & Features (Via command line)
1:24 - Set default to WSL Version 2
1:37 - Fix errors settings WSL to Version 2
2:54 - Installing a Linux distro - Eg. Ubuntu
3:32 - Starting Ubuntu on WSL 2
3:55 - Checking if it's WSL 2
4:18 - Upgrade existing to WSL 2
4:55 - WSL filesystem in Windows Explorer
5:32 - Requirements for WSL & Troubleshooting
6:52 - Hyper-V issues?
This video explains how to enable the WSL 2 on Windows 10, as well as install and use Ubuntu. Of course, you can use any Linux distro, but this video shows installing and using Ubuntu. By the end of this video, you should be able to use Ubuntu in WSL Version 2.
Commands to enable features:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Set default to V2: wsl –set-default-version 2
Fix WSL errors: https://aka.ms/wsl2kernel
More info: https://docs.microsoft.com/en-us/windows/wsl/install-win10