Microsoft ported the WSL2 (Windows Subsystem for Linux) subsystem to Windows 10 1903 and 1909

Microsoft company announced about providing subsystem support WSL2 (Windows Subsystem for Linux) in Windows 10 releases - 1903 and 1909, formed last May and November. The WSL2 subsystem, which enables running Linux executables on Windows, was originally introduced with the release of Windows 10 2004. Now, Microsoft has ported this subsystem to past Windows 10 updates, which remain relevant and are used by many enterprises. Porting to these releases of WSL2 will allow you to run a Linux environment efficiently without having to migrate to Windows 10 2004 (maintaining releases 1903 and 1909 will last until December 2020 and May 2022).

Microsoft ported the WSL2 (Windows Subsystem for Linux) subsystem to Windows 10 1903 and 1909

Recall that the WSL2 edition is different delivery of a full-fledged Linux kernel instead of the previously used emulator that translated Linux system calls into Windows system calls. The Linux kernel in WSL2 is not included in the Windows installation image, but is loaded dynamically and kept up to date by Windows, similar to how graphics drivers are installed and updated. The standard Windows Update mechanism is used to install and update the kernel.

Proposed for WSL2 core is based on the Linux 4.19 kernel release, which runs in a Windows environment using a virtual machine already running in Azure. WSL2-specific patches applied in the kernel include optimizations to reduce kernel startup time, reduce memory consumption, return memory freed by Linux processes to Windows, and leave the minimum required set of drivers and subsystems in the kernel.

The WSL2 environment runs in a separate disk image (VHD) with an ext4 file system and a virtual network adapter. As in WSL1 userspace components Are established separately and are based on assemblies of various distributions. For example, to install in WSL in the Microsoft Store catalog offered assembly Ubuntu, Debian GNU/Linux, Kali Linux, Fedora,
Alpine, SUSE ΠΈ openSUSE.

Canonical has already announced about the readiness of installation builds of Ubuntu 20.04 LTS, tested in environments
WSL2 based on Windows 10 1903 and 1909. An update must be installed to enable WSL2 on Windows 10 1909 kb4571748 and run the command in PowerShell with administrator rights:

Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart

Next, you need to restart your computer and activate WSL2 by default:

wsl.exe --set-default-version 2

After that, you can install the desired Linux environment from the directory
Microsoft Store, or convert an existing WSL 1 environment using the "wsl.exe --set-version Ubuntu 2" command.

Additionally, mention can be made of adaptations environment DockerDesktop for use WSL2 instead of HyperV based backend.
Using WSL2 will allow running Docker Desktop not only for Windows Pro and Windows Enterprise owners, but also for Windows Home users.

Source: opennet.ru

Add a comment