How to Install WSL 2 on your Windows 10 or 11 PC [Definitive Guide]

Windows Subsystem for Linux is a compatibility layer that allows you to run various Linux = distros right away on your Windows 10 and Windows 11 systems. While WSL 1 made its debut back in 2016, there was a need to have better performance of this subsystem, hence WSL 2 was released. Today, we will be taking a look at how you can install WSL 2 on Windows 11 PCs easily.

While there may not be any visual differences between WSL 1 and WSL 2, there are differences that separate the two based on their functions and performances. Here are the differences between WSL 1 and WSL 2.

FeaturesWSL 1WSL 2
Integration between Windows and LinuxYesYes
Fast boot timesYesYes
Small resource footprint compared to traditional Virtual MachinesYesYes
Runs with current versions of VMware and VirtualBoxYesYes
Managed VMNoYes
Full Linux KernelNoYes
Full system call compatibilityNoYes
Performance across OS file systemsYesNo

Now that you have seen the differences between WSL 1 and WSL 2, let’s take a look at how you can install WSL 2 on your Windows 11 PC.

How to Install WSL 2 on Windows 11 / 10 PC

System Requirements

WSL 2 can be installed on Windows 10 as well as Windows 11 PCs. While WSL 2 can be installed on any Windows 11 PC, there is a certain requirement that needs to be met if you wish to install WSL 2 on Windows 10.

Windows 10 x64 Systems

  • Version 1903 or newer
  • Build 18362 or newer

Windows 10 ARM64 systems

  • Version 2004 or newer
  • Build 19041 or newer

If your Windows 10 system is not on a build that is newer than the mentioned ones, it is recommended that you update it to the latest available version, or simply install Windows 11 on your PC provided it passes the system requirements for Windows 11.

If you simply thought that you could install and run WSL 2 on your system, you are wrong. In fact, you will have to first enable two features in order to get WSL 2 working on your system.

Enable Windows Subsystem for Linux.

This is an optional feature that is available in Windows 10 as well as Windows 11 systems. However, to get WSL 2 working on your system, you need to enable this feature. Follow these steps

  1. Click on the Start Button and type in Powershell.
  2. When you see Windows Powershell in the results, select it and choose Run as Administrator.
  3. When the Windows Powershell launches, all you need to do is paste the following command and press the enter key.
    dism.exe /online /enable-feature /featurename: Microsoft-Windows-Subsystem-Linux /all /norestart
    how to install wsl2 on windows 11
  4. The feature will take a couple of seconds to be installed. It will let you know once the installation has been completed.

Enable Virtual Machine Platform

In order to run WSL 2 on your system as well as run various Linux distros right away, your system will have to have virtualization capabilities and features in order to run WSL 2. Here is how you can enable the Virtualization features

  1. Open up the Start Menu and search for Windows Powershell.
  2. Make sure to run it as an administrator.
  3. Now, all you need to do is paste the following command line and hit the enter key to execute it.
    dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
    how to install wsl2 on windows 11

Now that you have enabled these features on your Windows PC, it is time to download the Windows Subsystem for Linux 2 to your PC. There are two ways you can follow to download the WSL 2 package. Let’s take a look.

How to Install WSL 2

Method 1

The first method of installing WSL 2 onto your system is by using the command line. Here is how you can install WSl 2 on your Windows PC.

  1. Launch the Start menu and type in Windows Terminal.
  2. Make sure that your Windows PC is connected to the internet.
  3. When you see it in the search results, select it and choose Run as administrator.
  4. With Windows Terminal open, type in:
    wsl --install
    how to install wsl2 on windows 11
  5. Once you hit the enter key, the installation of WSL 2 will now begin.

Method 2

The second method to installing WSL 2 on your Windows PC is by installing it from the Microsoft Store. Here is how you can install it from the Microsoft Store.

  1. First off, connect your Windows PC to the internet.
  2. Now, open the Start menu and launch the Microsoft Store.
  3. When the Store launches, all you need to do is click on the search bar in the middle of the app.
  4. Type in Windows Subsystem and hit the enter key.
  5. You will see the Windows Subsystem for Linux Preview in the search results.
    how to install wsl2 on windows 11
  6. Click on the button that says Get.
  7. Now, click on Install.
  8. WSL will now be downloaded and installed on your Windows PC.
  9. The app weighs around 400MB.

And this is how you can install WSL 2 on your Windows PC. With WSL 2 installed, you can now install any Linux Distro on your Windows PC. In fact, you will also be able to run the OS natively without you having to dual boot or install a new OS to your system.

Download and Install Linux Distros

The Microsoft Store is a great place where you can get a variety of Linux distros to install and use on your PC.  You can download the following Linux distros from the Microsoft Store right away.

how to install wsl2 on windows 11

Once you have downloaded the distro that you want, you need to restart your PC. With the PC restarted, simply search for the distro that you downloaded in the Start menu and launch it. The distro will now load up and will be ready for you to use. And this is how you can run Linux on your Windows PC without having to dual boot or install it as a partition on your Windows PC.

Conclusion

This is how you can install WSL 2 on your Windows 10 or Windows 11 PCs. The process is simple and easy to follow. Now that you are able to run Linux distros within Windows, which will your go-to Linux distro that you will be using? Let us know in the comments below. If you have any queries, feel free to leave them below as well.

Also Check:

Share on:
Photo of author

By Joshua D'souza

Enjoys games, 90's hip-hop, and tech. Loves exploring the infinite world of laptops and food. Every ready to provide assistance in anything that rocks his boat. Will gladly enjoy capturing memories through various lenses. Worked previously at PiunikaWeb as an author and researcher.

Leave a Comment