Lab: build your two-machine lab

Practical

~75 min

Everything below happens on your own laptop. Work through it in order — later steps assume earlier ones worked. Your instructor is walking the room; raise your hand early rather than silently falling behind.

1. Install VirtualBox (10 minutes)

  1. Run the VirtualBox installer you downloaded. Accept the defaults; approve the network-adapter warning when it appears.
  2. Open VirtualBox. You should see an empty machine list.
  3. Windows 11 only: if VMs later refuse to start or crawl, Hyper-V is the likely cause. Open PowerShell as Administrator and run bcdedit /set hypervisorlaunchtype off, then reboot. Do this only if you hit the problem.

2. Create the Ubuntu Server VM (20 minutes)

  1. Click New. Name it ubuntu-target, type Linux, version Ubuntu (64-bit).
    • If 64-bit is not offered, virtualisation is disabled in your BIOS. Stop and get your instructor — this is the BIOS setting from the lecture.
  2. Memory: 2048 MB. Disk: 25 GB, dynamically allocated.
  3. Select the VM → Settings → Network → Adapter 1 → set Attached to: Internal Network, name it lab-net.
  4. Settings → Storage → select the empty optical drive → choose your Ubuntu Server ISO.
  5. Start the VM and work through the installer:
    • Language and keyboard: your preference.
    • Network: leave the defaults.
    • Storage: use the entire disk.
    • Profile — write these down, you will need them all term:
      • Your name: your own
      • Server name: ubuntu-target
      • Username: student
      • Password: something you will genuinely remember
    • Tick "Install OpenSSH server" when offered. This matters for later weeks.
    • Skip all the optional snap packages.
  6. Wait for the install, then Reboot Now. If it asks you to remove the installation medium, press Enter.
  7. Log in with student and your password. A text prompt is correct — there is no desktop, by design.

3. Prove Ubuntu works (10 minutes)

At the prompt, run each of these and read the output before moving on:

whoami
ip a
uname -a
sudo apt update
  • whoami should print student.
  • ip a lists network interfaces. Note the 10.0.x.x address — that is your lab network.
  • sudo apt update asks for your password, then contacts Ubuntu's servers.

If apt update fails, your VM has no internet. Switch the adapter to NAT temporarily, update, then switch back to Internal Network. Ask your instructor if unsure.

4. Snapshot it (5 minutes)

Do not skip this.

  1. Shut the VM down: sudo poweroff.
  2. In VirtualBox, select ubuntu-target → Snapshots → Take.
  3. Name it clean-install-week-1. Description: Fresh Ubuntu Server, OpenSSH installed, before any labs.

You now have a machine you can always get back to.

5. Create the Windows VM (20 minutes)

  1. New → name windows-target, type Microsoft Windows, version Windows 10/11 (64-bit).
  2. Memory: 4096 MB. Disk: 50 GB, dynamically allocated.
  3. Settings → Network → Adapter 1 → Internal Network, name lab-net — the same network as Ubuntu.
  4. Attach the Windows evaluation ISO in Storage, then Start.
  5. Work through the Windows installer. When it asks for a product key, choose I don't have a product key — the evaluation runs without one. Choose the Pro edition. Create a local account named student.
  6. This install takes a while and reboots itself several times. Let it.

6. Make them see each other (10 minutes)

  1. On Ubuntu, run ip a and note its address (something like 10.0.2.15).
  2. On Windows, open Command Prompt and run ipconfig. Note that address too.
  3. From Windows, ping the Ubuntu machine: ping <ubuntu-ip>.
  4. If replies come back, your lab network works.
  5. If they do not, check both VMs are on Internal Network with the identical name lab-net. This is the usual cause.

7. Snapshot Windows (5 minutes)

Shut Windows down properly (Start → Power → Shut down), then take a snapshot named clean-install-week-1.

Extension, if you finish early

  • On Ubuntu, run sudo apt install -y net-tools then netstat -tulpn. This lists every service listening for connections. You are looking at your machine's attack surface — we return to this in Week 3.
  • On Windows, open Event Viewer (search for it in the Start menu) and click through Windows Logs → Security. You are looking at where Windows records who logged in and when. This becomes very important from Week 5.

Done?

Show your instructor:

  1. Both VMs running at once.
  2. A successful ping from Windows to Ubuntu.
  3. The snapshot list for each machine, with sensibly named snapshots.

Then confirm in writing that you have read and accept the course rule: everything we attack, we own. Your instructor will keep the record.

Sign in to submit your work.