An introduction to WSL 2

The Windows Subsystem for Linux gets a major overhaul; now adding a full Linux kernel

At its recent Build conference Microsoft introduced the second version of its Windows Subsystem for Linux. It’s a major reworking of the original WSL concept, moving away from translating Linux system calls to Windows to shipping a complete Linux kernel that runs alongside Windows’ own kernel.

The reasons for doing this are many, but the main one is simple: It’s impossible for an emulator that ships twice a year to keep up with the changes in the Linux kernel, changes that Linux binaries depend on. If Windows is to support developers building Linux apps for the cloud, then it needs to be more than consistent, it needs to be compatible.

Introducing WSL 2

Two major developments have shaped WSL 2. The first is Microsoft’s focus on using its Hyper-V virtualization tool as an isolation layer in Windows, turning it into a general-purpose hypervisor service. The second is the closely related collaboration with Docker, Linux Containers on Windows, known as LCOW.

To continue reading this article register now