适用于 Linux 的 Windows 子系统 发行说明
Build 21364
For general Windows information on build 21364 visit the Windows blog.
- GUI apps are now available! For more information see this blog post.
- Resolve error when accessing files via \\wsl.localhost\.
- Fix potential deadlock in LxssManager service.
Build 21354
For general Windows information on build 21354 visit the Windows blog.
- Switch the \wsl prefix to \wsl.localhost to avoid issues when there is a machine on the network named "wsl". \wsl$ will continue to work.
- Enable Linux quick access icon for wow processes.
- Update issue where version 2 was always being passed via wslapi RegisterDistribution.
- Change the fmask of the /usr/lib/wsl/lib directory to 222 so files are marked as executable [GH 3847]
- Fix wsl service crash if Virtual Machine Platform is not enabled.
Build 21286
For general Windows information on build 21286 visit the Windows blog.
- Introduce wsl.exe --cd command to set current working directory of a command.
- Improve mapping of NTSTATUS to Linux error codes. [GH 6063]
- Improve wsl.exe --mount error reporting.
- Added an option to /etc/wsl.conf to enable start up commands:
[boot]
command=<string>
Build 20226
For general Windows information on build 20226 visit the Windows blog.
- Fix crash in LxssManager service. [GH 5902]
Build 20211
For general Windows information on build 20211 visit the Windows blog.
- Introduce
wsl.exe --mount
for mounting physical or virtual disks. For more information see Access Linux filesystems in Windows and WSL 2. - Fix crash in LxssManager service when checking if the VM is idle. [GH 5768]
- Support for compressed VHD files. [GH 4103]
- Ensure that Linux user mode libs installed to c:\windows\system32\lxss\lib are preserved across OS upgrade. [GH 5848]
- Added the ability to list available distributions that can be installed with
wsl --install --list-distributions
. - WSL instances are now terminated when the user logs off.
Build 20190
For general Windows information on build 20190 visit the Windows blog.
- Fix bug preventing WSL1 instances from launching. [GH 5633]
- Fix hang when redirecting Windows process output. [GH 5648]
- Add %userprofile%\.wslconfig option to control the VM idle timeout (wsl2.vmIdleTimeout=<time_in_ms>).
- Support launching app execution aliases from WSL.
- Added support for installing the WSL2 kernel and distributions to wsl.exe --install.
Build 20175
For general Windows information on build 20175 visit the Windows blog.
- Adjust default memory assignment of WSL2 VM to be 50% of host memory or 8GB, whichever is less [GH 4166].
- Change \\wsl$ prefix to \\wsl to support URI parsing. The old \\wsl$ path is still supported.
- Enable nested virtualization for WSL2 by default on amd64. You can disable this via %userprofile%\.wslconfig ([wsl2] nestedVirtualization=false).
- Make wsl.exe --update demand start Microsoft Update.
- Support renaming over a read-only file in DrvFs.
- Ensure error messages are always printed in the correct codepage.
Build 20150
For general Windows information on build 20150 visit the Windows blog.
- WSL2 GPU compute see Windows blog for more information.
- Introduce wsl.exe --install command line option to easily set up WSL.
- Introduce wsl.exe --update command line option to manage updates to the WSL2 kernel.
- Set WSL2 as the default.
- Increase WSL2 vm graceful shutdown timeout.
- Fix virtio-9p race condition when mapping device memory.
- Don't run an elevated 9p server if UAC is disabled.
Build 19640
For general Windows information on build 19640 visit the Windows blog.
- [WSL2] Stability improvements for virtio-9p (drvfs).
Build 19555
For general Windows information on build 19555 visit the Windows blog.
- [WSL2] Use a memory cgroup to limit the amount of memory used by install and conversion operations [GH 4669]
- Make wsl.exe present when the Windows Subsystem for Linux optional component is not enabled to improve feature discoverability.
- Change wsl.exe to print help text if the WSL optional component is not installed
- Fix race condition when creating instances
- Create wslclient.dll that contains all command line functionality
- Prevent crash during LxssManagerUser service stop
- Fix wslapi.dll fast fail when distroName parameter is NULL
Build 19041
For general Windows information on build 19041 visit the Windows blog.
- [WSL2] Clear the signal mask before launching the processes
- [WSL2] Update Linux kernel to 4.19.84
- Handle creation of /etc/resolv.conf symlink when the symlink is non-relative
Build 19028
For general Windows information on build 19028 visit the Windows blog.
- [WSL2] Update Linux kernel to 4.19.81
- [WSL2] Change the default permission of /dev/net/tun to 0666 [GH 4629]
- [WSL2] Tweak default amount of memory assigned to Linux VM to be 80% of host memory
- [WSL2] fix interop server to handle requests with a timeout so bad callers cannot hang the server
Build 19018
For general Windows information on build 19018 visit the Windows blog.
- [WSL2] Use cache=mmap as the default for 9p mounts to fix dotnet apps
- [WSL2] Fixes for localhost relay [GH 4340]
- [WSL2] Introduce a cross-distro shared tmpfs mount for sharing state between distros
- Fix restoring persistent network drive for \\wsl$
Build 19013
For general Windows information on build 19013 visit the Windows blog.
- [WSL2] Improve memory performance of WSL utility VM. Memory that is no longer in use will be freed back to the host.
- [WSL2] Update kernel version to 4.19.79. (add CONFIG_HIGH_RES_TIMERS, CONFIG_TASK_XACCT, CONFIG_TASK_IO_ACCOUNTING, CONFIG_SCHED_HRTICK, and CONFIG_BRIDGE_VLAN_FILTERING).
- [WSL2] Fix input relay to handle cases where stdin is a pipe handle that is not closed [GH 4424]
- Make the check for \\wsl$ case-insensitive.
[wsl2]
pageReporting = <bool> # Enable or disable the free memory page reporting feature (default true).
idleThreshold = <integer> # Set the idle threshold for memory compaction, 0 disables the feature (default 1).
Build 19002
For general Windows information on build 19002 visit the Windows blog.
- [WSL] Fix issue with handling of some Unicode characters: https://github.com/microsoft/terminal/issues/2770
- [WSL] Fix rare cases where distros could be unregistered if launched immediately after a build-to-build upgrade.
- [WSL] Fix minor issue with wsl.exe --shutdown where instance idle timers were not cancelled.
Build 18995
For general Windows information on build 18995 visit the Windows blog.
- [WSL2] Fix an issue where DrvFs mounts stopped working after an operation was interrupted (e.g. ctrl-c) [GH 4377]
- [WSL2] Fix handling of very large hvsocket messages [GH 4105]
- [WSL2] Fix issue with interop when stdin is a file [GH 4475]
- [WSL2] Fix service crash when unexpected network state is encountered [GH 4474]
- [WSL2] Query the distro name from the interop server if the current process does not have the environment variable
- [WSL2] Fix issue with interop whe stdin is a file
- [WSL2] Update Linux kernel version to 4.19.72
- [WSL2] Add ability to specify additional kernel command line parameters via .wslconfig
[wsl2]
kernelCommandLine = <string> # Additional kernel command line arguments
Build 18990
For general Windows information on build 18990 visit the Windows blog.
- Improve the performance for directory listings in \\wsl$
- [WSL2] Inject additional boot entropy [GH 4416]
- [WSL2] Fix for Windows interop when using su / sudo [GH 4465]
Build 18980
For general Windows information on build 18980 visit the Windows blog.
- Fix reading symlinks that deny FILE_READ_DATA. This includes all the symlinks Windows creates for backwards compatibility such as "C:\Document and Settings" and a bunch of symlinks in the user profile directory
- Make unexpected filesystem state non-fatal [GH 4334, 4305]
- [WSL2] Add support for arm64 if your CPU / firmware supports virtualization
- [WSL2] Allow unprivileged users to view kernel log
- [WSL2] Fix output relay when stdout / stderr sockets have been closed [GH 4375]
- [WSL2] Support battery and AC adapter passthrough
- [WSL2] Update Linux kernel to 4.19.67
- Add the ability to set default username in /etc/wsl.conf:
[user]
default=<string>
Build 18975
For general Windows information on build 18975 visit the Windows blog.
- [WSL2] Fixed a number of localhost reliability issues [GH 4340]