How to Install WSL 2 Kernel Update on Windows 11
The Windows Subsystem for Linux 2 (WSL 2) kernel update package provides the dedicated Linux kernel required to run native Linux binaries directly on Windows 11 with full system call compatibility. This guide explains how to enable the necessary Windows features, download and install the official WSL 2 Linux kernel update package, set WSL 2 as your default architecture, and verify the installation.
Step 1: Enable Required Windows Features
Before applying the kernel update, you must ensure that both the Windows Subsystem for Linux and the Virtual Machine Platform optional features are enabled on your system.
Right-click the Start button and select Terminal (Admin) or PowerShell (Admin).
Run the following command to enable the Windows Subsystem for Linux feature:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestartRun the following command to enable the Virtual Machine Platform feature:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestartRestart your computer when prompted or after both commands complete successfully.
Step 2: Download and Install the WSL 2 Kernel Update Package
On modern Windows 11 installations, you can update the kernel directly using the command line or via the standalone installer package.
Option A: Using the Command Line (Recommended)
Open Command Prompt or PowerShell as an administrator.
Execute the update command:
wsl --updateWindows will automatically download and install the latest Linux kernel package for WSL 2.
Option B: Using the Standalone MSI Package
If your system is offline or the automated command fails:
- Download the official WSL 2 Linux kernel update package for
x64 machines (
wsl_update_x64.msi) from Microsoft. - Double-click the downloaded
.msifile to launch the setup wizard. - Grant administrative permissions when prompted and click Next to complete the installation.
Step 3: Set WSL 2 as the Default Version
Configure Windows to use WSL 2 by default whenever new Linux distributions are installed:
Open PowerShell or Command Prompt.
Run the following command:
wsl --set-default-version 2
Step 4: Verify the Installation
To confirm that the WSL 2 kernel is properly installed and active:
In PowerShell, run:
wsl --statusCheck the output to ensure the Default Version is set to
2and that the Kernel version details are displayed without errors.