How to Run Parrot Linux on Windows With WSL 2

Running Parrot Linux on Windows with WSL 2 gives you a real Debian-based Parrot environment inside your normal Windows desktop: the apt repositories, the shell tools, Python, and most of the command-line security utilities, without rebooting into a dual-boot partition or keeping a heavyweight virtual machine open. This guide walks you through the whole process, from enabling WSL 2 to importing a Parrot root filesystem, creating a user, turning on systemd, and understanding what WSL can and cannot do for security work. One reminder before you reach the tool sections: anything you scan or test from this install should be your own machine or a lab you are authorized to use, such as DVWA, Metasploitable, or Hack The Box and TryHackMe targets.

What WSL 2 Is and Why It Works for Parrot Linux

WSL 2 (Windows Subsystem for Linux, version 2) runs a lightweight Linux virtual machine with a real Linux kernel that Microsoft ships and updates. Every distribution you install is a root filesystem inside that VM. Because Parrot Linux is built on Debian, its userland behaves exactly as it would on any other Debian-based system: apt works, systemd can be enabled, and packages from the Parrot repositories install normally.

What you do not get is Parrot’s own kernel or its boot process. The kernel is Microsoft’s WSL kernel, so anything that depends on a specific kernel module (Wi-Fi monitor mode, some USB device drivers, custom kernel patches) will not behave like a native install. Keep that in mind when choosing between WSL and a VM; the VMware install guide and the VirtualBox guide cover the full-VM route if you need hardware passthrough.

Requirements

  • Windows 10 (build 19041 or newer) or Windows 11. Windows 11 is strongly recommended because WSLg (GUI app support) and mirrored networking are only available there.
  • Virtualization enabled in the firmware (Intel VT-x or AMD-V). If wsl --install complains about virtualization, check your UEFI settings first.
  • Roughly 4–10 GB of free disk space depending on which Parrot image you import.
  • Docker Desktop, Podman, or any Linux box with Docker, used once to export the root filesystem.

Step 1: Enable WSL 2 on Windows

Open PowerShell or Windows Terminal as Administrator and run:

wsl --install --no-distribution
wsl --set-default-version 2

The first command enables the WSL feature and the virtual machine platform without pulling in Ubuntu. Reboot when prompted. After the reboot, update the WSL kernel and confirm the version:

wsl --update
wsl --version

If wsl --version errors out, your WSL is the older in-box version; run wsl --update again or install the “Windows Subsystem for Linux” app from the Microsoft Store to get the current release.

Step 2: Get a Parrot Linux Root Filesystem

There is no Parrot entry in the default wsl --list --online catalog, so you import a root filesystem tarball yourself. The cleanest source is the project’s official Docker images, which are covered on this site in Docker images for Parrot OS. Pick the core image for a small install or the security image if you want the tool set pre-installed.

On a machine with Docker (Docker Desktop on Windows works fine), create a container from the image and export its filesystem. Replace IMAGE with the exact image name from the Docker guide:

docker pull IMAGE
docker create --name parrot-export IMAGE
docker export parrot-export -o parrot-rootfs.tar
docker rm parrot-export

docker export writes a flat tarball of the container’s filesystem, which is exactly what WSL expects. Copy parrot-rootfs.tar somewhere convenient on your Windows drive, for example C:wslparrot-rootfs.tar.

Always check the current image tags before you pull. Image names and tags change between Parrot releases, so verify on Docker Hub or in the guide above rather than trusting an old command from a forum.

Step 3: Import Parrot Linux Into WSL 2

Back in PowerShell, create a folder for the virtual disk and import the tarball:

mkdir C:wslparrot
wsl --import Parrot C:wslparrot C:wslparrot-rootfs.tar --version 2

The three arguments are the distribution name you will use from now on, the folder that will hold the ext4.vhdx virtual disk, and the tarball. Confirm it registered:

wsl --list --verbose

You should see Parrot with version 2. Start it with:

wsl -d Parrot

You will land in a root shell because container images do not ship a regular user. That is the next thing to fix.

Step 4: Create a User and Make It the Default

Inside the Parrot shell, update the package index first so the user tools are current, then add a normal account:

apt update
apt install -y sudo
adduser parrot
usermod -aG sudo parrot

Pick any username you like; parrot is just a convention. Now tell WSL to log in as that user by default. Create or edit /etc/wsl.conf:

cat <<'EOF' > /etc/wsl.conf
[user]
default=parrot

[boot]
systemd=true

[interop]
appendWindowsPath=false
EOF

The [boot] systemd=true line enables systemd inside the distribution, which lets services like PostgreSQL (needed by Metasploit) start with systemctl. The appendWindowsPath=false line is optional but useful: it stops Windows executables from appearing in your Linux PATH, which otherwise makes tab completion noisy and can cause odd behavior when a Windows binary shadows a Linux one.

Exit the shell and restart the distribution for the changes to take effect:

exit
wsl --terminate Parrot
wsl -d Parrot

Check that you are the new user and that systemd is running:

whoami
systemctl is-system-running

Output of running or degraded means systemd is active. degraded simply means a unit that makes no sense under WSL failed to start; it is normal and harmless.

Step 5: Update Parrot Linux and Install Tools

