17 June 19, 06:22
(This post was last modified: 17 June 19, 06:23 by harlan4096.)
Quote:Continue Reading
Microsoft plans to integrate the Windows Subsystem for Linux 2 in the first major Windows 10 feature update after Windows 10 1903, the Windows 10 20H1 update.
The company released a new build to the Fast Ring Windows Insider channel that includes the new version of the Windows Subsystem for Linux. With the change come important improvements and changes that users and administrators need to be aware of.
First, the basics: The Windows Subsystem for Linux 2 is included in the Windows 10 Insider Preview Build 18971 released on June 12, 2019. It will also be included in future Insider Builds provided that Microsoft does not find critical bugs that need addressing.
WSL 2 needs to be installed before it becomes available:
1. Make sure the Windows 10 build is at least 18917 (use winver to find out about that by launching it from Start).
2. Open an administrative PowerShell prompt, e.g. by using the Windows-X menu.
3. Run Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
4. A restart is required.
5. Open a PowerShell prompt again.
6. Run wsl -l to display the available distros.
7. To verify the versions of each distro, run wsl --list --verbose or wsl -l -v
8. Run the command wsl --set-version <Distro> 2 to set a distro. Replace <Distro> with the name of the distro revealed by the command under 6).
9. To make WSL 2 the default architecture, run wsl --set-default-version 2.
The new subsystem provides the same user experience as the current version in release versions of Windows 10.
Microsoft notes that the Windows Subsystem for Linux 2 comes with a "real Linux kernel" and that it changes how Linux binaries "interact with Windows" and the computer hardware.
One of the core difference between version 1 and 2 of the Windows Subsystem for Linux is that users are now encouraged to place files inside the Linux root file system. Doing so improves performance significantly according to Microsoft as they benefit from faster file system access of WSL 2.