Virtualization & Setup ยท 1.1

๐Ÿ–ฅ๏ธ What Is a Virtual Machine?

A computer inside your computerโฑ ~3 min

๐Ÿ A VM is like an apartment inside a house

Your physical computer (the host) is like a house. A virtual machine is like building an apartment inside that house โ€” it has its own rooms, furniture, and front door, but it runs entirely inside the host. The apartment doesn't need its own foundation; it borrows the house's electricity, plumbing, and structure.

๐Ÿ  HOST โ€” your physical computer (Windows 11, 16 GB RAM)โš™๏ธ HYPERVISOR (VMware) โ€” the apartment manager๐ŸชŸGuest: Windows 10competition image๐ŸงGuest: Ubuntu 22.04competition image(room for more โ€”if you have the RAM)Each guest thinks it's a real computer. Malware inside a guest can't touch the host. ๐Ÿ›ก๏ธ
One physical computer, multiple virtual computers living inside it

Key Vocabulary

TermDefinitionAnalogy
Host OSThe operating system on your physical computerThe house itself
Guest OSThe OS running inside the VMThe apartment tenant
HypervisorSoftware that creates and runs VMs (e.g., VMware, VirtualBox)The apartment management system
Image (.vmx/.vmdk)The VM's files โ€” like a saved snapshot of an entire computerA blueprint + furniture for the apartment
SnapshotA saved state of a VM you can roll back toA save point in a video game

Why CyberPatriot Uses VMs

  • โ€ขIsolation โ€” competition images are isolated from your real machine; malware in the image can't harm your host
  • โ€ขReproducibility โ€” every team gets the exact same starting image so scoring is fair
  • โ€ขSnapshots โ€” you can revert to before a mistake (very useful during practice!)
  • โ€ขCost โ€” run multiple OSes on one laptop instead of buying extra hardware

VM Disadvantages to Know

  • โ€ขPerformance depends on the host machine's RAM and CPU โ€” a slow host = slow VMs
  • โ€ขSingle point of failure: if the host crashes, all running VMs lose unsaved work
  • โ€ขVMs consume host RAM while running โ€” don't run three VMs on 8 GB of RAM

VM Security Concepts

๐Ÿ”’ SecurityHypervisors are software and must be kept updated โ€” unpatched hypervisors can be exploited to 'break out' of the VM and affect the host. In competition, always use the latest VMware/VirtualBox version.
  • โ€ขSandbox testing โ€” safe to run unknown/suspicious software in a VM; if it's malware, only the guest is harmed
  • โ€ขVM-to-VM communication needs the same security treatment as physical machines โ€” don't assume VMs on the same host are trusted
  • โ€ขSnapshots are your best friend for practice: take one before making major changes
๐Ÿง Quick Checkfirst try = +5 XP

In VM terminology, what is the 'host'?

โญ 0 XP๐Ÿ”ฅ 0 days