Microsoft has implemented support for the WSL2 subsystem (Windows Subsystem for Linux) In Windows Server 2022. Initially, the WSL2 subsystem, which provides the launch of executable files Linux в Windows, was offered only in variants Windows for workstations, but now Microsoft has transferred this subsystem to server editions Windows. Components to support WSL2 in Windows Server are currently available for testing in the form of experimental update KB5014021 (OS Build 20348.740). Support will be added in the June cumulative update. Linux-WSL2-based environments are planned to be integrated into the main composition Windows Server 2022 and offer it to all users.
To ensure that executable files can run Linux WSL2 no longer uses an emulator to translate system calls. Linux into system calls Windows, and switched to providing an environment with a full-fledged kernel LinuxThe proposed kernel for WSL is based on the kernel release Linux 5.10, which is enhanced with WSL-specific patches, including optimizations to reduce kernel startup time, reduce memory consumption, and return Windows released Linux-memory processes, leaving the minimum necessary set of drivers and subsystems in the kernel.
The kernel runs in an environment Windows Using a virtual machine already running in Azure. The WSL environment runs in a separate disk image (VHD) with an ext4 file system and a virtual network adapter. User-space components are installed separately and are based on builds from various distributions. For example, builds are available for installation in WSL in the Microsoft Store. Ubuntu, Debian GNU/Linux, Kali Linux, Fedora, Alpine, SUSE and openSUSE.
Source: opennet.ru
