If you want to learn Linux, cybersecurity, penetration testing, networking, or security tools without removing Windows 11, you can install Kali Linux on Windows 11 using Windows Subsystem for Linux (WSL).
WSL lets you run a Linux distribution directly inside Windows without setting up a traditional dual-boot configuration or a separate virtual machine. Microsoft officially supports WSL on Windows 11, and Kali Linux provides an official WSL installation method. (Microsoft Learn)
In this guide, we’ll show you how to install Kali Linux on Windows 11 from start to finish. We’ll cover WSL 2, the Kali installation command, initial setup, updating Kali, basic commands, GUI support, troubleshooting, and frequently asked questions.
Security note: Kali Linux is designed for security testing and penetration testing. Only test systems, networks, accounts, and devices that you own or have explicit permission to assess.
What Is Kali Linux?
Kali Linux is a Debian-based Linux distribution developed by Offensive Security and designed primarily for:
- Cybersecurity training
- Penetration testing
- Digital forensics
- Security research
- Network testing
- Vulnerability assessment
- Linux learning
- Authorized security auditing
Kali includes many security-related tools, but you don’t need to install Kali just because you’re interested in Linux. If your main goal is programming or general Linux use, another distribution may be more appropriate.
What Is WSL on Windows 11?
Windows Subsystem for Linux (WSL) allows you to run Linux distributions alongside Windows.
Instead of replacing Windows 11, WSL lets you access Linux from Windows.
Microsoft describes WSL as a way to run Linux distributions and Linux command-line tools directly on Windows without the overhead of a traditional virtual machine or dual-boot setup. (Microsoft Learn)
With WSL, you can have:
Windows 11 + Kali Linux
on the same computer.
Why Install Kali Linux Using WSL?
There are several advantages to using Kali through WSL.
1. You Don’t Need to Dual Boot
You can keep Windows 11 as your primary operating system.
2. Easy Installation
Modern WSL versions can be installed with a simple command.
3. Access Linux Commands From Windows
You can use a Kali terminal alongside Windows applications.
4. Easy File Sharing
WSL provides integration between Windows and Linux filesystems.
5. Useful for Learning
It’s a convenient way to learn Linux and security tools without installing Kali as your main operating system.
Kali Linux on WSL vs. Virtual Machine vs. Dual Boot
There are several ways to run Kali Linux.
| Method | Windows Stays Installed | Performance | Difficulty | Best For |
|---|---|---|---|---|
| WSL 2 | Yes | Very good | Easy | Learning and command-line work |
| Virtual machine | Yes | Good | Moderate | Isolated full environments |
| Dual boot | Yes | Native | Advanced | Full hardware access |
| Dedicated installation | No | Native | Advanced | Kali as primary OS |
For beginners who want to keep Windows 11, WSL 2 is one of the simplest choices.
What Do You Need to Install Kali Linux on Windows 11?
Before starting, make sure:
- You’re running Windows 11.
- Windows is reasonably up to date.
- You have an internet connection.
- You have enough free storage.
- You can run PowerShell or Windows Terminal as administrator.
- Hardware virtualization is available if required by your configuration.
Microsoft’s current WSL installation method supports Windows 11. (Microsoft Learn)
How to Check Your Windows 11 Version
Before installing Kali, you can check your Windows version.
Step 1: Press Windows + R
Press:
Windows + R
Step 2: Type winver
Enter:
winver
Press:
Enter
A window will display your Windows version and OS build.
You can also check for Windows updates through:
Settings → Windows Update
How to Install Kali Linux on Windows 11 Using WSL
The simplest current method is to use WSL’s installation command.
Kali’s official documentation provides:
wsl --install kali-linux
as a quick way to install Kali through WSL. (Kali Linux)
Let’s go through the process.
Step 1: Open Windows Terminal as Administrator
Open the Windows Start menu.
Search for:
Windows Terminal
Right-click it and select:
Run as administrator
If Windows displays a User Account Control prompt, select Yes.
You can also use PowerShell as administrator.
Step 2: Install Kali Linux With WSL
Enter the following command:
wsl --install kali-linux
Press:
Enter
This command tells WSL to install the Kali Linux distribution. Kali’s documentation lists this as a modern quick installation method. (Kali Linux)
Step 3: Wait for the Installation
Windows will install the components needed for WSL and download Kali Linux.
Depending on your Windows configuration, you may be asked to restart the computer.
If Windows asks you to restart, save your work and restart.
Microsoft’s WSL installation process can enable the required WSL and virtualization components and may require a restart. (Microsoft Learn)
Step 4: Launch Kali Linux
After installation, open the Start menu.
Search for:
Kali Linux
Select it.
The first launch can take some time because WSL needs to initialize the distribution.
Step 5: Create Your Kali Linux Username
The first time Kali starts, you’ll be asked to create a Linux user.
For example:
Enter new UNIX username:
Enter a username.
For example:
kaliuser
The username does not have to match your Windows username. Microsoft notes that WSL distributions require you to create a Linux user account and password during initial setup. (Microsoft Learn)
Step 6: Create a Password
Kali will ask you to enter a password.
Type your password and press:
Enter
You won’t see characters appearing while typing the password. This is normal Linux terminal behavior.
You’ll then be asked to enter it again.
Step 7: Wait for Initial Setup to Finish
Once the account is created, you’ll arrive at the Kali Linux terminal.
You should see a prompt similar to:
kaliuser@computer:~$
Congratulations — Kali Linux is now running on Windows 11 through WSL.
How to Check That Kali Linux Is Installed Correctly
Open Kali Linux and run:
uname -a
You can also check the Kali release information with:
cat /etc/os-release
These commands display information about your Linux environment.
How to Check Whether Kali Is Running on WSL 2
Open PowerShell or Windows Terminal and run:
wsl --list --verbose
You should see your installed distributions and their WSL versions.
For example:
NAME STATE VERSION
kali-linux Running 2
Microsoft documents wsl --list --verbose as the command for checking installed distributions and their WSL version. (Microsoft Learn)
How to Set Kali Linux to WSL 2
If Kali is using WSL 1 and you want WSL 2, first check the distribution name:
wsl --list --verbose
Then run:
wsl --set-version kali-linux 2
After conversion finishes, check again:
wsl --list --verbose
Kali’s documentation identifies WSL 2 as the preferred option for Kali on WSL. (Kali Linux)
How to Update WSL on Windows 11
Keeping WSL updated can help you access newer features and fixes.
Open Windows Terminal as administrator and run:
wsl --update
You can check your WSL installation with:
wsl --version
If you need Kali-specific WSL features, follow the current Kali documentation for compatibility requirements.
How to Update Kali Linux After Installation
Once you’re inside Kali Linux, update its package information:
sudo apt update
Then upgrade installed packages:
sudo apt full-upgrade
When prompted, review the changes and confirm if appropriate.
It’s a good idea to keep your Kali installation updated before installing additional packages.
How to Install Kali Linux Tools
Kali provides many security tools, but you don’t necessarily need every available package.
You can search for packages with:
apt search package-name
For a specific package, you can install it with:
sudo apt install package-name
For example, if you’re learning Linux networking, you might install an appropriate networking utility from the Kali repositories.
Only use security-testing tools against systems you own or are authorized to test.
How to Run Kali Linux From Windows Terminal
After installing Kali, you don’t have to open the Start menu every time.
You can run Kali from PowerShell or Windows Terminal with:
wsl -d kali-linux
This launches the Kali distribution.
If Kali is your default WSL distribution, you can simply run:
wsl
Microsoft documents wsl --distribution <DistroName> for launching a specific installed distribution. (Microsoft Learn)
How to Set Kali as Your Default WSL Distribution
If you frequently use Kali, you can make it the default distribution.
Run:
wsl --set-default kali-linux
After that, running:
wsl
will launch Kali.
How to Access Windows Files From Kali
WSL automatically integrates Windows drives into Linux.
Your Windows C: drive is generally available under:
/mnt/c
For example, to view your Windows user directory:
cd /mnt/c/Users
You can list files with:
ls
This makes it convenient to work with files across Windows and Kali.
How to Access Kali Files From Windows
You can also access WSL files from Windows.
In File Explorer, enter:
\\wsl$
You can then browse available WSL distributions.
You should be careful when modifying Linux distribution files directly from Windows, especially system files.
For better performance and compatibility, Microsoft recommends understanding where files are stored and how WSL accesses them. (Microsoft Learn)
Can You Run Kali Linux With a GUI on Windows 11?
Yes.
There are multiple ways to use Linux graphical applications with WSL.
Windows 11 supports Linux GUI applications through WSL, providing integration with Windows applications. (Microsoft Learn)
Kali also provides Win-KeX, which gives Kali WSL users a graphical desktop experience. Kali’s documentation describes Window, Seamless, and Enhanced Session modes. (Kali Linux)
How to Install the Kali GUI With Win-KeX
If you want a Kali desktop environment rather than just the terminal, Win-KeX is an official Kali option for WSL.
Step 1: Open Kali
Launch Kali Linux.
Step 2: Update Packages
Run:
sudo apt update
Step 3: Install Win-KeX
Run:
sudo apt install -y kali-win-kex
Kali’s official Win-KeX documentation uses this package installation method. (Kali Linux)
Step 4: Start Win-KeX
For Window Mode, run:
kex --win -s
This starts the Kali graphical environment in a window.
Kali also documents launching Win-KeX from Windows with:
wsl -d kali-linux kex --win -s
Do You Need Win-KeX to Use Kali?
No.
If you only need the Kali terminal and command-line tools, you don’t need Win-KeX.
WSL is particularly convenient for command-line Linux applications.
If you need a full graphical Kali desktop experience, Win-KeX can be useful.
How to Uninstall Kali Linux From Windows 11
If you decide you no longer need Kali, you can remove the distribution.
First check its exact name:
wsl --list
Then unregister it:
wsl --unregister kali-linux
Warning: Unregistering a WSL distribution deletes that distribution and its stored Linux files. Make sure you’ve backed up anything important before using the command.
How to Fix “Kali Linux Is Not Installing”
If the installation fails, try the following.
1. Update Windows
Go to:
Settings → Windows Update
Install available updates and restart the PC.
2. Update WSL
Open administrator PowerShell and run:
wsl --update
3. Check Installed Distributions
Run:
wsl --list --online
This shows distributions available through WSL. Microsoft documents this command for viewing available distributions. (Microsoft Learn)
4. Try the Kali Installation Again
Run:
wsl --install kali-linux
5. Restart Windows
A restart can be necessary after enabling virtualization-related Windows features.
What If WSL Says the Virtual Machine Platform Feature Is Missing?
WSL 2 relies on virtualization features.
If necessary, open PowerShell as administrator and run:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Restart Windows afterward.
Microsoft documents the Virtual Machine Platform feature as part of manual WSL 2 setup. (Microsoft Learn)
What If Hardware Virtualization Is Disabled?
If WSL 2 reports a virtualization-related error, check your PC’s firmware settings.
Depending on your processor, the setting may be called:
- Intel Virtualization Technology
- Intel VT-x
- AMD-V
- SVM Mode
The exact name and location depend on your computer’s manufacturer and motherboard.
Only change firmware settings if you understand what you’re changing.
Kali Linux WSL Security Tips
Kali is a powerful security-testing environment, so use it responsibly.
Use Kali Only on Authorized Systems
Never scan, attack, exploit, or test systems without permission.
Keep Kali Updated
Run:
sudo apt update
sudo apt full-upgrade
regularly.
Protect Your Linux Account
Use a strong password for your Kali user.
Be Careful With Root
Avoid running everything as root unnecessarily.
Review Commands Before Running Them
Don’t copy commands from random websites without understanding what they do.
What Can You Do With Kali Linux on Windows 11?
After installation, you can use Kali for legitimate learning and security work such as:
- Learning Linux commands
- Practicing Bash
- Studying networking
- Building security labs
- Learning cybersecurity concepts
- Testing your own applications
- Analyzing authorized systems
- Learning penetration-testing methodology
- Practicing in intentionally vulnerable lab environments
For beginners, setting up a private cybersecurity lab is one of the safest ways to learn.
Kali Linux WSL Limitations
Kali on WSL isn’t identical to running Kali directly on physical hardware.
Depending on your requirements, some hardware-dependent security functions may not work the same way as they do with a native Kali installation.
If you need direct hardware access, specialized wireless testing, or a completely isolated security environment, a dedicated virtual machine or native installation may be more appropriate.
Frequently Asked Questions
1. Can I install Kali Linux on Windows 11?
Yes. Kali Linux officially supports installation through Windows Subsystem for Linux, and Windows 11 is supported by WSL. (Microsoft Learn)
2. What is the easiest way to install Kali Linux on Windows 11?
Open administrator PowerShell or Windows Terminal and run:
wsl --install kali-linux
Then restart if Windows requests it and complete the Kali username and password setup. (Kali Linux)
3. Is Kali Linux free on Windows 11?
Kali Linux itself is free and can be installed through supported WSL distribution channels.
4. Does installing Kali Linux remove Windows 11?
No. When you install Kali through WSL, Windows 11 remains your primary operating system.
5. Is Kali Linux on WSL a virtual machine?
WSL 2 uses a lightweight virtualized architecture, but it is not the same as setting up a traditional virtual machine in software such as VMware or VirtualBox.
6. Should I use WSL 1 or WSL 2 for Kali Linux?
WSL 2 is generally the preferred option for modern Kali installations. Kali’s documentation specifically recommends WSL 2 for its WSL setup. (Kali Linux)
7. Can I install the Kali Linux GUI on Windows 11?
Yes. Kali provides Win-KeX for a graphical Kali desktop experience through WSL 2. (Kali Linux)
8. Do I need a virtual machine to run Kali on Windows 11?
No. WSL allows you to run Kali without setting up a traditional virtual machine.
9. Can Kali Linux access Windows files?
Yes. Windows drives are generally mounted under /mnt/ in WSL. For example, the Windows C: drive is normally available at /mnt/c.
10. How do I update Kali Linux?
Open Kali and run:
sudo apt update
sudo apt full-upgrade
11. How do I check my Kali WSL version?
Run:
wsl --list --verbose
The output shows whether Kali is running under WSL 1 or WSL 2. (Microsoft Learn)
12. Can I use Kali Linux tools from Windows Terminal?
Yes. You can launch Kali with:
wsl -d kali-linux
Then use Kali’s Linux command-line environment.
13. Can I make Kali my default Linux distribution?
Yes. Run:
wsl --set-default kali-linux
14. What if Kali Linux won’t start?
First restart Windows, update WSL with wsl --update, check the installed distribution with wsl --list --verbose, and make sure Windows is up to date.
15. Is Kali Linux safe to use on Windows 11?
Kali is legitimate security software, but its tools can be powerful. Use them only on systems you own or have explicit permission to test.
16. Can I uninstall Kali Linux later?
Yes. You can remove the WSL distribution with:
wsl --unregister kali-linux
Remember that unregistering the distribution deletes its Linux files.
17. Do I need a powerful PC to run Kali through WSL?
You don’t need a high-end PC for basic Kali command-line use. However, more demanding workloads, graphical environments, and multiple security tools can require additional CPU, RAM, and storage.
Final Thoughts
Installing Kali Linux on Windows 11 is much easier than setting up a traditional dual-boot system. With Windows Subsystem for Linux, you can keep Windows 11 installed while accessing a Kali Linux environment from Windows.
For most beginners, the quickest route is:
Windows Terminal as Administrator → wsl --install kali-linux → Restart → Launch Kali → Create a Linux username and password
After installation, check your setup with:
wsl --list --verbose
If you want a graphical Kali desktop, you can install Win-KeX after setting up Kali WSL 2.
The most important thing to remember is that Kali Linux is designed for security work. Use its tools responsibly and only perform security testing against systems for which you have explicit authorization.
Key Takeaways
- Kali Linux can run alongside Windows 11 using WSL.
- WSL avoids the need for traditional dual booting.
- The modern installation command is
wsl --install kali-linux. - WSL 2 is the preferred option for Kali.
- You need to create a Linux username and password during initial setup.
wsl --list --verboselets you check the installed WSL version.- Win-KeX can provide a graphical Kali desktop.
- You can access Windows files from Kali through
/mnt/c. - Keep both WSL and Kali updated.
- Back up important Linux files before unregistering or removing Kali.
- Use Kali’s security tools only against systems you own or are explicitly authorized to test.