Learning and Sharing
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
No Result
View All Result

How To Install WSL on Windows Server 2022

August 23, 2024
in A, Blog, WSL
0
ADVERTISEMENT

Table of Contents

Installing Windows Subsystem for Linux (WSL) on Windows Server 2022 involves a straightforward process. Below are the steps you need to follow:

Ensure Your System Is Up to Date

Make sure your Windows Server 2022 installation is fully updated. This ensures that all the latest features and fixes are available, which might be necessary for WSL to function correctly.

  • Open Windows Update from the Settings app.
  • Check for updates and install any that are available.
  • Restart your server if required.

Enable the Windows Subsystem for Linux

You can now install everything you need to run WSL on Windows Server 2022 by entering this command in an administrator PowerShell or Windows Command Prompt and then restarting your machine.

wsl --install

This command will enable the required optional components, download the latest Linux kernel, set WSL 2 as your default, and install a Linux distribution for you (Ubuntu by default).

PS C:\Users\Administrator> wsl --install
Installing: Virtual Machine Platform
Virtual Machine Platform has been installed.
Installing: Windows Subsystem for Linux
Windows Subsystem for Linux has been installed.
Downloading: Ubuntu
Requested operation is successful. Changes will not be effective until the system is rebooted.

In the first run, you need configure username and password for the Linux distribution.

Installing, this may take a few minutes...
Please create a default UNIX user account. Username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: bon
New password:
Retype new password:
passwd: password updated successfully
Installation successful!
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

Welcome to Ubuntu 20.04 LTS (GNU/Linux 4.4.0-20348-Microsoft x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Mon Oct  3 06:16:17 PDT 2022

  System load:    0.52      Processes:             7
  Usage of /home: unknown   Users logged in:       0
  Memory usage:   20%       IPv4 address for eth0: 10.10.230.7
  Swap usage:     0%

0 updates can be installed immediately.
0 of these updates are security updates.

The list of available updates is more than a week old.
To check for new updates run: sudo apt update

This message is shown once once a day. To disable it please create the
/home/bon/.hushlogin file.
bon@WIN-T0IDO6F6BCA:~$

Get the list of installed distributions in this server using this command:

wsl -l -v
PS C:\> wsl -l -v
  NAME      STATE           VERSION
* Ubuntu    Running         1

Get the list of valid distributions then install another one using wsl -l -o command.

wsl -l -o
The following is a list of valid distributions that can be installed.
Install using 'wsl --install -d <Distro>'.

NAME            FRIENDLY NAME
Ubuntu          Ubuntu
Debian          Debian GNU/Linux
kali-linux      Kali Linux Rolling
openSUSE-42     openSUSE Leap 42
SLES-12         SUSE Linux Enterprise Server v12
Ubuntu-16.04    Ubuntu 16.04 LTS
Ubuntu-18.04    Ubuntu 18.04 LTS
Ubuntu-20.04    Ubuntu 20.04 LTS

Install another Linux distribution:

wsl --install -d debian
Downloading: Debian GNU/Linux
[==========================48.6%   
Installing: Debian GNU/Linux
Debian GNU/Linux has been installed.
Launching Debian GNU/Linux... 
PS C:\> wsl -l -v
  NAME      STATE           VERSION
* Ubuntu    Stopped         1
  Debian    Running         1  
ADVERTISEMENT

Not a reader? Watch this related video tutorial:

Related Titles:

  • How to Set Up WSL on Windows Server 2022
  • Installing Windows Subsystem for Linux on Windows Server 2022
  • Step-by-Step Guide to WSL Installation on Windows Server 2022
  • How to Enable WSL on Windows Server 2022
  • WSL Installation Tutorial for Windows Server 2022
  • Windows Server 2022: Install Linux Subsystem (WSL)
  • How to Run Linux on Windows Server 2022 with WSL
  • Complete Guide to WSL on Windows Server 2022
  • Installing Linux on Windows Server 2022 using WSL
  • How to Use WSL on Windows Server 2022
  • Setting Up a Development Environment with WSL on Windows Server 2022
  • Windows Server 2022: WSL Installation Made Easy
  • Installing Ubuntu on Windows Server 2022 with WSL
  • How to Get Started with WSL on Windows Server 2022
  • Windows Server 2022: How to Install and Configure WSL

 

Keywords:

WSL on Windows Server 2022, install WSL Windows Server, Windows Subsystem for Linux, enable WSL Windows Server 2022, Linux on Windows Server 2022, WSL setup guide, Windows Server 2022 Linux, WSL installation tutorial, run Linux on Windows Server, Windows Server 2022 WSL installation, Windows Server 2022 development, Linux distributions on Windows Server, WSL configuration Windows Server, Windows Server 2022 tech guide, IT tutorials Windows Server

 

Hashtags:

#bonguides, #WindowsServer2022, #WSL, #WindowsSubsystemforLinux, #TechGuide, #LinuxOnWindows, #ServerSetup, #ITtutorials, #ServerManagement, #WindowsServerTips

5/5 - (1 vote)
Previous Post

How to Install WSL on Windows Server 2019

Next Post

Subsites Creation is Disappear in SharePoint Online

Related Posts

Images Hidden Due To Mature Content Settings In CivitAI

August 31, 2024

Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

August 20, 2024

Running Hyper-V and VMware Workstation on The Same Machine

August 15, 2024

How to Uninstall All Autodesk Products At Once Silently

July 29, 2024
Ftr5

How to Uninstall the Autodesk Genuine Service on Windows

July 29, 2024

How to Remove The Test Mode Watermark Without Disabling Test Mode

July 28, 2024

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Turn On uBlock Origin Extension in Chrome (2025)
  • Images Hidden Due To Mature Content Settings In CivitAI
  • Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

Categories

Stay in Touch

Discord Server

Join the Discord server with the site members for all questions and discussions.

Telegram Community

Jump in Telegram server. Ask questions and discuss everything with the site members.

Youtube Channel

Watch more videos, learning and sharing with Leo ❤❤❤. Sharing to be better.

Newsletter

Join the movement and receive our weekly Tech related newsletter. It’s Free.

General

Microsoft Windows

Microsoft Office

VMware

VirtualBox

Technology

PowerShell

Microsoft 365

Microsoft Teams

Email Servers

Copyright 2025 © All rights Reserved. Design by Leo with ❤

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory