Microsoft’s Windows Subsystem for Linux is now open-source

Microsoft is making its Windows Subsystem for Linux (WSL) open-source today, opening up the code for community members to contribute to. After launching WSL for Windows 10 nearly nine years ago, it has been a multiyear effort at Microsoft to open-source the feature that enables a Linux environment within Windows. “It has been a consistent […]

May 19, 2025 - 19:00
 0
Microsoft’s Windows Subsystem for Linux is now open-source

Microsoft is making its Windows Subsystem for Linux (WSL) open-source today, opening up the code for community members to contribute to. After launching WSL for Windows 10 nearly nine years ago, it has been a multiyear effort at Microsoft to open-source the feature that enables a Linux environment within Windows.

“It has been a consistent request from the developer community for some time now,” says Windows chief Pavan Davuluri in an interview with The Verge. “It took us a little bit of time, because we needed to refactor the operating system to allow WSL to live in a standalone capacity that then allowed us to open-source the project and be able to have developers go and make contributions and for us to ingest those into the Windows pipeline and ship it at scale.”

The WSL code is now available on GitHub, allowing developers to download it and build it from source, participate in fixes, or even add new features. The WSL community hasn’t had access to Microsoft’s source code in the past, but that hasn’t stopped them from making contributions that have helped improve WSL over the years. Davuluri says he’s now expecting that developers will use the open-source project to help improve WSL performance, or for more integration into Linux services.

It’s a major milestone for WSL, which started off life in 2016 as part of the Windows 10 Anniversary update. “At that time WSL was based on a pico process provider, lxcore.sys, which enabled Windows to natively run ELF executables, and implement Linux syscalls inside the Windows kernel,” explains Pierre Boulay, senior software engineer at Microsoft. “Over time it became clear that the best way to provide optimal compatibility with native Linux was to rely on the Linux kernel itself.”

Microsoft announced its second major version of WSL in 2019, eventually adding GPU support and then moving to ship the project separate to Windows. “It eventually became clear that to keep up the growing community and feature requests, WSL had to move faster, and ship separately from Windows,” says Boulay. “That’s why in 2021 we separated WSL from the Windows codebase, and moved it to its own codebase.” In the latest 24H2 update for Windows 11, Microsoft has fully transitioned WSL users to a package that’s separate from Windows, instead of the WSL component that was baked into the OS.

All of these changes to WSL in recent years have led Microsoft to close off the first ever issue raised on its WSL repo on GitHub, asking “Will this be open-source?” That answer is very much yes now, and it’s a part of making Windows more developer-friendly. “Our goal is quite simple: we want Windows to be a great dev box for developers,” says Davuluri. “That’s really the ambition.”