Virtualization Foundations

A complete, free course on how virtual machines and cloud compute really work, from the hardware up. It is open to everyone who wants to learn: students, developers, system administrators and engineers. One narrow topic per video, in English and Hindi.

140 videos, 8 h 14 min, made to be watched in order.

The whole stack in one picture

  1. What is cloud compute? (4:54)
  2. The layers of a cloud server (2:54)
  3. Where storage and networking sit (2:57)
  4. The control plane, in one picture (2:45)
  5. A cloud operations engineer's day (3:03)
  6. Host, guest and instance (2:56)
  7. Meet Harbor Point Logistics (3:04)
  8. How this course is laid out (2:41)

Setting up your lab machine

  1. What your lab machine is for (3:31)
  2. Does your CPU support virtualization? (3:50)
  3. Installing Ubuntu 24.04 LTS (3:34)
  4. Installing the course packages (3:41)
  5. Is the virtualization stack working? (3:23)
  6. Downloading the Ubuntu cloud image (3:55)
  7. Saving and restoring your lab's state (2:53)
  8. A cloud machine instead of a laptop (3:24)

CPUs: sockets, cores, threads and caches

  1. What a CPU does, step by step (3:30)
  2. Sockets, cores and threads: what a CPU count means (3:42)
  3. Hyper-threading: what the second thread is worth (3:37)
  4. Clock speed, turbo and why GHz is not speed (3:32)
  5. CPU caches: small, fast memory kept close (3:51)
  6. Cache misses, with real numbers (3:42)
  7. Pipelines and branch prediction, in brief (3:47)
  8. x86-64 and Arm: two instruction families (4:07)
  9. CPU feature flags: what the chip can do (3:36)
  10. Reading lscpu, line by line (3:37)

Privilege, system calls and interrupts

  1. User mode and kernel mode (4:00)
  2. The x86 privilege rings (3:39)
  3. What is a system call? (3:36)
  4. Watching system calls with strace (4:06)
  5. Interrupts: how devices get the CPU's attention (4:21)
  6. Exceptions and faults (4:45)
  7. Context switches and what they cost (3:55)
  8. Why privilege matters for virtualization (4:36)

Memory: RAM, addresses and virtual memory

  1. What RAM is, and how it is fitted (4:01)
  2. Bits, bytes, GB and GiB (3:41)
  3. ECC memory: catching flipped bits (4:01)
  4. Why every program gets its own address space (4:28)
  5. Pages and page tables (4:04)
  6. The TLB: a cache for address translation (4:17)
  7. Page faults: the kernel's on-demand help (4:09)
  8. Swap: when RAM overflows onto disk (3:57)
  9. The page cache: spare RAM that is not wasted (4:02)
  10. NUMA: memory that is near and far (4:18)

Storage devices, buses and network cards

  1. How a hard disk works (3:43)
  2. How an SSD works: flash, wear and TRIM (4:23)
  3. SATA, SAS and NVMe compared (3:32)
  4. PCIe: lanes, generations and slots (3:21)
  5. Listing devices with lspci and lsblk (3:29)
  6. How a device talks to the CPU: DMA and interrupts (3:28)
  7. What a network card is (4:01)
  8. HBAs and RAID controllers (4:02)

Server hardware and out-of-band management

  1. What makes a server different from a PC? (3:24)
  2. Rack units, blades and chassis (4:10)
  3. Redundant power supplies and fans (3:57)
  4. The BMC: a small computer inside the server (4:14)
  5. IPMI and the ipmitool command (3:38)
  6. Redfish: a web-style way to manage servers (4:52)
  7. Remote console and virtual media (3:49)
  8. Firmware and BIOS updates on servers (3:58)
  9. Hardware RAID or plain HBA mode (4:06)
  10. Reading the hardware inventory with dmidecode (4:34)

The boot sequence, end to end

  1. From power-on to login (3:39)
  2. What firmware does at power-on (3:32)
  3. What the boot loader does (3:56)
  4. The kernel and the initramfs (4:06)
  5. What systemd does at boot (3:52)
  6. Where a boot stops when it fails (4:29)

