Upgrade to WLS2

WLS2 WSL1 relatively significant changes, the most important is the subsystem linux linux distribution can be said to be the true sense, of course, but also enhance the i / o performance.

1. Upgrade windows

WSL 2 is only available in Windows 10 builds 18917 or higher

We need to upgrade the windows system version, first of all become a insider, go here: https://insider.windows.com/en-us/

2. Enable configuration

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Restart the computer

3. Conversion Subsystem

First determine your linux distro name

 Version conversion

 Verified

4. Reference

https://docs.microsoft.com/en-us/windows/wsl/wsl2-install

 

Guess you like

Origin www.cnblogs.com/talentzemin/p/12572725.html