Running Ubuntu and Debian Linux Distro on Windows Server 2022
Preview Build 25120.1010 with WSL 2.0
In the Week of MS-Build 2022 Event, Microsoft is announcing that WSL 2.0 is coming to Windows Server 2022 Preview Build on twitter.
In the following step-by-step guide we will install Windows Subsystem for Linux 2.0 (WSL) on Microsoft Windows Server 2022 Insider Preview Build 25120.1010 to run Ubuntu and Debian Linux Distro’s.
Here you can download Windows Server 2022 Insider Preview Build ISO or VHDX disk
when you are registered as a Windows Insider.
Windows Server 2022 Insider Preview Build 25120 Installed.
Install the latest updates.
Open Windows Server Manager.
I Have installed the following :
- Containers ( because I like this for later in my MVP Lab )
- Hyper-V
- Windows Subsystem for Linux
- VirtualMachine Platform
- Reboot the System after installation.
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
When the Virtual Server is up, you have to bring it down to make nested virtualization possible when you run your server on a Hyper-V Host like me.
On the host in PowerShell administrator mode :
Set-VMProcessor -VMName WIN2022 -ExposeVirtualizationExtensions $true
Start the Virtual Machine.
wsl –install
wsl –update
WSL 2.0 is Installed
wsl –status
wsl –install -d Ubuntu
I did the same for Debian wsl –install -d debian
Here you can see both Linux distro’s on Windows Server.
Here we are running both WSL 2.0 Linux distro’s Ubuntu and Debian on Windows Server Insider Preview Build together at the same time 😉
Here I’m running VSCode on Remote WSL Debian Linux distro.
More information about Microsoft WSL you can find here on Docs.
Important:
All this is still in Preview and not ready for production environment yet. I installed this all in my MVP Test Lab for learning and testing. Hope you find this useful for your test environment to play with the newest Windows Server 2022 Insider Preview and WSL 2.0 with
all kind of Linux distro’s.
















