Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows Server » How to install WSL2 on Windows Server
  • Featured image   Dark mode
    How to enable dark theme in Windows 11 Windows
  • DC creation as recommended by Microsoft
    Setup a Domain Controller as Recommended by Microsoft Windows Server
  • Certificates
    The application /Certsrv does not exist: How to configure Certificate Enrollment Web Services and Certificate Authority Web Enrolment Windows Server
  • Screenshot 2020 05 19 at 18.54.21
    Unable to find File Explorer in the Group Policy Editor when resolving the security tab missing under properties Windows Server
  • BitLocker renamedevicefghjkl
    What are the effect of renaming an MBAM-Protected Computer Windows
  • Screenshot 2020 05 14 at 17.47.09
    Configure OpenSSH Server: A Quick Guide Linux
  • Slide1
    Enable Exploit Protection feature on Windows using the Windows Security App, Microsoft Endpoint Configuration Manager, and Group Policy Windows
  • What Happens if You Turn Off Your Computer During windows update
    What Happens if You Turn Off Your Computer During an Update Windows

How to install WSL2 on Windows Server

Posted on 29/06/202302/07/2023 Matthew By Matthew No Comments on How to install WSL2 on Windows Server
Featured image_WSL2 installation

WSL2 (Windows Subsystem for Linux 2) introduces a new architecture in which Microsoft provides its own Linux kernel. This new architecture enables running Linux programs on Windows using a lightweight virtual machine. In this article, we will explore the benefits of WSL2, including improved compatibility with Linux applications, the use of a native file system, and support for Windows Server. Additionally, we will guide you through the process of installing WSL2 on Windows Server 2022. In this article, you will learn how to install WSL2 on Windows Server. Please see how to fix WSL Error 0x8007019e: WSL Registrater Distribution failed with error, how to install Windows Subsystem for Linux on Windows 11 via the Command line, and Microsoft Store.

Before we proceed, here are other related guides on how to run the Linux distributions on Windows: How to install Windows Subsystem for Linux on Windows Server, Install Ubuntu 20.04 LTS on Windows via WSL, how to Setup GitLab Runner on Windows WSL, How to install Windows Subsystem for Linux on Windows 11 via the Command line, and Microsoft Store: What is Windows Subsystem for Linux, How to install WSL on Windows 10, and Windows Subsystem for Linux: How to install WSL on Windows Server via Server Manager and PowerShell.

Benefits of Windows Subsystem for Linux 2

Enhanced Compatibility: With WSL2, Linux programs can utilize the native interfaces of the Linux kernel, allowing a broader range of applications to run seamlessly. This includes support for Docker containers, expanding the possibilities for development and testing environments.

Native EXT4 File System: WSL2 leverages a native EXT4 file system within the VHDX (Virtual Hard Disk) container, offering improved performance and compatibility for Linux file operations. This enables faster file access and ensures better integration between the Linux environment and the Windows host.

Windows Subsystem for Linux 2 for Windows Server 2022

At first, Windows Server 2004 had limited support for WSL2, which was a part of the now-discontinued semiannual channel. However, with the release of Windows Server 2022, Microsoft announced the availability of WSL2 for this server version and all subsequent LTSC (Long-Term Servicing Channel) versions. Unfortunately, Windows Server 2019 will not support WSL2. However, this limitation doesn’t hinder the usage of WSL version 1 for all your distributions, so you can still enjoy the benefits of WSL on your server. Here is a link on how to install WSL on Previous Versions of Windows Server.

Installing Windows Subsystem for Linux 2

To install WSL2 on Windows Server 2022, Microsoft introduced a simplified procedure using the wsl.exe command-line tool. The installation process involves the following steps:

Open an administrator PowerShell or Windows Command Prompt. Please see how to configure additional LSA Protection.

Open Powershell
PowerShell

Enter the following command:

wsl --install

After executing the command, restart your machine to apply the changes.

Install WSL2
Install WSL2

After the Windows server reboot the installation will resume automatically.

WSL2 download and installation
WSL2 download and installation

Congratulations! You have successfully installed the Windows Subsystem for Linux 2.

How to Install Other WSL2 Distro

To install additional distributions, use the command shown below to view the available Linux distributions:

wsl -l -o
View Linux distro
View Linux distro

Copy the name of the preferred distribution from the output. Execute the command shown below to initiate the installation. Replace “<name-of-distribution>” with the name you copied in the previous step.

wsl.exe --install -d <name-of-distribution>

Allow the setup routine to install all the necessary components and reboot the computer.

Install Preferred WSL2 Distro
Install Preferred WSL2 Distro

After logging in again, the installation will complete by configuring the first Linux user and setting the user’s password.

That’s all there is to it! The application is now ready and accessible in your start menu.

View Linux distro in Start Menu
View Linux distro in Start Menu

It is worth noting that both WSL1 and WSL2 can coexist, allowing you to run multiple Linux distributions side by side.

Conclusion

Microsoft’s decision to include WSL2 support in Windows Server 2022 and subsequent LTSC versions brings the benefits of this architecture to server environments. However, it is important to understand that WSL2 is not intended for running productive Linux workloads. For such scenarios, Microsoft recommends using virtual machines. Nevertheless, WSL2 is highly popular among developers and in lab environments, providing an efficient and convenient way to utilize Linux applications on Windows.

In this article, you have learned how to install WSL2 on Windows Server. Please let me know in the comment section if you have any questions.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Linux, Windows Server Tags:Microsoft Windows

Post navigation

Previous Post: How to Deploy a React Application on Netlify
Next Post: Build Docker Images with GitLab CI

Related Posts

  • dgfhjm
    How to fix DISM Error 87: The package is unknown Windows Server
  • original 1
    DISM “Failed to open image” CWimImageInfo Mount(hr:0x8007000d): Fix Error DISM WIM Provider Windows
  • mountedimagenotaccessible
    Unable to access the image: Make sure that the image path and the Windows directory for the image exist and you have Read permissions on the folder Windows
  • HybridCloudTrust
    WHFB Hybrid Cloud Kerberos Trust Model is now available AWS/Azure/OpenShift
  • windows 10 desktop 1
    Active Directory Forest – Trees and Domain and Sites Windows Server
  • Windows 11 taskbar features remove 1
    How to modify Windows 11 Taskbar via Intune and GPO Windows

More Related Articles

dgfhjm How to fix DISM Error 87: The package is unknown Windows Server
original 1 DISM “Failed to open image” CWimImageInfo Mount(hr:0x8007000d): Fix Error DISM WIM Provider Windows
mountedimagenotaccessible Unable to access the image: Make sure that the image path and the Windows directory for the image exist and you have Read permissions on the folder Windows
HybridCloudTrust WHFB Hybrid Cloud Kerberos Trust Model is now available AWS/Azure/OpenShift
windows 10 desktop 1 Active Directory Forest – Trees and Domain and Sites Windows Server
Windows 11 taskbar features remove 1 How to modify Windows 11 Taskbar via Intune and GPO Windows

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • Featured image   Dark mode
    How to enable dark theme in Windows 11 Windows
  • DC creation as recommended by Microsoft
    Setup a Domain Controller as Recommended by Microsoft Windows Server
  • Certificates
    The application /Certsrv does not exist: How to configure Certificate Enrollment Web Services and Certificate Authority Web Enrolment Windows Server
  • Screenshot 2020 05 19 at 18.54.21
    Unable to find File Explorer in the Group Policy Editor when resolving the security tab missing under properties Windows Server
  • BitLocker renamedevicefghjkl
    What are the effect of renaming an MBAM-Protected Computer Windows
  • Screenshot 2020 05 14 at 17.47.09
    Configure OpenSSH Server: A Quick Guide Linux
  • Slide1
    Enable Exploit Protection feature on Windows using the Windows Security App, Microsoft Endpoint Configuration Manager, and Group Policy Windows
  • What Happens if You Turn Off Your Computer During windows update
    What Happens if You Turn Off Your Computer During an Update Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,839 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.