How to Load WSL (Windows Subsystem for Linux): A Complete Setup Guide

Windows Subsystem for Linux — better known as WSL — lets you run a genuine Linux environment directly inside Windows without dual-booting or setting up a virtual machine. Whether you're loading it for the first time or troubleshooting a setup that isn't launching correctly, the process has several moving parts worth understanding clearly.

What WSL Actually Is (and Why It Matters)

WSL is a compatibility layer built into Windows that translates Linux system calls into something Windows can execute. WSL 2, the current default version, goes further — it runs an actual Linux kernel inside a lightweight virtual machine, giving you near-native Linux performance and full system call compatibility.

This means you can run Bash scripts, use Linux command-line tools like grep, curl, and ssh, install packages via apt, and even run Linux-based development environments — all from within Windows.

Prerequisites Before You Load WSL

Before running any commands, confirm your setup meets the baseline requirements:

  • Windows 10 version 2004 or later (Build 19041+), or Windows 11 (any version)
  • A 64-bit processor with virtualization enabled in BIOS/UEFI
  • At least 4GB of RAM (8GB or more recommended for WSL 2)
  • Administrator access on your Windows account

You can check your Windows version by pressing Win + R, typing winver, and hitting Enter.

How to Install and Load WSL for the First Time

The One-Command Method (Recommended)

Microsoft simplified WSL installation significantly. Open PowerShell or Windows Terminal as Administrator and run:

wsl --install 

This single command:

  • Enables the required Windows features (Virtual Machine Platform, Windows Subsystem for Linux)
  • Downloads and installs the latest Linux kernel
  • Sets WSL 2 as the default version
  • Installs Ubuntu as the default Linux distribution

After installation completes, restart your computer. This step is mandatory — WSL won't load properly without it.

After Restarting

Once your machine reboots, Ubuntu (or your chosen distro) will launch automatically to complete setup. You'll be prompted to:

  1. Create a Linux username (doesn't need to match your Windows username)
  2. Set a Linux password

After that, you're inside a live Linux terminal. 🐧

How to Load WSL After It's Already Installed

Once WSL is set up, there are several ways to open it:

MethodHow
Start MenuSearch "Ubuntu" (or your distro name) and click it
Windows TerminalOpen Terminal → click the dropdown → select your distro
Run dialogPress Win + R, type wsl, press Enter
PowerShell/CMDType wsl and press Enter
File ExplorerRight-click a folder → "Open Linux shell here" (if enabled)

The fastest everyday method for most users is typing wsl directly into PowerShell or the Run dialog.

Installing a Specific Linux Distribution

If you don't want Ubuntu, you can choose a different distro. First, see what's available:

wsl --list --online 

Then install your preferred option:

wsl --install -d Debian 

Common available distributions include Ubuntu, Debian, Kali Linux, openSUSE, and Fedora Remix, among others. Each installs as a separate environment with its own filesystem.

Checking Which Version of WSL Is Running

To confirm whether you're running WSL 1 or WSL 2:

wsl --list --verbose 

This shows all installed distros, their running state, and their WSL version. WSL 2 is strongly preferred for most use cases because it uses a real Linux kernel and supports significantly more software.

To upgrade a specific distro from WSL 1 to WSL 2:

wsl --set-version Ubuntu 2 

Common Reasons WSL Fails to Load

If WSL doesn't open or throws an error, a few variables typically explain it:

  • Virtualization is disabled in BIOS — WSL 2 requires hardware virtualization (Intel VT-x or AMD-V). This setting is found in your motherboard firmware, and its location varies by manufacturer.
  • Required Windows features aren't enabled — The "Virtual Machine Platform" feature must be active. You can enable it manually via Windows Features in Control Panel.
  • Outdated Linux kernel — Run wsl --update in PowerShell to pull the latest kernel package.
  • Windows version is too old — Versions before Build 19041 require a more manual setup process that Microsoft no longer recommends.
  • Hyper-V conflicts — Some third-party virtualization tools (older versions of VirtualBox, for example) can interfere with WSL 2's hypervisor.

WSL 1 vs WSL 2: What Changes the Experience

FactorWSL 1WSL 2
Linux kernelTranslation layer onlyReal Linux kernel
File system performanceFaster on Windows filesFaster on Linux files
System call compatibilityPartialFull
Docker supportLimitedFull (via Docker Desktop)
Network behaviorShares Windows IPHas its own virtual IP

The version that works best depends heavily on what you're doing. WSL 2 is generally superior for development workflows, running containers, and Linux-native tools. WSL 1 occasionally has an edge for workflows that interact heavily with Windows-mounted file paths.

How Your Setup Affects What "Loading WSL" Looks Like

The experience of loading and using WSL varies considerably based on a few key factors:

  • Hardware specs — Machines with more RAM handle WSL 2's virtualization more comfortably, especially when running memory-intensive Linux processes alongside Windows applications.
  • Windows edition — Windows 11 has tighter WSL integration, including GUI app support (WSLg) built in by default. On Windows 10, some features require additional configuration.
  • Corporate or managed devices — IT policies sometimes restrict virtualization features or block the Microsoft Store, which can affect how (or whether) certain distros install.
  • Existing virtualization software — If you already run tools like VMware or VirtualBox, their interaction with WSL 2 depends heavily on version compatibility and settings. 🖥️

The mechanics of loading WSL are largely the same across systems. What differs is how smoothly it integrates into your specific environment — and that depends on factors ranging from your CPU's virtualization support to how your Windows installation is configured.