microsoft/wsl2-linux-kernel

The source for the Linux kernel used in Windows Subsystem for Linux 2 (WSL2)

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 39 minutes ago
Added to GitGenius on September 5th, 2026
Created on May 21st, 2019
Open Issues & Pull Requests: 134 (+0)
GitHub issues: Disabled - open counts may still include pull requests.
Number of forks: 1,445
Total Stargazers: 10,550 (+0)
Total Subscribers: 234 (+0)

Repository Insights (GitGenius)

Most active contributors

Sign in to see contributor activity.

Related repositories by overlapping contributors

No overlapping-contributor repos identified yet.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

GitHub issues are disabled for this repository, so issue analytics and the issue explorer are not available.

Detailed Description

The wsl2-linux-kernel is the Linux kernel source code and build system for Windows Subsystem for Linux 2.

The project addresses the need for a customizable kernel that powers WSL2, allowing developers to build and modify the kernel to suit their specific requirements. The repository provides the kernel source alongside Microsoft's configuration files and build scripts that automate compilation into a VHDX artifact compatible with WSL2's expected layout.

Developers should adopt this tool if they need to customize the WSL2 kernel beyond the default distribution—whether to enable specific kernel features, apply patches, or optimize for particular workloads. The build process is straightforward for those familiar with Linux kernel compilation, requiring standard development tools and offering optional parallel builds for faster compilation. Custom kernels can be deployed through WSL's .wslconfig configuration file. This is primarily for advanced users; most WSL2 users will not need to build their own kernel.

The project maintains a clear separation of concerns: bug reports and feature requests are directed to the main WSL GitHub project rather than this repository, keeping the kernel source focused on code. Contributions are encouraged to flow upstream to the Linux kernel project itself, reflecting an integration-focused approach rather than maintaining divergent customizations.