-
Notifications
You must be signed in to change notification settings - Fork 23
Install Instructions
Note
You have to restart your WSL2 system using wsl --shutdown after install or update kernel.
- Download kernel image from releases page.
- Place it to somewhere appropriate. (e.g.
D:\WSL2\Kernel\bzImage-x86_64) - Save the
.wslconfigin current user's home directory with following content:
[wsl2]
kernel=the\\path\\to\\bzImage
; e.g.
; kernel=D:\\WSL2\\Kernel\\bzImage-x86_64
;
; Note that all `\` should be escaped with `\\`.- Restart your WSL2 (
wsl --shutdown) and check kernel version usinguname -ain WSL2 terminal.
- Scoop is a command-line installer on windows. If you have scoop installed, then you can install this kernel with following commands:
scoop bucket add frostbite https://github.com/Nevuly/frostbite
# Install normal kernel version
scoop install frostbite/wsl2-rolling-kernel-stable
# Install Real-Time kernel version
scoop install frostbite/wsl2-rolling-kernel-stable-rt- Scoop will automatically set kernel in
.wslconfig.
- If you installed it via Scoop, you can use
scoop update *in Powershell. - If you installed it manually, download it from releases page, and replace it.
Note
Kernel addon package is optional. If you don't need it, just skip this guide.
Addon package continas kernel modules, headers and documents.
Note
You have to restart your WSL2 system using wsl --shutdown after install or update kernel addon package.
Warning
Addon package only supports VHDX image! You must use WSL2 veresion 2.5.1 or later!
- Download kernel addon package from releases page.
- Place it to somewhere appropriate. (e.g.
D:\WSL2\Kernel\bzImage-x86_64-addon.vhdx) - Save the
.wslconfigin current user's home directory with following content:
[wsl2]
kernelModules=the\\path\\to\\bzImage-addon.vhdx
; e.g.
; kernelModules=D:\\WSL2\\Kernel\\bzImage-x86_64-addon.vhdx
;
; Note that all `\` should be escaped with `\\`.- Restart your WSL2 (
wsl --shutdown) and check directory in/lib/modules).
- Scoop is a command-line installer on windows. If you have scoop installed, then you can install this kernel addon package with following commands:
scoop bucket add frostbite https://github.com/Nevuly/frostbite
# Install normal kernel version addon
scoop install frostbite/wsl2-rolling-kernel-stable-addon
# Install Real-Time kernel version addon
scoop install frostbite/wsl2-rolling-kernel-stable-rt-addon- Scoop will automatically set kernel in
.wslconfig.
- If you installed it via Scoop, you can use
scoop update *in Powershell. - If you installed it manually, download it from releases page, and replace it.
Warning
To use the ZFS module, you must install the kernel addon package first!
For installation instructions, please check section 2.
The ZFS module is located at the following path and is disabled by default:
/lib/modules/$(kernel_version)-WSL2-STABLE+/extraTo use it, you can enable it by entering the commands below:
sudo insmod /lib/modules/$(kernel_version)-WSL2-STABLE+/extra/spl.ko
sudo insmod /lib/modules/$(kernel_version)-WSL2-STABLE+/extra/zfs.koThis will work after you have installed the necessary ZFS packages in your Linux distributions.