Build a custom WSL2 kernel with different compile-time options to enable features not in the default configuration.
Inspect the kernel configuration Microsoft uses for WSL2 to understand what is included or excluded versus a standard Linux kernel.
Understand the WSL-specific patches Microsoft adds on top of upstream Linux when diagnosing WSL2 kernel issues.
Requires a Linux cross-compilation environment, Microsoft does not accept issues or pull requests in this repo.
This repository contains the source code for the Linux kernel that runs inside Windows Subsystem for Linux 2, known as WSL2. WSL2 is a feature in Windows that lets you run a real Linux environment directly on your Windows computer, without needing a separate virtual machine or dual-boot setup. The kernel is the core of any Linux system: it manages hardware access, memory, processes, and communication between software and the underlying computer. Microsoft takes the standard Linux kernel from the official Linux project and adds the configuration and infrastructure needed to package it for WSL2. The result is what Windows actually runs under the hood when you open a Linux terminal on a Windows machine. Because it is based on the upstream Linux kernel, it gets the same updates and features as any other Linux system, with some WSL-specific adjustments on top. The repository is primarily a release and build infrastructure repo rather than an active development hub. Microsoft does not accept issues or pull requests here. If you have a problem with WSL2 or want to report a kernel-related bug, you are directed to the main WSL repository at github.com/microsoft/WSL. If you want to contribute to the Linux kernel itself, the project points you to the official Linux kernel contribution process. The README is sparse because this is a technical infrastructure repository, not a general-purpose project. Its audience is people who need to inspect, build, or understand the kernel configuration that ships with WSL2, not casual users or contributors.
← microsoft on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.