linux-kernel-wsl-stable 5.15.167.4

0001-01-01


Description

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

Homepage

https://github.com/microsoft/WSL2-Linux-Kernel

Install

uniget install linux-kernel-wsl-stable

Dependencies

None

Code

See code on GitHub

Package

See package on GitHub

Platforms

  • linux/amd64

Messages

internals

Install packages required to build the kernel:

  • Ubuntu: install-deps-ubuntu.sh
  • Other distributions are currently not supported

Start from your running configuration: $ zcat /proc/config.gz >running.config

(Optional) Make sure to have ebpf enabled: $ assert-config.sh running.config

Build the kernel: $ make KCONFIG_CONFIG=running.config bzImage $ make KCONFIG_CONFIG=running.config modules

Install the kernel: $ copy arch/x86_64/boot/bzImage to “/mnt/c/$(wslvar -s HOMEPATH | tr ‘\’ ‘/’)/” $ make KCONFIG_CONFIG=running.config modules_install

Configure new kernel in %UserProfile%/.wslconfig (https://learn.microsoft.com/en-us/windows/wsl/wsl-config#wslconfig): kernel=c://users/USERNAME//bzImage

If the new kernel fails to load, remove the kernel from the config file and restart WSL.

History

Link