To enable WSL 2 on Windows 11, open PowerShell as an administrator, run wsl --install, restart the PC, and create a Linux username and password when Ubuntu opens. New installs made this way use WSL 2 automatically, so there is no separate switch to flip.
These instructions cover Windows 11 Home, Pro, Enterprise and Education on Intel, AMD and Arm (ARM64) PCs, using the commands Microsoft documented in October 2026. If WSL is already on your PC with older WSL 1 distributions, skip to the section on converting them.
What WSL 2 Is and What You Need First
WSL stands for Windows Subsystem for Linux. It lets you run a Linux distribution (a packaged version of Linux such as Ubuntu or Debian) and its command-line tools on Windows without dual booting. A “distro” is short for distribution.
WSL 2 is the second architecture. Instead of translating Linux system calls the way WSL 1 does, it runs a real Linux kernel inside a lightweight virtual machine that Windows manages for you. You never see or configure that virtual machine directly.
Check these before you start:
| Requirement | What it means for you |
|---|---|
| Windows 11, any desktop edition | Microsoft states WSL 2 works on Home as well as Pro, so you do not need to upgrade your edition or buy anything. WSL is free. |
| Hardware virtualization turned on | WSL 2 needs the processor’s virtualization feature enabled in the PC’s UEFI/BIOS. Many PCs ship with it on, and Microsoft says it is always on for Surface devices. |
| A processor with SLAT | Microsoft notes that very old processors, such as the Intel Core 2 Duo, cannot run WSL 2 even with the right Windows features installed. |
| An administrator account | The install command changes Windows features, so the PowerShell window must run as administrator. |
| Space on the system drive | WSL runs only from the system drive (usually C:). |
Behind the scenes, WSL 2 relies on two optional Windows components: Virtual Machine Platform (a subset of Hyper-V) and Windows Subsystem for Linux. You do not need the full Hyper-V feature, which is why Home edition works. The wsl --install command takes care of the features WSL needs, so most people never open the Windows features list.
Turn On WSL 2 With One Command
This is the route Microsoft recommends for Windows 11, and it works on a PC where WSL has never been installed.
- Click Start, type PowerShell, right-click PowerShell in the results and choose Run as administrator. Click Yes in the User Account Control prompt to open an elevated PowerShell window.
- Type
wsl --installand press Enter. Windows turns on the features WSL needs and installs the Ubuntu distribution, showing its progress in the window. - Restart the PC when the command finishes. The features it enabled do not take effect until Windows reboots.
- Open Ubuntu from the Start menu after you sign back in. The first launch shows a console window while files decompress, which can take a minute or two. Later launches start in about a second.
- Type a Linux username and press Enter, then type a password twice. Nothing appears on screen while you type the password, which is normal in Linux. This account is separate from your Windows account, and the password is the one Linux asks for when you run
sudocommands.

When you see a prompt that ends in $, Ubuntu is running on WSL 2. Leave that window open for the check in the next section.
Two common surprises at step 2:
- The command prints a long help text instead of installing. That means WSL is already installed. Run
wsl --list --onlineto see the available distros, thenwsl --install -d Ubuntu(or another name from the list) to add one. - The download stalls at 0.0%. Microsoft’s fix is to download the distro from the web instead of the Store:
wsl --install --web-download -d Ubuntu.
Confirm That WSL 2 Is Working
Open PowerShell (administrator rights are not needed for this) and run:
wsl --list --verbose
The short form is wsl -l -v. You get a small table with three columns: NAME, STATE and VERSION. A 2 in the VERSION column means that distro runs on WSL 2. An asterisk next to a name marks your default distro, which is the one that opens when you type wsl on its own.
Two more commands help when you need details for a forum post or a tool’s requirements page:
wsl --statusshows the default distribution, the default version for new installs and the kernel version.wsl --versionshows the version numbers of WSL and its components. Older built-in versions of WSL may not support it;wsl --updatemoves you to the current Microsoft Store version.
If you are setting up WSL for Docker, its WSL 2 backend needs this check to show version 2 first. The Docker Desktop install walkthrough picks up from here if that is why you are setting up WSL.
Make WSL 2 the Default and Convert WSL 1 Distros
If you set up WSL some time ago, some distros may still run on WSL 1. Check with wsl -l -v first. Any line with a 1 in the VERSION column can be converted.
- Run
wsl --set-default-version 2in PowerShell. From now on, every new distro you install uses WSL 2. Existing distros do not change. - Back up anything important inside the distro you are about to convert. Microsoft warns that a conversion can take a long time and can fail on large distros.
- Run
wsl --set-version Ubuntu 2, replacing Ubuntu with the exact name shown in the NAME column. Wait for PowerShell to return to its prompt before closing the window. - Run
wsl -l -vagain. The VERSION column for that distro now shows 2.

