Articles & BlogBy Trapper W. Brown8 min read
For anyone with a reasonably recent PC and a free evening. By the end you will have Kali and a practice target running on a private network inside your own computer, cut off from everything else.
Where can you legally practice security testing? On machines you own. The cheapest machines you will ever own are virtual ones.
A virtual machine (VM) is a whole computer simulated by a program on your real one. Your real computer is the host. Each VM is a guest. The program that runs them is a hypervisor, and the one used here is VirtualBox, which is free. Kali's own documentation suggests a VM for anyone installing it for the first time, and I agree: your everyday system stays untouched, and a mistake costs you one click to undo.
A lab is a place to gather around a screen and work out what just happened. U.S. Air National Guard photo by Maj. Benjamin Hughes, public domain, via Wikimedia Commons.
Watch out
This lab is for attacking machines you built yourself and nothing else. Scanning or accessing systems you do not own without written permission is a crime in most places, including under the US Computer Fraud and Abuse Act. The network steps below exist to make sure your practice cannot reach anyone else, so do not skip them.
What do you need?
| Item | Minimum | Comfortable |
|---|---|---|
| Host memory (RAM) | 8 GB | 16 GB or more |
| Free disk space | 40 GB | 80 GB |
| Processor | 64-bit with virtualization turned on in the firmware settings (Intel VT-x or AMD-V) | The same, with four or more cores |
| Hypervisor | VirtualBox, from virtualbox.org | The same |
The host figures are my rule of thumb. They come from Kali's stated requirement of at least 2 GB of RAM and 20 GB of disk for its default desktop, plus a target VM, plus what your own system needs to keep running.
Download Kali and check that it is real
Go to the download page at kali.org, choose Virtual Machines, and take the VirtualBox image. On 11 November 2026 that file was kali-linux-2026.3-virtualbox-amd64.7z. Kali's documentation says never to download its images from anywhere other than official sources.
Next to the download link is a long string labeled SHA256sum. A SHA256 checksum is a fingerprint of a file: change one byte and the fingerprint changes completely. Compute it for the file you received.
certutil -hashfile kali-linux-2026.3-virtualbox-amd64.7z sha256
On Windows, this prints the SHA256 checksum of the file.
shasum -a 256 kali-linux-2026.3-virtualbox-amd64.7z
On Linux or macOS, this does the same.
84863c4fa46b2f1b29b152348583c6fb20f68f91971617c0d684e0eb163aab6d
That is the value kali.org listed for the 2026.3 VirtualBox image on 11 November 2026. Trust the page, not this article: your result must match what the site shows for the file you downloaded, character for character. If it does not, delete the file and download again.
Import it, log in, update, snapshot
Extract the archive with 7-Zip. In VirtualBox choose Add and select the .vbox file from the extracted folder. Start the VM. Kali's documentation gives the default login for its prebuilt images as user kali, password kali. Everyone knows that password, so change it:
passwd
This asks for the current password, then a new one twice.
In the VM's Settings, under Network, check that Adapter 1 is attached to NAT, VirtualBox's default mode. NAT lets the VM reach the internet, so use it now to update:
sudo apt update
sudo apt full-upgrade -y
The first command refreshes the list of available packages. The second installs every pending upgrade.
Then take a snapshot: a saved copy of the VM's disk and settings at this moment. In VirtualBox, select the VM, open Snapshots and choose Take, or run this on the host:
VBoxManage snapshot "kali-linux-2026.3-virtualbox-amd64" take "clean-updated"
This saves the VM's current state under the name clean-updated. Use your VM's name as VirtualBox lists it. On Windows, VBoxManage sits in the VirtualBox install folder, so open your terminal there.
Tip
Take a snapshot before every practice session and name it with the date. When an experiment leaves the VM in a strange state, restoring the snapshot puts it back exactly as it was. That freedom to break things is the main reason to learn in a VM.
Which network mode keeps the lab private?
This is the part that matters most. Each VM has a virtual network adapter, and the mode you pick decides what the VM can reach.
| Mode | What it does | Use it for |
|---|---|---|
| NAT | The VM reaches the internet through the host, like a PC behind a router. Nothing outside can start a connection to it. | Updating Kali |
| Bridged | The VM joins your home network as if it were plugged into your router. Every device in the house can reach it. | Almost never in this lab |
| Internal Network | The VM can talk only to other VMs set to the same named network. No host, no home network, no internet. | The target, always. Kali, while practicing. |
Internal mode is the only column where the sole answer of yes is the one you want.
A fourth mode, Host-only, is Internal with the host PC added. It is fine for a lab too, but Internal is the stricter choice.
The target VM is the reason for all this care. It is weak on purpose. Put it on a bridged adapter and you have plugged a machine with known holes into the same network as your family's phones and laptops.
Add a target and build the isolated network
A good first target is Metasploitable 2, which its maker Rapid7 describes as an intentionally vulnerable Ubuntu Linux virtual machine. Download it through the link in Rapid7's documentation, create a new VM that uses its disk file as an existing hard disk, and set its adapter before the first boot. Another option is OWASP Juice Shop, a deliberately insecure web shop that Kali offers as an installable lab package.
With both VMs powered off, give each one an adapter on an internal network named lab. In each VM's Settings, under Network, set Adapter 1 to Internal Network and type the name. Or from the host:
VBoxManage modifyvm "kali-linux-2026.3-virtualbox-amd64" --nic1 intnet --intnet1 lab
This attaches the VM's first adapter to the internal network called lab. Repeat it with the target VM's name.
An internal network has nobody handing out addresses, so add VirtualBox's built-in DHCP server (the service that assigns addresses) to it:
VBoxManage dhcpserver add --network=lab --server-ip=10.10.10.1 --netmask=255.255.255.0 --lower-ip=10.10.10.10 --upper-ip=10.10.10.50 --enable
This makes VirtualBox assign addresses from 10.10.10.10 to 10.10.10.50 to machines on lab.
The finished lab: two VMs that can see each other and nothing else.
Check your work
Start both VMs. Log in to the target (Rapid7 documents the login as msfadmin for both name and password) and run ifconfig to read its address. In Kali, check your own:
ip addr show eth0
This lists the addresses on Kali's first network adapter.
inet 10.10.10.10/24 brd 10.10.10.255 scope global dynamic eth0
Your numbers may differ by one or two. Now test both halves of the design. First, that Kali can reach the target:
ping -c 3 10.10.10.11
This sends three test packets to the target and reports whether they came back.
3 packets transmitted, 3 received, 0% packet loss
Second, that Kali cannot reach the outside world:
ping -c 2 example.com
This tries to reach a site on the internet, and here you want it to fail.
ping: example.com: Temporary failure in name resolution
A reply from the target and a failure from the internet together mean the lab is built. When Kali needs updates again, power the target off, switch Kali's adapter back to NAT, update, and switch it back before the target starts.
What to remember
- A VM is the right home for Kali: your real system is untouched and a snapshot undoes any mistake.
- Download only from kali.org and compare the SHA256 checksum with the one on the page.
- The prebuilt image logs in as
kaliwith passwordkali. Change it. - NAT is for updates. Bridged puts a VM on your home network. Internal Network reaches other lab VMs only.
- The vulnerable target lives on the internal network from its first boot and never leaves it.
- The lab passes when the target answers a ping and the internet does not.
That is where this article stops, on purpose. The next step is to look before you touch: "Nmap: Seeing What Is on Your Own Network" shows how to list what the target is running, and "Virtual Machines and Containers" explains what the hypervisor under this lab is doing.


