You can run Kali Linux alongside Windows 11 without replacing Windows or setting up a separate computer. The simplest option for most people is Windows Subsystem for Linux (WSL), which lets you use Kali’s command line and many Linux applications from Windows. This guide walks you through installing Kali with WSL 2, updating it, launching tools, and handling common problems. Use security-testing tools only on systems you own or have clear permission to test.
What You’ll Need
- A Windows 11 PC with an internet connection and several gigabytes of free disk space. Updates and installed tools can use additional space.
- An account with administrator privileges, which you will need to enable and install WSL.
- Hardware virtualization enabled. It is often on by default; if WSL reports that virtualization is unavailable, check your UEFI/BIOS settings and enable Intel VT-x or AMD-V.
- A few minutes for the initial download. Optional Kali tools can take considerably longer to install.
Step-by-Step
- Open an administrator terminal. Right-click the Start button and choose Terminal (Admin) or Windows PowerShell (Admin), then approve the User Account Control prompt. The commands below are Windows commands unless they appear inside the Kali shell. An elevated terminal is needed for setup, but you do not need to run Kali itself as Windows administrator for everyday work.
- Install WSL and Kali. In the administrator terminal, run
wsl --install -d kali-linuxand press Enter. This installs WSL and requests the Kali Linux distribution. If Windows asks you to restart, save your work and restart before continuing. Keep the terminal open until installation finishes; the first download may take a while depending on your connection. The distribution identifier iskali-linux, not justkali. - Check that WSL 2 is being used. WSL 2 runs a real Linux kernel in a lightweight virtualized environment and is the recommended choice for this setup. After installation, open a regular Windows terminal and run
wsl -l -v. Find Kali in the list and look for version2. If it shows version 1, switch it from an administrator terminal withwsl --set-version kali-linux 2. You can also set WSL 2 as the default for future distributions withwsl --set-default-version 2. - Start Kali for the first time. Open Start, search for Kali Linux, and launch it. You can also type
wsl -d kali-linuxin Windows Terminal. The initial setup may take a few minutes. When prompted, create a Linux username and password. These are for the Kali environment and do not have to match your Windows sign-in. The password will not appear as you type it in the terminal; that is normal. Remember it because Kali uses it when you run administrative commands withsudo. - Update Kali’s package information and installed software. At the Kali prompt, run
sudo apt update, enter your Linux password, and then runsudo apt full-upgrade. Read the package summary before confirming the upgrade. This refreshes the available package list and upgrades installed packages; it does not automatically install every Kali tool. Updates may take time and use disk space, so keep the computer connected to power and avoid closing the terminal during the process. - Install only the tools you need. Kali’s command-line environment starts with a useful base, but not every security tool is preinstalled. For example, to install the network utility Nmap, run
sudo apt install nmap, then check it withnmap --version. Substitute a specific package name for the tool you actually need. Large Kali collections can download many packages and consume substantial storage; installing a focused tool is usually more manageable than installing a broad metapackage. - Use Kali from Windows Terminal. You can open Kali from the Start menu, or launch it in a terminal with
wsl -d kali-linux. Once inside, ordinary Linux commands such aspwd,ls, andcdwork as expected. To return to the Windows shell, typeexit. You can open multiple tabs in Windows Terminal and keep a Kali session alongside PowerShell or Command Prompt. - Work with Windows files when appropriate. Windows drives are available inside Kali under
/mnt. For example, your Windows Downloads folder is commonly at/mnt/c/Users/YourWindowsName/Downloads; replace the example name with your actual Windows user folder. You can move there withcdand list files withls. For frequent Linux development, keeping project files in Kali’s home directory, such as/home/yourname, often provides better performance and Linux permissions. Windows can browse WSL files through File Explorer by entering\\wsl$\kali-linuxin its address bar; avoid moving or editing WSL system files directly. - Try Linux graphical applications if you need them. Current Windows 11 WSL installations generally include WSLg support for compatible Linux GUI apps. Install an application from Kali’s repositories, then start it by typing its command in the Kali terminal. For example, after installing a lightweight editor with
sudo apt install mousepad, runmousepad. A graphical application should open as a Windows window. WSLg is for individual apps; it does not automatically provide a complete Kali desktop environment. - Shut down or reopen the environment cleanly. Type
exitto close a Kali shell. To stop all WSL distributions from a Windows terminal, runwsl --shutdown; this is useful after changing WSL settings or when a distribution seems stuck. Start Kali again from the Start menu or withwsl -d kali-linux. Check status or version at any time withwsl -l -v.
Common Mistakes
Expecting Kali to replace Windows or behave like a booted live USB. WSL runs Kali as a Windows-integrated Linux environment. It is excellent for command-line work and many applications, but it does not provide the same hardware access or boot-time behavior as installing Kali on a PC or running it in a full virtual machine. If your course or task requires direct access to wireless hardware, a full VM with suitable USB passthrough or dedicated hardware may be more appropriate.
Using Windows commands at the Kali prompt, or Linux commands in PowerShell. The prompts look different, but it is easy to mix them up. Commands such as apt belong in Kali. Commands such as wsl --list --verbose belong in Windows Terminal or PowerShell. If you get an unfamiliar command error, check which shell is active before changing settings.
Running everything as root. Use the normal Linux account you created and add sudo only to commands that need administrator privileges. Running a whole session as root increases the chance of accidentally changing important files and can create confusing ownership problems in shared folders.
Installing every tool at once. Kali offers large tool collections, but a full collection can take a long time to download, use significant disk space, and add software you will never use. Install tools as you need them and review the package list before confirming large upgrades or installations.
Assuming WSL has unrestricted access to every device. WSL provides a convenient Linux environment, not automatic access to all of a computer’s hardware. Some low-level networking, wireless, USB, and kernel-dependent tasks may require extra configuration or may be better suited to a virtual machine or dedicated Kali installation.
Tips
Keep Windows and WSL updated. Windows Update supplies important platform components, while sudo apt update and sudo apt full-upgrade keep Kali packages current. These are separate update processes, so doing one does not replace the other. Before a major upgrade, save open work and make sure you have enough free disk space.
Use Windows Terminal profiles and tabs to make Kali easier to reach. After installing the distribution, it normally appears as a profile or Start-menu app. You can also set Kali as the starting distribution for a WSL command with wsl --set-default kali-linux; use that only if you want a plain wsl command to open Kali by default.
Keep a short note of the tools and commands you install. If you need to rebuild the environment later, that list makes it easier to restore only what you use. For important work, back up files from Kali’s home directory to a Windows folder or another safe location. A WSL distribution is convenient, but it should not be the only copy of valuable files.
Finally, treat network scanning and other security tests responsibly. Practice in a local lab, a deliberately vulnerable training environment, or a network where you have explicit authorization. Being able to run a tool does not mean you have permission to test a particular website, device, or network.
Troubleshooting
“WSL is not recognized” or the install command fails. Install current Windows updates, restart, and try wsl --install -d kali-linux again from an administrator terminal. If WSL is already installed, run wsl --update in an elevated Windows terminal and restart if requested. If the distribution name is rejected, check the available names with wsl --list --online, then use the Kali identifier shown in the list.
Virtualization or a virtual machine platform error appears. First enable CPU virtualization in UEFI/BIOS settings, then restart Windows. If virtualization is enabled but WSL still reports a platform problem, install pending Windows updates and restart. On some computers, organization policies or another virtualization configuration can affect access; a work or school device may require an administrator to change those settings.
Kali does not appear in Start or will not launch. Check whether it installed with wsl -l -v. If it is listed, try wsl -d kali-linux from Windows Terminal. If it is missing, run the installation command again. If it opens and immediately closes, start it from a terminal so the error remains visible, then use the message to guide the next step rather than repeatedly reinstalling it.
Package installation reports a network or repository error. Confirm that Windows is online, then retry sudo apt update. Check that the system date and time are correct, since an incorrect clock can cause secure connection errors. If a command was interrupted, rerun the update and follow any package manager instructions it gives before trying another installation. Do not delete repository or package files at random.
A Linux GUI app fails to open. Update WSL from Windows with wsl --update, then run wsl --shutdown and start Kali again. Check that the application installed successfully and that you launched its actual command name. Some Linux applications need extra dependencies or do not work well through WSLg; if one remains incompatible, use a Windows equivalent or a full virtual machine.
Frequently Asked Questions
Is Kali Linux on WSL free?
Yes. Kali Linux and WSL are available without a purchase. You may still need internet data and disk space for the distribution and any tools you install.
Does Kali on WSL 2 have a graphical desktop?
WSLg can run many individual Linux graphical applications as Windows windows. It does not set up a complete Kali desktop by default, so use a virtual machine if you specifically need the full desktop experience.
Can Kali WSL access my Windows files?
Yes. Windows drives are typically mounted under /mnt, such as /mnt/c for the C: drive. Use those locations when you need to share files, and keep Linux-heavy projects in Kali’s own filesystem when performance matters.
Do I need to install Kali in a virtual machine instead?
Not for basic command-line learning, scripting, or many Linux tools. A VM is a better fit when you need a separate desktop, more control over virtual hardware, or an isolated lab. Check your task’s hardware requirements before choosing.
Will installing Kali change or erase Windows?
No. Installing Kali as a WSL distribution does not replace Windows or repartition your drive. It does use disk space, and you can remove the distribution later, but deleting it can erase files stored inside that Kali environment.