News
3 new Serverspace GPT API Language Models available now!
JT
June 20 2025
Updated June 20 2025

How to install WSL on Windows?

Linux Windows

For native interaction with Windows and Linux, WSL was developed. Where WSL translates Linux system calls into similar Windows calls, allowing applications created for Linux to function in the Windows environment. However, there is an important difference between WSL 1 and WSL 2:

WSL 1 is an emulation of system calls. It creates a Linux user space, where Linux system calls are translated into Windows API calls.

Example: if a Linux program calls fork() or open(), WSL 1 transforms this into the corresponding Windows calls, such as CreateProcess or CreateFile.

  • Pros: fast access to the Windows file system.
  • Cons: not all system calls are supported (for example, Docker).

WSL 2 is a full-fledged Linux kernel. It uses a virtual machine based on Hyper-V. Inside, a real Linux kernel from Microsoft is launched.

System calls are not translated: everything is done natively, as on a regular Linux machine.

  • Pros: maximum compatibility - Docker, systemd, iptables and other tools work without problems.
  • Cons: slightly slower access to the Windows file system (/mnt/c/...).

How to install WSL on Windows?

Windows Subsystem for Linux (WSL) is a tool that allows you to run Linux distributions directly on Windows without using virtual machines. WSL is useful for developers and system administrators who want to work in a Linux environment without leaving Windows.

In this guide, we'll cover installing WSL on Windows 10 and Windows 11.

Step 1. Checking your Windows version

Before starting the installation, make sure your Windows version supports WSL:

  • Windows 10 version 2004 and above (with the 2020 update installed)
  • Windows 11 — WSL support is built in by default

Check your system version:

winver
Version
Screenshot № 1 — Version

If the version is lower than 2004, update Windows via the update center.

Step 2. Installing WSL via PowerShell

Microsoft has simplified the installation of WSL — now you only need one command:

Run PowerShell as administrator. Run the following command:

wsl --install

The command will automatically:

  1. Enable the necessary Windows components
  2. Install the latest version of WSL (WSL 2)
  3. Download and install Ubuntu by default
  4. After the installation is complete, a system reboot will be required.

Step 3. Install another Linux distribution (optional)

If you want to install another distribution (e.g. Debian, openSUSE, Kali, etc.), run the command:

wsl --list --online
List of distributions
Screenshot № 2 — List of distributions

Select the desired distribution from the list and install it:

wsl --install -d <distribution_name>

Example:

wsl --install -d Debian
installation
Screenshot № 3 — Installation

Step 4. Checking the installed WSL version

To find out which version of WSL is used (WSL 1 or WSL 2):

wsl --list --verbose

If you need to change the version for a specific distribution:

wsl --set-version <distribution_name> 2

Example:

wsl --set-version Ubuntu 2

Step 5. Update the WSL kernel (if necessary)

If an error related to the kernel occurred during installation, download the update from the official Microsoft website:

Other distributions
Screenshot № 4 — Other distributions

Install the downloaded .msi file, then repeat the installation of WSL. It provides a convenient environment for developing and working with Linux tools directly in Windows. With WSL, you can run Docker, use package managers (apt, yum), work with git, and execute Bash scripts.

Vote:
5 out of 5
Аverage rating : 5
Rated by: 1
33145 North Miami, FL 2520 Coral Way apt 2-135
+1 302 425-97-76
700 300
ITGLOBAL.COM CORP
700 300

You might also like...

We use cookies to make your experience on the Serverspace better. By continuing to browse our website, you agree to our
Use of Cookies and Privacy Policy.