Install VirtualBox
Oracle VirtualBox is the free hypervisor we'll use to run every machine in your lab. In this guide you'll download it, verify it's enabled on your computer, install it, and add the Extension Pack.
Prerequisites
- A 64-bit computer running Windows 10/11, macOS, or a mainstream Linux distribution.
- Administrator (or sudo) rights to install software.
- At least 4 GB RAM (8 GB+ strongly recommended) and ~60 GB free disk space.
- Hardware virtualisation support (Intel VT-x or AMD-V) — almost all modern CPUs have this.
Windows users: VirtualBox can conflict with Hyper-V and the Windows Subsystem for Linux (WSL2). If your VMs are extremely slow or won't start, see the troubleshooting section at the end.
Step 1 — Check virtualisation is enabled
-
Windows
Open Task Manager (Ctrl+Shift+Esc) → Performance tab → CPU. Look for Virtualisation: Enabled.
Figure 1. Task Manager confirming hardware virtualisation is enabled. If it says Disabled, reboot into your BIOS/UEFI (usually by pressing F2, F10, or Del at startup) and enable Intel VT-x / AMD-V (sometimes labelled "SVM" or "Virtualization Technology").
-
macOS & Linux
Modern Macs (Intel) and Linux machines generally have virtualisation enabled by default. On Linux you can confirm with:
bash$ egrep -c '(vmx|svm)' /proc/cpuinfo 8 # any number above 0 means virtualisation is supported
Apple Silicon (M1/M2/M3): VirtualBox support is limited. We recommend UTM or VMware Fusion for ARM Macs — the lab concepts are identical.
Step 2 — Download VirtualBox
-
Go to the official site
Open virtualbox.org/wiki/Downloads. Always download from the official Oracle site — never a mirror or third-party host.
-
Pick your platform package
Choose Windows hosts, macOS / Intel hosts, or your Linux distribution. Also download the VirtualBox Extension Pack (a single file that works on all platforms).
Figure 2. The official VirtualBox download page. -
(Optional but recommended) Verify the download
The download page lists a SHA-256 checksum. Verifying confirms the file wasn't corrupted or tampered with.
PowerShell (Windows)PS> Get-FileHash .\VirtualBox-*.exe -Algorithm SHA256bash (macOS/Linux)$ shasum -a 256 VirtualBox-*.dmgCompare the output to the checksum on the website — they must match exactly.
Step 3 — Install VirtualBox
-
Run the installer
Launch the downloaded installer and accept the defaults. On Windows you'll be warned that your network connection will briefly reset while the virtual network adapters are installed — this is normal.
Figure 3. The VirtualBox setup wizard. -
Approve drivers / permissions
Allow any driver-installation prompts (Windows) or, on macOS, approve the Oracle system extension under System Settings → Privacy & Security, then reboot if asked.
-
Launch VirtualBox
Open VirtualBox. You should see the empty VirtualBox Manager — your control panel for creating and running VMs.
Figure 4. The VirtualBox Manager, ready for your first VM.
Step 4 — Install the Extension Pack
The Extension Pack adds USB 2.0/3.0 support, disk encryption, and other useful features.
-
Open it
Double-click the downloaded
.vbox-extpackfile, or in VirtualBox go to File → Tools → Extension Pack Manager → Install. -
Accept and confirm
Read and accept the licence (the Extension Pack is free for personal, educational, and evaluation use). VirtualBox will confirm when it's installed.
Figure 5. The Extension Pack installed successfully.
Verify your install
From a terminal you can confirm the version and that the CLI tools are on your PATH:
$ VBoxManage --version 7.0.18r162988
Checkpoint: VirtualBox opens, shows an empty Manager, and the Extension Pack is listed as installed. You're ready to set up networking.
Troubleshooting
| Symptom | Likely cause & fix |
|---|---|
| VMs won't start or are extremely slow on Windows | Hyper-V/WSL2 is holding virtualisation. Disable Hyper-V, or run bcdedit /set hypervisorlaunchtype off as admin and reboot. |
| "VT-x is not available" | Virtualisation is disabled in BIOS/UEFI — enable Intel VT-x / AMD-V (Step 1). |
| macOS blocks the installer | Approve the Oracle extension in System Settings → Privacy & Security, then reinstall. |
| Extension Pack version mismatch | The Extension Pack must match your VirtualBox version exactly. Re-download the matching version. |