1 · Foundations & virtualization

3. Virtualization and the Hypervisor

Type 1 and 2 hypervisors, CPU virtualization, and containers as a lighter alternative.

9 min read · 3 MCQs

What a hypervisor does

A hypervisor slices one physical machine into isolated virtual machines, each with a full guest OS. Type 1 runs directly on hardware (ESXi, Hyper-V, KVM) and is what clouds use; Type 2 runs as an application on a desktop OS.

Hardware support

Intel VT-x and AMD-V let guest instructions execute natively rather than being emulated, and IOMMU/SR-IOV pass devices through with near-native I/O. This is why virtualization overhead is now small enough to be irrelevant for most workloads.

VMs versus containers

A VM virtualises hardware and boots a kernel — strong isolation, gigabytes, tens of seconds. A container virtualises the OS, sharing the host kernel — weaker isolation, megabytes, milliseconds. MicroVMs such as Firecracker sit in between and back many serverless platforms.

Chapter quiz

3 questions · pass mark 75%
  1. 1. A container differs from a VM because it…

  2. 2. Type 1 hypervisors run…

  3. 3. Firecracker microVMs are used to…

Answer every question to submit. Progress for cl-03 is saved in this browser.