WSL 2 or Windows Subsystem for Linux 2 is an iterative replace to . Being so a lot better than WSL 1, it’s apparent that one should improve to WSL 2. That is what we might be trying out on this information.
How to install Windows Subsystem for Linux 2 on Windows 10
The following are the necessities that your laptop should fulfill for Windows Subsystem for Linux 2 to run correctly:
- Windows 10 Build 18917 or newer.
- Hyper – V Virtualization.
Also, you should have to do the next duties within the given order for all of the options of the Windows Subsystem for Linux 2 to work:
- Enable the Optional characteristic.
- Install a distro.
- Enable Virtual Machine Platform optionally available characteristic.
- Configure the put in distro.
1] Enable the Optional characteristic
In order to allow the WSL Optional characteristic, with Administrator privileges.
Execute the next command:
Enable-WindowsOptionalFunction -Online -FeatureName Microsoft-Windows-Subsystem-Linux
If will ask for a affirmation if you’d like to reboot your laptop, hit Y to do it immediately or to reboot it manually, hit N.
2] Install a distro
You can attempt to obtain and install an acceptable Linux distro for your laptop from the Microsoft Store.
three] Enable Virtual Machine Platform optionally available characteristic
Open Windows PowerShell as an Administrator and execute the next command:
Enable-WindowsOptionalFunction -Online -FeatureName VirtualMachinePlatform
If it asks for a affirmation, to reboot your laptop, hit Y to do it immediately or to do it later, hit N.
four] Configure the put in distro
Finally, now we have to configure the put in distro to WSL 2.
Open Windows PowerShell and execute this command to checklist all of the accessible WSL distros on your laptop:
wsl -l -v
Set the specified distro to WSL 2. execute the next command:
wsl --set-version DistroName 2
Finally, set the chosen distro as default by executing the next command:
wsl --set-default-version 2
You can be experiencing the brand new seamless and sooner expertise with Windows Subsystem for Linux.
This new replace to the command line utility brings within the new structure. This will drastically enhance the file system efficiency and the complete system name compatibility. This new replace relies on virtualization (which relies on Hyper – V) which works on an actual Linux kernel.
You must be all set now!