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.
Key Vocabulary
| Term | Definition | Analogy |
|---|---|---|
| Host OS | The operating system on your physical computer | The house itself |
| Guest OS | The OS running inside the VM | The apartment tenant |
| Hypervisor | Software 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 computer | A blueprint + furniture for the apartment |
| Snapshot | A saved state of a VM you can roll back to | A 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'?
๐ฎ Practice what you learned
โญ 0 XP๐ฅ 0 days