Parrot ships its own upgrade wrapper, parrot-upgrade, which handles the ordering of its repositories correctly. Use it instead of a plain apt upgrade where possible:

sudo parrot-upgrade

If you imported the core image, the security tools are not there yet. Parrot groups them into metapackages, so you can install just the categories you want. For example:

sudo apt install parrot-tools-info parrot-tools-web

Use apt search parrot-tools to see the full list of metapackages available in your release. The update and upgrade guide explains the difference between parrot-upgrade, apt upgrade, and apt full-upgrade if you want the background.

Step 6: Run GUI Apps With WSLg (Windows 11)

On Windows 11, WSLg lets Linux GUI applications open as regular windows on the Windows desktop with no X server to configure. Install a GUI tool and launch it:

sudo apt install wireshark
wireshark &

The Wireshark window appears alongside your Windows apps. The same works for Burp Suite, OWASP ZAP, and any other Qt or GTK application. If you are on Windows 10, WSLg is not available; you would need a third-party X server on Windows and a DISPLAY variable, which is more fiddly and outside the scope of this guide.

Networking in WSL 2: What to Expect

By default, WSL 2 sits behind a NAT with its own private IP. Outbound scans work, but hosts on your LAN cannot reach services you start inside Parrot without port forwarding, and raw-socket tools may behave unexpectedly. Two things help:

  1. Mirrored networking (Windows 11 22H2 and later). Create %UserProfile%.wslconfig on Windows with:
    [wsl2]
    networkingMode=mirrored

    Then run wsl --shutdown and start Parrot again. In mirrored mode the distribution shares the Windows network interfaces, so your lab VMs on the same LAN can talk to it directly.

  2. Unprivileged scans. If nmap raw SYN scans misbehave, fall back to nmap -sT (TCP connect) or add --unprivileged. The Nmap on Parrot Linux guide covers the scan types.

What never works in WSL 2 is wireless injection or monitor mode. The Microsoft kernel has no drivers for your Wi-Fi adapter in that role. For wireless work you need a native install, a dual boot (see Dual-boot Parrot Linux with Windows), or a VM with USB passthrough.

Useful WSL Commands for Day-to-Day Use

TaskCommand (PowerShell)
Start Parrotwsl -d Parrot
Set Parrot as the default distrowsl --set-default Parrot
Stop one distrowsl --terminate Parrot
Stop the whole WSL VMwsl --shutdown
Back up to a tarballwsl --export Parrot C:wslparrot-backup.tar
Remove the distro completelywsl --unregister Parrot
Open the Linux home folder in Explorerexplorer.exe . (run inside Parrot)

The export command is the easiest snapshot mechanism you have. Export a clean, updated image once, and you can wipe and reimport in under a minute whenever an experiment leaves the system in a mess.

Limiting Memory and CPU

WSL 2 will happily grow to use a large share of your RAM. If you also run lab VMs on the same laptop, cap it in the same .wslconfig file:

[wsl2]
memory=4GB
processors=2
swap=2GB

Adjust the numbers to your hardware, then wsl --shutdown to apply. Laptop users may also want to read the battery and power management tips, because a WSL VM left running in the background is an easy way to lose an hour of battery.

Common Problems

“WslRegisterDistribution failed” or error 0x80370102

Virtualization is off in firmware, or Hyper-V features are disabled. Enable VT-x/AMD-V in UEFI and rerun wsl --install --no-distribution.

apt cannot resolve hosts

WSL writes /etc/resolv.conf automatically, and some VPN clients break it. Try wsl --shutdown with the VPN disconnected, or set [network] generateResolvConf=false in /etc/wsl.conf and write a nameserver yourself.

systemd services refuse to start

Confirm [boot] systemd=true is in /etc/wsl.conf and that you restarted the distribution after editing it. Units tied to real hardware or to a display manager are expected to fail and can be ignored.

Tools that need a kernel module

Anything that loads a module (wireless injection, some VPN implementations, eBPF-based tools) will not work. Use a full VM or native install for those.

Where to Go From Here

With Parrot Linux running in WSL 2, the fastest way to make it useful is to point it at a safe practice target. The home pentesting lab guide shows how to spin up DVWA and Metasploitable, and the CTF setup guide covers the VPN configuration for Hack The Box and TryHackMe, which works from WSL once mirrored networking is on. For the reference on WSL itself, Microsoft’s own documentation at learn.microsoft.com/windows/wsl is the authoritative source for configuration keys and version requirements.

FAQ

Is Parrot Linux on WSL 2 the same as a full install?

No. The userland is the same Debian-based Parrot system, but the kernel is Microsoft’s WSL kernel. Software that only needs user space (web testing, scripting, password cracking on CPU, reconnaissance tools) works normally; anything that depends on Parrot’s kernel or on direct hardware access does not.

Can I use GPU cracking with hashcat in WSL 2?

Possibly, with CUDA on Nvidia hardware through the WSL GPU support, but setup varies by driver version and is not guaranteed. The hashcat guide covers the native setup, which is more predictable.

How do I update the Parrot install later?

Exactly as on a native system: sudo parrot-upgrade. WSL does not manage the distribution’s packages; it only provides the VM.