How to install Windows Subsystem for Linux 2 on Windows 11/10

The following are the requirements that your computer must fulfill for Windows Subsystem for Linux 2 to run properly:

Windows 10 Build 18917 or newerHyper-V Virtualization

To install Windows Subsystem for Linux 2 on Windows 11/10, follow these steps:

1] Enable the Optional feature

In order to enable the WSL Optional feature, open Windows PowerShell with Administrator privileges.

Execute the following command: If will ask for a confirmation if you want to reboot your computer, hit Y to do it straight away or to reboot it manually, hit N.

2] Install a distro

You can try to download and install a suitable Linux distro for your computer from the Microsoft Store.

3] Enable Virtual Machine Platform optional feature

Open Windows PowerShell as an Administrator and execute the following command:

If it asks for a confirmation, to reboot your computer, hit Y to do it straight away or to do it later, hit N.

4] Configure the installed distro

Finally, we have to configure the installed distro to WSL 2. Open Windows PowerShell and execute this command to list all the available WSL distros on your computer: Set the desired distro to WSL 2. execute the following command: Finally, set the selected distro as default by executing the following command: You would be experiencing the new seamless and faster experience with Windows Subsystem for Linux. This new update to the command line utility brings in the new architecture. This will drastically improve the file system performance and the full system call compatibility. This new update is based on virtualization (which is based on Hyper – V) which works on a real Linux kernel.

How do I get WSL 2 on Windows 11/10?

To get WSL or Windows Subsystem for Linux 2 on Windows 11/10 computer, you must have Windows 10 Build 18917 or newer version, and Hyper-V virtualization enabled. Following that, you can follow the aforementioned steps one after one. You need to enable the Optional feature first. Then, you need to install a distribution, allow the Virtual Machine Platform optional feature, and configure the Linux distribution.

How do I get Linux subsystem on Windows 11/10?

To get Linux Subsystem on Windows 11/10, you need to use Windows PowerShell. Enter this command to enable the optional feature: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux. Then, download a Linux distribution from the Microsoft Store and turn on the Virtual Machine Platform optional feature using Windows PowerShell by entering this command: Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform. Following that, you can configure the installation as you like. You should be all set now! TIP: You can install Windows Subsystem for Linux with a single command on Windows 11.

How to install Windows Subsystem for Linux 2 on Windows 11 10 - 84How to install Windows Subsystem for Linux 2 on Windows 11 10 - 16