Processes, threads and scheduling

  1. Process and thread: what is the difference? (4:24)
  2. Process states: running, waiting, stopped or zombie? (4:20)
  3. The scheduler: who gets a CPU, and for how long? (3:55)
  4. The run queue and the load average (3:33)
  5. Priorities and the nice value (3:45)
  6. Counting context switches with vmstat and pidstat (3:58)
  7. CPU affinity: pinning a process to chosen CPUs (3:33)
  8. Why a virtual CPU is just a thread (4:00)

Data-centre basics

  1. Server racks and rack units (2:43)
  2. How power reaches a rack (3:47)
  3. Hot aisles and cold aisles (3:29)
  4. Structured cabling and patch panels (4:00)
  5. Top-of-rack switches and the out-of-band network (4:01)
  6. Colocation: cages, remote hands and cross-connects (3:32)
  7. Labelling and documentation (4:01)
  8. Safety and change rules on site (3:59)

Hardware failure and health

  1. How disks fail, and how SMART warns you (4:01)
  2. Memory errors: the ones fixed and the ones that are not (4:09)
  3. Sensors, fans and the BMC's event log (3:35)
  4. Network link errors (3:40)
  5. Predictive failure, and opening a vendor support case (3:27)
  6. Replacing a part safely: hot-swap or downtime (3:32)
  7. Burn-in testing of new hardware (3:28)

Firmware settings that matter on a virtualization host

  1. Turning on VT-x or AMD-V (3:52)
  2. The IOMMU setting: VT-d or AMD-Vi (3:21)
  3. SR-IOV in firmware (3:05)
  4. Hyper-threading on or off in firmware (3:02)
  5. Power profiles, C-states and P-states (2:50)
  6. NUMA and sub-NUMA settings in firmware (3:07)
  7. UEFI boot mode and Secure Boot on a host (2:46)
  8. Checking firmware settings from Linux (3:03)

The shell and the filesystem tree

  1. What is a shell? (3:13)
  2. Getting help on the command line (2:41)
  3. Absolute and relative paths (2:42)
  4. The Linux directory tree (3:10)
  5. Files, hard links and symbolic links (3:04)
  6. Copying, moving and deleting safely (2:49)
  7. Finding files and programs (2:37)
  8. Pipes and redirection (2:35)
  9. Environment variables and PATH (2:49)
  10. History, completion and shortcuts (2:39)

Users, groups, permissions and sudo

  1. Users and groups: the files behind them (2:49)
  2. Who am I? The id and whoami commands (2:47)
  3. File modes: read, write and execute (2:55)
  4. Changing owners and rights: chown and chmod (2:52)
  5. umask: why new files get their rights (2:48)
  6. setuid, setgid and the sticky bit (2:46)
  7. sudo and the sudoers file (2:53)
  8. su or sudo: two ways to act as root (2:53)
  9. System users: accounts that run services (2:34)
  10. ACLs in brief: rights for named people (2:47)
  11. Diagnosing permission denied (2:39)

Processes, signals, /proc and /sys

  1. Reading the process list with ps (4:04)
  2. Watching live load with top and htop (3:38)
  3. What each signal means: TERM, KILL, HUP, STOP and CONT (4:06)
  4. Killing a process safely (3:27)
  5. Foreground, background, and surviving a logout with nohup (3:41)
  6. Zombie and orphan processes (3:46)
  7. What is inside the proc folder for a process (3:26)
  8. The sys folder: the kernel's view of devices (3:11)
  9. lsof: the files a process holds open (3:44)

systemd and logs

  1. What does systemd do? (3:29)
  2. Units and unit files (2:55)
  3. Reading a service's status (2:42)
  4. Dependencies and targets (2:53)
  5. Writing your own service (2:50)
  6. When systemd restarts a service (2:50)
  7. Timers and cron: which one catches up? (2:38)
  8. Finding the lines you need in the journal (2:50)
  9. Log files, rsyslog and log rotation (2:49)
  10. A service that will not start (2:51)
  11. Start now, or start at boot? (2:46)