Forum Discussion
How to enable wsl 2 on windows server 2022 ver 20329?
I have also the GUI running and the commands "wsl --set-default-version 2" and "wsl --set-version <distroname> 2" do not work, even when they are listed in "wsl --help".
Is there a workaround for enabling WSL2 on Windows Server 2022 with GUI running?
No one?
It also doesn't run with no GUI running!
I guess WSL2 is not meant to be run on Windows Server.
WSL1 works but is hard to get it working since no Microsoft Store is available on Windows Server and wsl --install and wsl --update do not work.
Also exporting a WSL2 machine (from a desktop pc with windows 10) and then importing on a server (with Windows Server 2022) sets the version back to 1.
- Elden_ChristensenMay 25, 2022
Microsoft
Some exciting news to share, in direct response to your feedback we have just added WSL2 to Windows Server 2022!! WSL2 will be broadly available in the June cumulative update, for those looking to get it sooner it is available today by installing the 5C update here: https://support.microsoft.com/help/5014021
THANK YOU for your feedback in helping us make Windows Server better!- LainRobertsonMay 26, 2022Silver Contributor
Working version of the link above:
May 24, 2022—KB5014021 (OS Build 20348.740) Preview (microsoft.com)
Cheers,
Lain
- zaza26Mar 23, 2023Copper Contributor
I have Window 2022 Server Build 2-348.1607 which I belive is more recent to 20348.740. Yet I am not able to upgrade to WSL2. The installation by default is ver 1.0. I tried the following to upgrade to wsl2.0
PS C:\Users\erisuser> wsl --set-version Ubuntu 2
Conversion in progress, this may take a few minutes... For information on key differences with WSL 2 please visit https://aka.ms/wsl2 WSL 2 requires an update to its kernel component. For information please visit https://aka.ms/wsl2kernel
I tried their wsl_update_x64.msi from that url but it does not run on windows 2022 server.
Any help on procedure would be greatly appreciated.
Thanks,