qmetrics.net

WSL2-Linux-Kernel

Linux kernel sources for Windows Subsystem for Linux 2

This tree holds the kernel source and configuration used by WSL2. You can build and package the kernel, modules, headers, and perf tooling for use with a custom WSL setup.

Overview

WSL2-Linux-Kernel provides the Linux kernel codebase and Microsoft-specific configuration files that power the Windows Subsystem for Linux 2 environment. It is the kernel layer that guest Linux distributions run on inside WSL2 rather than a standalone desktop distribution.

The published sources include the full kernel tree plus WSL-oriented config under the Microsoft config path. Optional steps let you adjust kernel options with menuconfig against that config before building. Standard kernel build output can be paired with module installation into a local modules directory, UAPI headers install, and a perf tools build trimmed of optional dependencies.

Documentation describes producing a VHDX artifact that bundles modules, headers, and perf via a provided script or manual staging into an ext4 image converted to VHDX. WSL expects those artifacts under predictable mount paths for modules, linux-headers, and perf when you supply a custom kernel.

Using a self-built kernel is documented through the WSL .wslconfig settings. Bug reports and feature requests for WSL behavior are directed to the main WSL project rather than this kernel-only repository; upstream Linux is the path for bugs that are not WSL-specific.

Key features

  • WSL2-specific kernel configuration
  • Full upstream-style kernel source tree
  • Optional menuconfig for kernel options
  • Modules and headers build workflow
  • Perf tooling build instructions
  • VHDX artifact packaging script
  • Custom kernel via .wslconfig
  • Ubuntu-oriented build dependency list

Use cases

  • Building a custom WSL2 Linux kernel
  • Testing kernel config changes for WSL
  • Packaging modules and headers for WSL
  • Including perf tools with a custom kernel
  • Contributing kernel fixes upstream

Similar software

Linux

Core operating system kernel for Linux systems

The Linux kernel is the core of any Linux operating system. It manages hardware, system resources, and provides fundamental services for other software.

  • Hardware and resource management
  • Core services for user-space software
  • Networking stack documentation
CLinuxDetails →
★ 257.4k⟳ todayGPL-2.0

Omarchy

Opinionated agent-friendly Linux distribution

Omarchy is a Linux distribution focused on fast setup, curated defaults, and built-in agent tooling. It ships editors, terminals, themes, plugins, and optional Windows VM support.

  • Quick USB-based installation
  • Integrated coding agent setup
  • Community plugin ecosystem
ShellLinux, macOS, CLIDetails →
★ 48.1k⟳ todayMIT

SerenityOS

Graphical Unix-like desktop operating system

SerenityOS is a 64-bit graphical Unix-like system for x86, Arm, and RISC-V with a custom kernel, POSIX-oriented userspace, and a late-1990s-inspired desktop.

  • Preemptive multithreaded 64-bit kernel
  • Pledge, unveil, and W^X protections
  • POSIX-compatible LibC and shell
C++LinuxDetails →
★ 34.1k⟳ todayBSD-2-Clause

Nixpkgs

Nix package collection and NixOS distribution sources

Nixpkgs holds thousands of software build definitions installable through the Nix package manager. It also contains NixOS, a declarative Linux distribution.

  • Large curated Nix package set
  • NixOS system definitions
  • Hydra continuous integration builds
NixLinuxDetails →
★ 27.1k⟳ todayMIT

ReactOS

Windows NT–compatible PC operating system

ReactOS aims to run Windows NT–family applications and drivers on its own kernel. It targets compatibility with releases from NT4 through Windows 7 era systems, with ongoing Server 2003 focus.

  • Win32 application compatibility target
  • Windows NT driver model alignment
  • Graphical and text-mode setup
CDetails →
★ 18.6k⟳ 2 days agoGPL-2.0
Open Source Alternative to:Windows

Nix & NixOS

Reproducible package manager and Linux distribution stack

Nix is a package manager for Linux and other Unix systems built around isolated, reproducible builds. NixOS is a Linux distribution configured declaratively with Nix.

  • Isolated reproducible builds
  • Declarative configuration
  • Rollback to prior versions
C++Linux, macOSDetails →
★ 18.1k⟳ todayLGPL-2.1