How to Install Kali Linux on WSL (Windows Subsystem for Linux) — 2026 Guide
Independent review · Reader-supported, we may earn a commission
If you're on Windows and don't want to dual-boot or spin up a full VM just to run a few Kali tools, WSL is the fastest path in. Kali Linux runs natively inside Windows Subsystem for Linux, launches in seconds, and even supports GUI tools like Burp Suite or Wireshark through WSLg — no separate virtual machine window, no extra RAM overhead from a full hypervisor.
This guide covers installing Kali on WSL2 from scratch, getting GUI apps working, and fixing the handful of issues people actually run into.
⚠️ As with any pentesting toolset, only use Kali's tools against systems you own or have explicit written permission to test.
WSL vs a Full VM — Which Should You Use? WSL is the right choice if you want quick access to command-line tools (Nmap, John the Ripper, sqlmap, etc.) without leaving your Windows desktop, and you're comfortable that WSL shares your host's network stack rather than being fully network-isolated like a VirtualBox host-only setup.
A full VM (see our pentesting lab guide) is still the better choice when you need real network isolation — for example, attacking intentionally vulnerable target VMs like Metasploitable or DVWA. For general tool use, quick lookups, and scripting, WSL is faster and lighter.
Requirements Windows 10 version 2004+ (Build 19041+) or Windows 11
Virtualization enabled in BIOS/UEFI (Intel VT-x / AMD-V)
At least 4 GB RAM free (8 GB+ recommended if running GUI tools)
Administrator access on your Windows machine
Step 1: Enable WSL2 Open PowerShell as Administrator and run:
powershell
wsl --install This single command enables the required Windows features (Virtual Machine Platform and Windows Subsystem for Linux), downloads the latest Linux kernel, and sets WSL2 as your default version. Restart your PC when prompted.
If WSL is already installed and you just need to make sure you're on version 2:
powershell
wsl --set-default-version 2 You can confirm your WSL version afterward with:
powershell
wsl -l -v Step 2: Install Kali Linux You have two options — the Microsoft Store (easiest) or the command line.
Option A: Microsoft Store Open the Microsoft Store app.
Search for "Kali Linux".
Click Get / Install.
Once installed, launch it from the Start menu.
Option B: Command line From an Administrator PowerShell window:
powershell
wsl --install -d kali-linux This downloads and registers the Kali distribution directly, without going through the Store UI.
Step 3: First Launch and User Setup Launch Kali from the Start menu (or run wsl -d kali-linux in a terminal).
On first run, you'll be prompted to create a UNIX username and password. This is separate from your Windows login and only exists inside the Kali environment.
Update the system immediately:
sudo apt update && sudo apt full-upgrade -y Step 4: Install the Full Tool Set The Store/CLI install ships a minimal base — you'll want the full Kali toolset for actual pentesting work:
sudo apt install -y kali-linux-large This pulls in Nmap, Metasploit Framework, Burp Suite, John the Ripper, Hydra, sqlmap, and most of the tools Kali is known for. It's a large download (several GB), so this step takes a while on slower connections.
If you only need a specific category rather than everything, Kali also offers smaller metapackages like kali-linux-headless (no GUI dependencies) or kali-tools-web (web app testing tools only) — worth using if disk space or download time is a concern.
Step 5: Set Up GUI Apps with WSLg Recent WSL versions include WSLg, which lets Linux GUI apps open as native Windows windows — no separate X server or VNC setup needed.
Make sure WSL itself is up to date from PowerShell:
powershell
wsl --update Inside Kali, install a GUI tool to test it, e.g. Wireshark:
sudo apt install -y wireshark Launch it directly from the Kali shell:
wireshark It should open as a regular window on your Windows desktop. If GUI apps fail to launch, restarting WSL usually fixes it:
powershell
wsl --shutdown Then relaunch Kali from the Start menu.
Common Issues and Fixes "WSL 2 requires an update to its kernel component" Run wsl --update from an Administrator PowerShell window, or download the kernel update package directly from Microsoft if you're on an older Windows build.
Virtualization not enabled error Reboot into your BIOS/UEFI and enable Intel VT-x or AMD-V — the same setting needed for VirtualBox or VMware.
GUI apps won't open (blank window or crash) Update your GPU drivers on Windows first — WSLg relies on them for rendering. Then run wsl --update and wsl --shutdown, and relaunch.
Kali feels slow or unresponsive Check where your files live. Working inside the Linux filesystem (~/) is significantly faster than accessing files under /mnt/c/, since crossing the Windows/Linux filesystem boundary adds overhead.
Networking tools behave differently than on a real VM WSL2 uses a virtualized network adapter shared with Windows, not a separate host-only network like a VirtualBox lab. Tools that expect to see raw network interfaces (like some WiFi-auditing tools) often don't work correctly under WSL — that's one of the main reasons a full VM lab is still worth having alongside WSL.
Frequently Asked Questions Is Kali Linux on WSL as capable as a full install? For most command-line tools, yes. GUI apps also work well via WSLg. The main gap is anything requiring raw hardware access — WiFi adapter monitor mode, USB device passthrough for some tools, and true network isolation for lab work.
Do I need Hyper-V for WSL2? No — WSL2 uses a lightweight utility VM managed automatically by Windows. You don't need to enable Hyper-V separately or manage VMs the way you would in VirtualBox.
Can I run Kali on WSL and VirtualBox at the same time? Yes, though running WSL2 and VirtualBox simultaneously can occasionally conflict, since both use virtualization extensions. Recent versions of VirtualBox support running alongside WSL2/Hyper-V without issues, but if you hit VM boot errors, check that both are updated to their latest versions.
How do I update Kali on WSL later? Same as any Debian-based system: sudo apt update && sudo apt full-upgrade -y, run periodically.
Want real network isolation for testing against vulnerable targets? Check out our guide on building a full pentesting lab at home — WSL is great for tools, but a proper lab is still the right setup for exploitation practice.
You might like these
Linear
The issue tracker developers actually enjoy.
Cloudflare Workers
Deploy serverless code to 300+ cities instantly.
Keychron Q1 Pro
Wireless 75% aluminum mechanical keyboard.