WSL 2.0 [Update: 2.0.4] (Windows Subsystem for Linux) with new experimental features and more

[Update 5.10.2023]: A few days later WSL 2.0.4 followed. Among other things, a crash has been corrected and a new argument has been added. The release notes are attached below.

[Update 30.09.2023]: And another update for WSL to version 2.0.3. after. Two important errors have been corrected here. The release notes are again attached below.

[Update 28.09.2023]: Just two days later, version 2.0.2 appears with further corrections. Mainly installation errors are corrected here. I have attached the release notes below.

[Update 26.09.23]: One week after “final” Version of the WSL, Microsoft has provided a correction version 2.0.1. This will also continue to be marked as pre-release. I’ve added the changes below.

[Original 19.09.23]: The Windows Subsystem for Linux (WSL) has received an update to version 2.0.0. In this version, some new experimental features have been integrated and corrections have also been made. The version, like many before it, is marked as pre-release.

These were in %USERPROFILE%.wslconfig added.

[experimental]
autoMemoryReclaim=gradual | dropcache | disabled
networkingMode=mirrored
dnsTunneling=true
firewall=true
autoProxy=true
  • experimental.autoMemoryReclaim – Causes the WSL VM’s memory to shrink as it is used by reclaiming cached memory
  • experimental.networkingMode – A new networking mode for WSL that provides new features and improves network compatibility
  • experimental.dnsTunneling – Changes the way WSL resolves DNS queries to improve network compatibility
  • experimental.firewall – Applies Windows Firewall rules to WSL and enables advanced firewall controls for the WSL VM
  • experimental.autoProxy – Makes WSL automatically use Windows proxy information to improve network compatibility

The Microsoft.WSL.Kernel has been updated to version 5.15.123.1-1 and WSLg (Windows Subsystem for Linux GUI) to 1.0.57. WSL GUI applications can now snap to the keyboard in Windows (press WIN + an arrow key to jump to the page). Of course, corrections were also made. You can read it on GitHub.

Release Notes WSL 2.0.1

  • Mount cgroupv2 under /sys/fs/cgroup when cgroupv1 is disabled
  • Conditionally writes the registry keys for the Explorer extensions
  • No longer trying to “inherit” the same handle twice
  • The processing (parsing) of 0GB memory strings has been corrected
  • WSLg (Windows Subsystem for Linux GUI) has been updated to version 1.0.58.

Release Notes WSL 2.0.2

  • Creates a special error code when WSL is invoked from LocalSystem
  • Fixes same version installations and downgrades (fixes #10527)
  • Fixes an upgrade issue caused by setting REINSTALLMODE (fixes #10539)
  • Fixes a race condition that causes WslInstaller to crash

Release Notes WSL 2.0.3

  • The problem when upgrading from version 2.0.1 has been corrected
  • Continues even if the memory cannot be recovered.

Release Notes WSL 2.0.4

  • Fixes a possible crash in the wslservice.exe file
  • Implementation of the /usr/bin/wslinfo binary to query various states. The argument --networking-mode was added.

Info and download:

Windows Subsystem for Linux
Windows Subsystem for Linux

Windows 11 tutorials and help