WSL Medium · Lesson 1 · On the house

Custom kernels concept

Bring your own Linux kernel. Lesson 1 is free — on the house.

Lessons · WSL Medium · Lesson 1 of 10 · On the house

Custom kernels concept

Bring your own Linux kernel.

Illustration for WSL
Lesson 1 is on the house.

WSL 2 can load a custom kernel via kernel= path in .wslconfig.

Custom kernels unlock modules or patches Microsoft's default kernel omits.

You own rebuilding and updating that kernel when Windows/WSL expects changes.

Mismatching modules/config can prevent boot — keep a known-good kernel path.

Most developers never need this; treat it as an advanced escape hatch.

kernel

# .wslconfig
[wsl2]
kernel=C:\\kernels\\bzImage
Match this when you type.

Quiz

How point WSL 2 at a custom kernel?

Quiz

Why use a custom kernel?

Quiz

Risk of custom kernels?

Check

Match the still for: Custom kernels concept.

Open-book: the answers are on this page. Pass every quiz and check (4) to mark the lesson done. This visit: 0/4.