WSL 1 and WSL 2 distros can run side by side, and you can move a distro in either direction at any time with the same command (wsl --set-version Ubuntu 1 takes Ubuntu back to WSL 1).
If PowerShell answers wsl --set-version with “Invalid command line option”, the Windows Subsystem for Linux feature itself is not turned on. Use the manual method below, then try again.
Manual Method: Turn On the Windows Features Yourself
Use this route when wsl --install fails, when an organization blocks the command, or when a Windows update has switched the WSL feature off (Microsoft lists error 0x80040154 for that case).
- Click Start, type Windows features and open Turn Windows features on or off. The Windows Features window opens with a list of checkboxes. (In Control Panel, the same link is under Programs and Features.)
- Check Virtual Machine Platform.
- Check Windows Subsystem for Linux.
- Click OK. Windows installs the components and asks you to restart.
- Restart the PC.
- Open PowerShell as administrator and run
wsl --updateto install the current WSL package with its Linux kernel. - Run
wsl --set-default-version 2. - Install a distro with
wsl --install -d Ubuntu, or open the Microsoft Store, search for the distro you want (Ubuntu, Debian, Kali Linux, openSUSE and others are listed), select Get, and then open it from Start to create your Linux user.

If you prefer commands, the same two features can be turned on from an administrator PowerShell window with Microsoft’s DISM commands, followed by a restart:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Older tutorials tell you to download a separate “WSL 2 Linux kernel update package”. Microsoft still offers it on its manual install page for older setups, but on Windows 11 the Microsoft Store version of WSL, installed by wsl --install or wsl --update, is the one that gets updates more often.
Choosing a Different Distro
Ubuntu is the default, but it is only one option.
wsl --list --online(short formwsl -l -o) lists every distro you can install with the command line.wsl --install -d Debianinstalls a specific one. Use the name from the list exactly as written.wsl --set-default Debianmakes it the distro that opens when you typewsl.wsl --distribution Debianopens a distro once without changing the default.
Each distro has its own files, users and installed software. Installing a second one does not affect the first.
When WSL 2 Will Not Start: Errors and Fixes
These are the installation problems Microsoft documents, with the fix it gives for each.
| Message or code | What it means | What to do |
|---|---|---|
| 0x80370102, “The virtual machine could not be started because a required feature is not installed” | Virtualization is unavailable to Windows | Turn on Virtual Machine Platform, restart, and make sure virtualization is enabled in UEFI/BIOS |
| 0x8007019e, “WslRegisterDistribution failed” | The Windows Subsystem for Linux feature is off | Turn it on in Turn Windows features on or off, then restart |
| 0x80070003 | The distro is not on the system drive | In Settings > System > Storage > Advanced storage settings > Where new content is saved, set new apps to save to C:, then reinstall the distro |
| 0x80040154 after a Windows update | An update turned the WSL feature off | Turn the feature back on with the manual method |
| 0x80040306 | The old console mode is on | In Command Prompt, right-click the title bar, open Properties and clear Use legacy console |
| 0x8000FFFF (unexpected failure) | A broken or outdated WSL install | Run wsl --update, then wsl --shutdown, and repair Windows with SFC /SCANNOW and DISM /Online /Cleanup-Image /RestoreHealth in an administrator window |
| “WSL 2 requires an update to its kernel component” | The kernel is missing or out of date | Run wsl --update, or install the kernel package from Microsoft’s manual install page |
Turning on virtualization in UEFI/BIOS. If 0x80370102 remains after Virtual Machine Platform is on, the processor feature is probably off in firmware. Microsoft’s route from Windows 11 is Settings > System > Recovery, then Restart now next to Advanced startup, then Troubleshoot > Advanced options > UEFI Firmware Settings > Restart. The setting usually sits under a CPU or Advanced menu and is often called Intel Virtualization Technology (VT-x) or AMD-V, but every maker names it differently. Change only that one setting and save. The guide to opening BIOS in Windows 11 covers the startup keys and what to do if the UEFI option is missing, and there is a separate walkthrough on enabling virtualization in Windows 11 for the firmware side.
The hypervisor is switched off at boot. Microsoft suggests checking with bcdedit /enum | findstr -i hypervisorlaunchtype in an administrator PowerShell window. If it says Off, run bcdedit /set hypervisorlaunchtype Auto and restart.
Other virtual machine software. Microsoft says WSL 2 works alongside VMware 15.5.5 or later and VirtualBox 6 or later; older versions need to be updated or turned off. If Windows 11 itself runs inside a Hyper-V virtual machine, the host must expose nested virtualization to it.
No internet inside Linux. Some third-party firewalls block WSL’s network traffic. Check your security software’s settings before reinstalling anything, and leave the Windows Internet Connection Sharing service at its default, because WSL 2 needs it.
If your error is not listed, Microsoft’s WSL troubleshooting page has the full list.
Using WSL 2 Day to Day
A few habits make WSL 2 faster and less confusing:
- Keep Linux projects in the Linux file system. Store them under your Linux home folder (for example
/home/yourname/project), not under/mnt/c/.... Microsoft notes that WSL 2 is much faster than WSL 1 for file work inside Linux but slowest when it reaches across into Windows drives. - Reach Windows files from Linux through
/mnt/c, where C: is mounted.C:\Usersappears as/mnt/c/Users. - Open Linux files in File Explorer by typing
explorer.exe .(the final period matters) in the Linux terminal, or by typing\\wsl$in File Explorer’s address bar to see every distro. - Run Linux commands from PowerShell by putting
wslin front, as inwsl ls -la. - Edit code in Windows with Visual Studio Code and its WSL extension; the article on installing Visual Studio Code in Windows 11 covers the editor itself.
- Keep Linux packages current with
sudo apt update && sudo apt upgradeinside Ubuntu or Debian. This updates the distro’s software;wsl --updateupdates WSL itself. The two are separate.
WSL 2 gives its virtual machine up to half of the PC’s memory and all of its logical processors by default. To change that, Microsoft recommends the Windows Subsystem for Linux Settings app in the Start menu, or a text file named .wslconfig in your Windows user folder with lines such as memory=4GB and processors=2 under a [wsl2] heading. Run wsl --shutdown afterward so the new limits take effect the next time a distro starts.

