Microsoft Open Sources Windows Subsystem for Linux (WSL): What's Changing and What's Staying Closed

  • Microsoft makes most of the WSL code public, allowing community contributions.
  • WSL 2, based on the Linux kernel, is now the core of the open source project, with improved features.
  • Some components remain proprietary, such as lxcore.sys (WSL1) and specific redirection tools.
  • The community will be able to suggest improvements and explore the inner workings of WSL through GitHub.

WSL open source

Microsoft has taken an important step in its relationship with open source software. when announcing that Windows Subsystem for Linux (WSL) becomes mostly open sourceAfter nearly a decade of requests from the developer community, the company is making the code for this tool available to everyone. It allows Linux distributions to run within Windows without the need for traditional virtual machines or dual-booting.

Since its initial release as part of the Windows 10 Anniversary Update in 2016, WSL development has gone through several stages. It began as a compatibility layer (WSL 1) that allowed Linux binaries to run by translating system calls, but with notable compatibility limitations. The arrival of WSL 2 in 2019, with a real Linux kernel running in a lightweight virtual machine, brought substantial improvements in performance, compatibility, and new features such as support for GPUs, systemd, and graphical applications.

The source code is already available (but not all of it)

From now on, the heart of WSL (especially everything related to WSL 2 and its core tools) It can be consulted, modified and adapted from its repository on GitHubThis includes utilities like wsl.exe, background services, and the Linux-side daemons that manage networking and other key functions. Additionally, developers can propose new features, submit bug fixes, and even build WSL from their own available code.

However, not all components will be openedAmong the items left out are lxcore.sys (the kernel component required only for WSL 1), as well as the P9rdr.sys and p9np.dll files involved in file system redirection between Windows and Linux (\wsl.localhost). Microsoft considers these elements to remain an integral part of the Windows operating system and will not be released, at least for now.

An accelerated evolution separate from the Windows update cycle

The process to open source WSL has required an internal restructuring to make the project independent of major Windows releases. Since 2021, WSL has been distributed as a standalone package, allowing for greater agility in updates and the integration of new features without being tied to the usual system update schedule. This has made it easier to respond more quickly to the needs of users and the community.

Microsoft highlights that The success of WSL would not have been possible without the support and contributions of the communityEven before the code was open sourced, many experts and enthusiasts have contributed by reporting issues, suggesting improvements, and optimizing the tool to make coexistence between Windows and Linux ever more fluid.

Ultramarine 41 in WSL
Related article:
Ultramarine 41: The Fedora-based distribution gets a refresh with WSL support, modern desktops, and new tools

What can developers do now with WSL?

With the WSL code available, anyone interested can analyze how the subsystem works, compile their own version, or propose changes and improvements directly to Microsoft. Possibilities range from minor bug fixes to new features to better integrate with Linux services, optimize performance, or tailor WSL to specific needs.

On the other hand, releasing most of the project also opens the door for the community to continue developing alternative versions if Microsoft ceases official support.

Microsoft hasn't specified exactly how it will manage contributions or whether there will be a dedicated oversight committee, but the openness represents a shift in thinking from the past and reinforces the Redmond giant's commitment to more open collaboration with the open source community.

wsl windows
Related article:
Systemd support is now available in WSL

This move propels WSL toward greater autonomy and collaboration, allowing enthusiasts and developers to actively participate in its evolution, fostering innovation and continuous improvement in the integration between Linux and Windows.