Package Details: linux-wsl-headers 7.1.3.arch1-2

Git Clone URL: https://aur.archlinux.org/linux-wsl.git (read-only, click to copy)
Package Base: linux-wsl
Description: Headers and scripts for building modules for the Linux (WSL without Microsoft out-of-tree patches) kernel
Upstream URL: https://github.com/archlinux/linux
Keywords: wsl
Licenses: GPL-2.0-only
Provides: LINUX-HEADERS
Submitter: HsingYun
Maintainer: HsingYun
Last Packager: HsingYun
Votes: 0
Popularity: 0.000000
First Submitted: 2026-06-19 18:25 (UTC)
Last Updated: 2026-07-11 18:03 (UTC)

Required by (317)

Sources (5)

Latest Comments

HsingYun commented on 2026-06-19 18:45 (UTC) (edited on 2026-06-23 16:43 (UTC) by HsingYun)

linux-wsl

Arch's official linux source built with Microsoft's WSL config. No Microsoft out-of-tree patches (no dxgkrnl/GPU passthrough).

1.Mount an NTFS dir as /boot before installing, via /etc/fstab:
# <file system> <dir> <type> <options> <dump> <pass>
C:\wsl-boot  /boot  drvfs  defaults  0  0
2. Install: yay -S linux-wsl.
3.Point %USERPROFILE%\.wslconfig at the image:
[wsl2]
kernel=C:\\wsl-boot\\vmlinuz-linux-wsl
4. Reboot wsl, wsl --shutdown, then check uname -r.

On upgrade, pacman rewrites /boot/vmlinuz-linux-wsl (fixed name) into NTFS — .wslconfig never changes. Just wsl --shutdown to apply.

5. [optional] Kernel Module
[wsl2]
kernelModules=C:\\wsl-boot\\vmlinuz-linux-wsl-modules.vhdx

By specifying vmlinuz-linux-wsl-modules.vhdx via the wsl2.kernelModules option, the corresponding kernel modules can be loaded automatically. However, once WSL loads this .vhdx file, it gets locked by Windows, preventing any updates. Therefore, if you want to update the kernel, you need to temporarily remove the wsl2.kernelModules setting, and then restore it after the update is complete.