Skip to content

Windows Subsystem for Linux kernel for CONNMARK applications.

Notifications You must be signed in to change notification settings

metabronx/blackstrap_wsl-kernel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

blackstrap WSL kernel

GitHub Workflow Status

A Windows Subsystem for Linux kernel originally built for blackstrap VPN.

This kernel can be used wherever WSL needs to support applications that require CONNMARK, like Wireguard in Docker (https://docs.linuxserver.io/images/docker-wireguard).

The Dockerfile pulls and builds the latest released version of the WSL Linux kernel from https://github.com/microsoft/WSL2-Linux-Kernel. Building the kernel takes 10-15 minutes.

The built kernel is saved to /wsl-kernel within the image and can be copied out for use:

# build
docker build . -t blackstrap-wsl-kernel

# extract kernel image
docker create --name blackstrap-wsl-kernel
docker cp blackstrap-wsl-kernel:/wsl-kernel PATH_TO_SAVE
docker rm blackstrap-wsl-kernel

To use it, specify the custom kernel in your ~/.wslconfig file and restart WSL with wsl --shutdown. Also ensure to escape the path (\ should be \\) you set.

[wsl2]
kernel=PATH_TO_KERNEL

License

Put a license here.