BiTree
  • Search For Lessons
  • Curriculum
  • Pricing
  • For Educators
  • Become a Tutor
  • About
  • Contact
Log InGet Started

Questions, concerns, bug reports, or suggestions? We read every message, write to us at [email protected].

More ways to reach us →
BiTree

Live coding lessons for aspiring developers and security professionals.

[email protected]

(201) 785-7951

Mon–Fri, 9 AM–5 PM EST

Learn

  • Search For Lessons
  • Curriculum
  • Pricing

Company

  • About
  • For Educators & Schools
  • Become a Tutor
  • Contact Us

Legal

  • Terms of Service
  • Privacy Policy
© 2026 BiTree. All rights reserved.
Curriculum/Cybersecurity/Kali Linux and Security Lab Setup/Setting Up a Kali Linux Lab
45 minBeginner

Setting Up a Kali Linux Lab

After this lesson, you will be able to: Set up a safe, isolated security lab: install VirtualBox and Kali Linux, configure isolated networking, take snapshots, and add a deliberately vulnerable target VM.

This is the practical foundation for every hands-on lab in the Cybersecurity track. You will install VirtualBox and Kali Linux, configure an isolated network so your experiments never touch production, learn the snapshot workflow, and stand up a Metasploitable 2 target. Complete this before any lab that needs Kali.

This is a free introductory lesson. No purchase required.

💡 Why an isolated lab, and the one rule

Every offensive technique you will practice is only legal against systems you own or are authorized to test. An isolated lab is how you get unlimited authorized targets: VMs you own, on a network that cannot reach the internet or your real devices. Never test against anything outside this lab. Build the lab first; it is what makes the rest of the track both legal and safe.

What Kali Linux is

Kali Linux is a Debian-based distribution maintained by OffSec (Offensive Security) with hundreds of security tools preinstalled: Nmap, Metasploit, Burp Suite, Wireshark, Hydra, aircrack-ng, and more. It exists so you do not spend days installing and configuring tooling. It is the de facto standard for penetration testing and security training. You run it as a VM, not as your daily operating system.

Install VirtualBox and Kali

VirtualBox is free and cross-platform. Use the official Kali VM image to skip manual installation.

  1. 1

    1. Install VirtualBox (free) from virtualbox.org.

  2. 2

    2. Download the official Kali VirtualBox image from kali.org (prebuilt, imports in minutes).

  3. 3

    3. Import the .ova into VirtualBox and start it; log in with the default credentials, then change the password.

  4. 4

    4. Update the system: sudo apt update && sudo apt full-upgrade -y.

  5. 5

    5. Explore the application menu; note where the major tool categories live.

Isolated networking

Networking is where labs go wrong. Use a Host-Only or Internal Network adapter so the lab VMs can talk to each other but not to the internet or your home network. NAT gives a VM internet access (useful for updates) but should not be combined with attack exercises against other VMs that could leak out. The safest pattern: one adapter on an isolated internal network for attacks, and only switch on NAT briefly when you need to update.

Snapshots and a target VM

Snapshots let you reset to a known-good state after every messy lab.

  1. 1

    1. With Kali installed and updated, take a VirtualBox snapshot named 'clean'.

  2. 2

    2. Before each lab, you can always revert to 'clean' if something breaks.

  3. 3

    3. Download Metasploitable 2 (a deliberately vulnerable Linux VM) and import it.

  4. 4

    4. Put Metasploitable on the SAME isolated internal network as Kali, and never expose it to the internet (it is full of holes by design).

  5. 5

    5. From Kali, confirm you can reach the target (ping its IP) and take a 'clean' snapshot of the target too.

Docker as a lighter alternative

Not every lab needs a full Kali VM. Docker Compose can spin up isolated networks of containers (attacker, victim, vulnerable web app) quickly and tear them down cleanly, which is ideal for the network-attack and web-app labs in this track. Use VMs for full-system and wireless work; use Docker for fast, disposable, single-service targets like DVWA.

💡 Common mistakes only experienced lab builders catch

Putting a vulnerable VM on a bridged/NAT network where the internet can reach it (now you are hosting an open target). Forgetting the 'clean' snapshot and having to rebuild after a lab. Running Kali as a daily driver. Skipping updates so tools misbehave. Mixing the lab network with the home network so an exercise hits a real device. Not changing the default Kali password.

Back to Kali Linux and Security Lab Setup
Essential Kali Tools Overview→