UnixDroid

Lesson 1 of 10 · 7 min

Why every hacker needs a home lab

What a home lab is, why it's the only safe and legal place to practise hacking, and the hardware you need to build one.

Every skill in cybersecurity is learned by doing: scanning, exploiting, defending, breaking things and fixing them. But you can't practise on real systems you don't own. In India that's an offence under Sections 43 and 66 of the IT Act, and it's illegal almost everywhere else too. A home lab solves this. It's a set of virtual computers running on your own PC that you're free to attack, crash and rebuild as often as you like.

By the end of this path you'll have a complete lab: an attacker machine, Linux and Windows targets, a real Active Directory domain and a deliberately vulnerable server, all on a private network that can't touch your home Wi-Fi.

What is a virtual machine?

A virtual machine (VM) is a computer inside your computer. A program called a hypervisor gives each VM a slice of your real CPU, RAM and disk. The VM thinks it's a normal PC: it boots, installs an operating system and runs programs, without touching your real Windows or Linux.

That gives you three superpowers:

  • Safety: malware or a broken config stays inside the VM.
  • Undo: a snapshot lets you roll back to a working state in seconds.
  • Many machines, one PC: run an attacker and several targets side by side.
Type 1 hypervisors run on the hardware; Type 2 run as an app on your OS
Type 1 hypervisors run on the hardware; Type 2 run as an app on your OS
Type 1 (bare-metal)Type 2 (hosted)
Runs onThe hardware directlyYour normal OS, like an app
ExamplesVMware ESXi, Proxmox, Hyper-V ServerVirtualBox, VMware Workstation
Used forData centres, cloud, dedicated home serversLearning labs on a laptop or desktop

This path uses a Type 2 hypervisor, because it installs on the PC you already have.

Which hypervisor should you use?

HypervisorCostRuns onNotes
VirtualBoxFree, open sourceWindows, Linux, macOSUsed in this path. Same steps on every OS
VMware Workstation ProFree for personal useWindows, LinuxA bit faster for heavy Windows VMs
Hyper-VBuilt into Windows ProWindowsGood, but slows VirtualBox down if left on
UTM / VMware FusionFreeApple Silicon MacsARM-only guests (see the note below)

Apple Silicon Mac (M1–M4)? These chips can only run ARM64 VMs at full speed. Kali, Parrot, Ubuntu and Windows 11 all have ARM64 versions, so most of this path works. Metasploitable 2 and many older vulnerable VMs are x86-only, so use online labs like TryHackMe or Hack The Box for those.

What hardware do you need?

PartMinimumRecommendedWhy it matters
CPU4 cores with VT-x / AMD-V6–8 coresEach VM needs 1–2 cores
RAM8 GB16 GB or moreRAM decides how many VMs run at once
Disk100 GB free250 GB+ on an SSDVMs on a hard disk feel painfully slow

RAM is the real limit. You never run the whole lab at once, only the machines a given exercise needs. Leave about 4 GB for your host OS, then budget:

ExerciseVMs runningRAM needed
Pentest practiceKali + Metasploitable 2about 4.5 GB
Linux server practiceKali + Ubuntu Serverabout 6 GB
Active Directory practiceKali + Windows Server + Windows 11about 12 GB

With 8 GB of RAM, run two small VMs at a time. With 16 GB you can do everything in this path.

The lab you'll build

Your home lab blueprint
Your home lab blueprint
  1. VirtualBox on your PC, with hardware virtualization switched on
  2. LabNet, a private host-only network: 192.168.56.0/24
  3. Kali Linux, your main attacker machine (Parrot OS as an alternative)
  4. Ubuntu Server, a Linux target
  5. Windows 11 and Windows Server 2025 with a real Active Directory domain
  6. Metasploitable 2, a machine full of holes, for safe exploitation practice
  7. Snapshots, clones and OVA images, so you can reset or rebuild anything fast

The 4 golden rules of a home lab

  1. Only attack machines you own: your lab VMs, or platforms that give you permission.
  2. Vulnerable VMs never touch your real network. No Bridged or NAT adapter for them, ever.
  3. Snapshot before you break something. Rolling back is faster than reinstalling.
  4. Keep a lab notebook with every VM's name, IP, username and what you changed. Future you will thank you.
Try it yourself
  1. Check your hardware. On Windows, open Task Manager → Performance and note your CPU cores, RAM and whether Virtualization says Enabled. On Linux, run nproc, free -h and df -h.
  2. Check your free disk space on the drive where your VMs will live.
  3. Start a lab notebook (a text file or a notebook app) and copy in the RAM budget table from this lesson.
  4. Decide which exercises your PC can run at once (for example "Kali + Metasploitable only").
No Linux machine? Practise in the free online terminal

Quick check

VirtualBox is a Type ___ hypervisor. (Enter the number.)

Need a hint?

It runs as an app on top of your normal operating system.

Finished this lesson?

Done lessons keep your daily streak going 🔥

0 day streak

0 lessons done

best 0 days

Log in to keep your streak on every device →