Install Kali Linux
There are two good ways to get Kali running in VirtualBox. The pre-built appliance is the fastest route for beginners; the ISO install teaches you a little more and gives full control. We'll cover both — pick one.
New to all this? Use the pre-built VirtualBox appliance (Option A). It's the quickest path to a working machine.
Option A — Pre-built VirtualBox appliance (recommended)
-
Download the image
Go to kali.org/get-kali → Virtual Machines → VirtualBox. Download the 64-bit image (a
.7zarchive) and verify the SHA-256 checksum shown on the page.
Figure 1. Downloading the pre-built VirtualBox image from kali.org. -
Extract the archive
Use 7-Zip (Windows), Keka (macOS), or
7z xon Linux to extract it. You'll get a.vboxfile and a virtual disk.terminal$ 7z x kali-linux-2024-virtualbox-amd64.7z -
Import into VirtualBox
Double-click the
.vboxfile, or in VirtualBox choose Machine → Add and select it. Kali appears in your VM list.
Figure 2. The Kali VM added to VirtualBox Manager.
Option B — Full ISO installation
Prefer to install from scratch? Download the Installer ISO from kali.org, then create a new VM in VirtualBox:
-
Create the VM
Click New. Name it
Kali, set Type: Linux, Version: Debian (64-bit), and point the ISO field at your downloaded Kali installer.
Figure 3. Creating a new VM for the Kali installer. -
Allocate resources
Assign 2–4 GB RAM (2048–4096 MB), 2 CPU cores, and a 40 GB dynamically allocated virtual disk.
-
Run the installer
Start the VM and follow the Kali graphical installer: choose language, set a hostname, create your user, and select Guided – use entire disk for partitioning. Install the default desktop (Xfce) and the GRUB bootloader.
Figure 4. The Kali graphical installer.
Step — Attach Kali to the lab network
Before first boot, connect Kali to the isolated network you created in guide 1.2.
-
Open network settings
Select the Kali VM → Settings → Network → Adapter 1.
-
Set Host-only
Set Attached to: Host-only Adapter and choose your lab network. (You can temporarily add a second NAT adapter later when you need to update — see guide 2.2.)
Figure 5. Attaching Kali to the isolated host-only network.
First login
Boot the VM and log in. The pre-built appliance uses default credentials kali / kali — change the password immediately:
$ passwd Changing password for kali. Current password: New password:
Checkpoint: Kali boots to its desktop, you can log in, and you've changed the default password. Next we'll update it.