4

I'm running a preview version of Windows Server 2019, version 2004, build 20262.1000

I've installed WSL, including a Ubuntu distro. The wsl --help command perfectly lists the --set-default-version <Version> and --set-version <Distro> <Version> commands.

However, when I execute any of these commands with <Version> set to 2, it seems to completely ignore the command and just print the help file. It doesn't even say Invalid command line option:, just prints help.

It seems to be completely aware of the command, throwing errors when specifying other versions like 1, 3, 4, etc. But 2 seems to do absolutely nothing.

Example:

PS C:\Users\Administrator> wsl -l -v
  NAME      STATE           VERSION
* Ubuntu    Stopped         1
PS C:\Users\Administrator> wsl --set-version Ubuntu 1
Conversion in progress, this may take a few minutes...
No such interface supported
PS C:\Users\Administrator> wsl --set-version Ubuntu 4
A version number could not be parsed.
PS C:\Users\Administrator> wsl --set-version Ubuntu 2
Copyright (c) Microsoft Corporation. All rights reserved.

Usage: wsl.exe [Argument] [Options...] [CommandLine]

Arguments for running Linux binaries:

If no command line is provided, wsl.exe launches the default shell.

--exec, -e &lt;CommandLine&gt;
    Execute the specified command without using the default Linux shell.

--
    Pass the remaining command line as is.

Options: ... [rest of help file] ...

Same thing for --set-default-version:

PS C:\Users\Administrator> wsl --set-default-version 2
Copyright (c) Microsoft Corporation. All rights reserved.

Usage: wsl.exe [Argument] [Options...] [CommandLine]

Arguments for running Linux binaries: ...

How can I start using WSL2 on my Windows Server installation?

René
  • 491

1 Answers1

1

I believe you have to update your windows build to 202011 or higher. Try joining the insiders program to get this build and it will work fine after an update.

pseudozed
  • 11
  • 1