Microsoft on the provision of support for the subsystem (Windows Subsystem for Linux) in Windows 10 releases — 1903 and 1909, released in May and November of last year. Initially, the WSL2 subsystem, which enables the execution of Linux executables on Windows, was introduced in the Windows 10 2004 release. Now, Microsoft has backported this subsystem to previous Windows 10 updates that remain relevant and are used in many enterprises. Porting WSL2 to these releases will enable efficient execution of Linux environments without the need to upgrade to Windows 10 2004 (support for releases 1903 and 1909 until December 2020 and May 2022).
It is important to note that the WSL2 edition by providing a full Linux kernel instead of the previously used emulator, which translated Linux system calls into Windows system calls. The Linux kernel in WSL2 does not come bundled with the Windows installation image but is loaded dynamically and kept up to date by Windows, similar to how graphic drivers are installed and updated. The standard Windows Update mechanism is used for kernel installation and updates.
The proposed kernel for WSL2 The WSL2 environment runs in a separate virtual hard disk (VHD) with an ext4 file system and a virtual network adapter. Similar to WSL1, user space components
are installed the following builds are offered Debian GNU/Linux, Kali Linux , , ,
, and .
Canonical has already announced the availability of installation builds of Ubuntu 20.04 LTS, tested in environments
WSL2 on Windows 10 1903 and 1909. To enable WSL2 in Windows 10 1909, you need to install the update and run the following command in PowerShell with administrative rights:
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart
Then you need to restart the computer and enable WSL2 by default:
wsl.exe —set-default-version 2
After that, you can install the desired Linux environment from the
Microsoft Store or convert an existing environment to WSL 1 format using the command “wsl.exe —set-version Ubuntu 2.”
Additionally, one can mention the environment for of WSL2 instead of the HyperV-based backend.
Using WSL2 will allow Docker Desktop to run not only for Windows Pro and Windows Enterprise users but also for Windows Home users.
Source: opennet.ru