Undo or Remove WSL 2
- Go back to WSL 1 for one distro:
wsl --set-version Ubuntu 1, using the distro’s name fromwsl -l -v. Its files come with it. - Stop everything that is running:
wsl --shutdowncloses all distros and the WSL 2 virtual machine. Nothing is deleted. - Remove a distro completely:
wsl --unregister Ubuntu(again with the distro’s own name). This permanently deletes everything inside that distro (files, settings and installed software), so copy out what you need first, or make a backup withwsl --export Ubuntu D:\ubuntu-backup.tarthatwsl --importcan restore later. - Turn the features off: clear Windows Subsystem for Linux and Virtual Machine Platform in Turn Windows features on or off, then restart.
WSL 2 Questions People Ask
Is WSL 2 the same thing as Hyper-V?
No. WSL 2 uses a subset of the Hyper-V technology through the Virtual Machine Platform feature, which is available on every desktop edition, including Home. You do not have to turn on the full Hyper-V feature or create a virtual machine yourself.
When is WSL 1 still the better choice?
Microsoft lists a few cases: projects that must stay on the Windows file system and are worked on heavily from Linux, tools that use the same files from both systems at once, hardware that needs a serial port, PCs where WSL 2’s memory use is a problem (it holds cached memory until the instance shuts down), and setups that need the distro to have its own address on your local network. WSL 2 uses network address translation, so its IP address changes when it restarts.
Does WSL 2 update through Windows Update?
Not anymore. WSL is serviced through the Microsoft Store, and wsl --update installs the latest release. Software inside each distro is updated separately with that distro’s package manager.
Can WSL 2 run Linux apps with a window?
Yes. Microsoft states WSL can run Linux GUI apps alongside your Windows apps. Install them inside the distro the usual way, for example with sudo apt install, then start them from the Linux terminal.
How do I check that my PC runs Windows 11 and which build?
Open Settings > System > About and look at OS build, or press Windows + R, type winver and press Enter. The article on checking which Windows version you are using explains the version and edition fields.
For every install option and switch mentioned here, Microsoft’s Install WSL and basic commands for WSL pages are the reference to keep open while you work.