Security tools · Lesson 11 of 14

Build a safe practice lab

Set up a free home cybersecurity lab with VirtualBox or UTM, Ubuntu and Kali Linux, snapshots and isolated networks, so you can practise safely.

⏱ 20 min🎯 Beginner🧪 Hands-on practice

By the end, you’ll be able to…

  • Explain what a virtual machine is and why labs use them
  • Choose safe network settings (NAT, host-only, bridged)
  • Know where you’re allowed to practise, and where you’re not

Key words

Virtual machine (VM)
A full computer simulated inside your real computer.
Hypervisor
The software that runs VMs, like VirtualBox, VMware or UTM.
Snapshot
A saved moment of a VM you can roll back to.
Host-only network
A private network between your computer and its VMs, with no internet access.
Bridged network
The VM joins your real network like a separate device. Use with care.
Scope
The exact list of systems you’re allowed to test.

Why a lab?

You learn security by doing. But “doing” on systems you don’t own is illegal in most countries and against every school and work policy. A lab solves this: you own everything in it, so you can break, scan and fix things freely, and reset when it all goes wrong.

What you need

  • A computer with at least 8 GB of RAM (16 GB is more comfortable) and about 60 GB of free disk space.
  • A hypervisor: VirtualBox (free, Windows/Linux/Intel Macs) or UTM (free, Apple Silicon Macs).
  • An Ubuntu VM: a normal Linux machine to practise admin and defence.
  • Optional: a Kali Linux VM, which comes with security tools pre-installed. Kali also publishes ready-made VM images.

Step by step

  1. Install your hypervisor from its official site.
  2. Download the Ubuntu ISO from ubuntu.com and verify its hash.
  3. Create a VM: 2 CPUs, 4 GB RAM, 25 GB disk, then attach the ISO and install.
  4. Take a snapshot right after setup, named something like “clean install”.
  5. Optionally add Kali the same way, or import Kali’s pre-built VM image.
  6. Put both VMs on the same NAT network or host-only network so they can talk to each other.

Network modes, explained

ModeVM can reachUse it for
NATThe internet, through your computerUpdates and downloads
NAT networkThe internet, plus other VMs on the same NAT networkLabs where VMs talk to each other
Host-onlyOnly your computer and other VMs. No internetDeliberately vulnerable machines
BridgedYour real home network, like any other deviceRarely. Never for vulnerable VMs

Rule of thumb: anything intentionally vulnerable stays on host-only. Never bridge a vulnerable VM onto a home, school or work network.

Where else can I practise legally?

Your lab, your rules. Everyone else’s systems, their rules.

School Wi-Fi, a friend’s laptop, a website you “just want to check”: none of these are your lab, even if you mean no harm. Unauthorised scanning or access can break the law and get you suspended or fired. Get written permission with a clear scope first. Read Practise safely.

🧪 Hands-on

Practice

Tick off your lab setup. Your progress is saved in this browser.

✅ Check yourself

Quick quiz

Q1. You download an intentionally vulnerable VM. Which network mode should it use?
Q2. What’s the main benefit of a snapshot?
Q3. Is scanning your school’s network ‘to learn’ OK if you don’t change anything?