Skip to content

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

License

Notifications You must be signed in to change notification settings

kutemeikito/WSL2-Linux-Kernel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation instructions

  1. Grab the latest release from the Releases page.

  2. Place the kernel somewhere in Windows, such as in a folder in your user folder named Linux (e.g., C:\Users\natec\Linux\bzImage).

  3. Open a file editor such as Visual Studio Code and type the following:

[wsl2]
kernel =

After that =, put the full path to the kernel image with all of the \ replaced with \\ (e.g. C:\\Users\\natec\\Linux\\bzImage).

It should look something like:

[wsl2]
kernel = C:\\Users\\natec\\Linux\\bzImage
  1. Save this file as .wslconfig in the current user's home directory (e.g. C:\Users\natec\.wslconfig).

  2. Restart WSL with wsl.exe --shutdown and check that the new image has been booted with uname -r.

To update the kernel, continuously download the latest release from the releases page or use one of the tools mentioned in this issue.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 96.9%
  • C++ 1.2%
  • Assembly 1.0%
  • Shell 0.3%
  • Objective-C 0.2%
  • Makefile 0.2%
  • Other 0.2%