Install WSL2 and Kali Linux on Windows 11
Use at your own risk. All guides and scripts are provided for educational purposes only. Always review and understand any code before running it — especially with administrative privileges. Test in a safe environment before using in production. Your system, your responsibility.
Install Kali Linux via WSL2 in Windows 11 as part of your local pentest lab. This setup lets you run tools like Nmap, Nikto, ffuf, curl, and more — without needing a full virtual machine.
With WSL2 and Kali you get:
- Fast setup directly inside Windows
- Seamless access to Linux-based pentesting tools
- Native integration with Docker, Ollama, and other lab components
- Low resource usage — perfect for laptops or VMs
Video Guide
Step 1 – Enable WSL and Set Version 2
Open PowerShell as Administrator and run:
wsl --installMake sure WSL2 is set as the default version:
wsl --set-default-version 2You may need to reboot after this step.
Step 2 – Install Kali Linux
Option A – Microsoft Store:
- Open the Microsoft Store
- Search for “Kali Linux”
- Click Install
Option B – Terminal:
wsl --install -d kali-linuxStep 3 – Launch Kali for the First Time
wsl -d kali-linuxYou will be prompted to create a Linux username and password.
Step 4 – Verify the Installation
Inside Kali, run:
uname -aExpected output:
Linux kali 5.10.16.3-microsoft-standard-WSL2 ...Step 5 – Update Kali
Before installing any tools, update the package lists and upgrade installed packages:
sudo apt update && sudo apt upgrade -yYour WSL2 Kali Linux environment is now installed, updated, and ready to use as a local pentesting foundation.
Related Links
- Kali Linux WSL Documentation — official Kali Linux WSL guide
- Microsoft WSL Documentation — official Microsoft WSL docs