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
- What is cloud compute? (4:54)
- The layers of a cloud server (2:54)
- Where storage and networking sit (2:57)
- The control plane, in one picture (2:45)
- A cloud operations engineer's day (3:03)
- Host, guest and instance (2:56)
- Meet Harbor Point Logistics (3:04)
- How this course is laid out (2:41)
Setting up your lab machine
- What your lab machine is for (3:31)
- Does your CPU support virtualization? (3:50)
- Installing Ubuntu 24.04 LTS (3:34)
- Installing the course packages (3:41)
- Is the virtualization stack working? (3:23)
- Downloading the Ubuntu cloud image (3:55)
- Saving and restoring your lab's state (2:53)
- A cloud machine instead of a laptop (3:24)
CPUs: sockets, cores, threads and caches
- What a CPU does, step by step (3:30)
- Sockets, cores and threads: what a CPU count means (3:42)
- Hyper-threading: what the second thread is worth (3:37)
- Clock speed, turbo and why GHz is not speed (3:32)
- CPU caches: small, fast memory kept close (3:51)
- Cache misses, with real numbers (3:42)
- Pipelines and branch prediction, in brief (3:47)
- x86-64 and Arm: two instruction families (4:07)
- CPU feature flags: what the chip can do (3:36)
- Reading lscpu, line by line (3:37)
Privilege, system calls and interrupts
- User mode and kernel mode (4:00)
- The x86 privilege rings (3:39)
- What is a system call? (3:36)
- Watching system calls with strace (4:06)
- Interrupts: how devices get the CPU's attention (4:21)
- Exceptions and faults (4:45)
- Context switches and what they cost (3:55)
- Why privilege matters for virtualization (4:36)
Memory: RAM, addresses and virtual memory
- What RAM is, and how it is fitted (4:01)
- Bits, bytes, GB and GiB (3:41)
- ECC memory: catching flipped bits (4:01)
- Why every program gets its own address space (4:28)
- Pages and page tables (4:04)
- The TLB: a cache for address translation (4:17)
- Page faults: the kernel's on-demand help (4:09)
- Swap: when RAM overflows onto disk (3:57)
- The page cache: spare RAM that is not wasted (4:02)
- NUMA: memory that is near and far (4:18)
Storage devices, buses and network cards
- How a hard disk works (3:43)
- How an SSD works: flash, wear and TRIM (4:23)
- SATA, SAS and NVMe compared (3:32)
- PCIe: lanes, generations and slots (3:21)
- Listing devices with lspci and lsblk (3:29)
- How a device talks to the CPU: DMA and interrupts (3:28)
- What a network card is (4:01)
- HBAs and RAID controllers (4:02)
Server hardware and out-of-band management
- What makes a server different from a PC? (3:24)
- Rack units, blades and chassis (4:10)
- Redundant power supplies and fans (3:57)
- The BMC: a small computer inside the server (4:14)
- IPMI and the ipmitool command (3:38)
- Redfish: a web-style way to manage servers (4:52)
- Remote console and virtual media (3:49)
- Firmware and BIOS updates on servers (3:58)
- Hardware RAID or plain HBA mode (4:06)
- Reading the hardware inventory with dmidecode (4:34)
The boot sequence, end to end
- From power-on to login (3:39)
- What firmware does at power-on (3:32)
- What the boot loader does (3:56)
- The kernel and the initramfs (4:06)
- What systemd does at boot (3:52)
- Where a boot stops when it fails (4:29)
Processes, threads and scheduling
- Process and thread: what is the difference? (4:24)
- Process states: running, waiting, stopped or zombie? (4:20)
- The scheduler: who gets a CPU, and for how long? (3:55)
- The run queue and the load average (3:33)
- Priorities and the nice value (3:45)
- Counting context switches with vmstat and pidstat (3:58)
- CPU affinity: pinning a process to chosen CPUs (3:33)
- Why a virtual CPU is just a thread (4:00)
Data-centre basics
- Server racks and rack units (2:43)
- How power reaches a rack (3:47)
- Hot aisles and cold aisles (3:29)
- Structured cabling and patch panels (4:00)
- Top-of-rack switches and the out-of-band network (4:01)
- Colocation: cages, remote hands and cross-connects (3:32)
- Labelling and documentation (4:01)
- Safety and change rules on site (3:59)
Hardware failure and health
- How disks fail, and how SMART warns you (4:01)
- Memory errors: the ones fixed and the ones that are not (4:09)
- Sensors, fans and the BMC's event log (3:35)
- Network link errors (3:40)
- Predictive failure, and opening a vendor support case (3:27)
- Replacing a part safely: hot-swap or downtime (3:32)
- Burn-in testing of new hardware (3:28)
Firmware settings that matter on a virtualization host
- Turning on VT-x or AMD-V (3:52)
- The IOMMU setting: VT-d or AMD-Vi (3:21)
- SR-IOV in firmware (3:05)
- Hyper-threading on or off in firmware (3:02)
- Power profiles, C-states and P-states (2:50)
- NUMA and sub-NUMA settings in firmware (3:07)
- UEFI boot mode and Secure Boot on a host (2:46)
- Checking firmware settings from Linux (3:03)
The shell and the filesystem tree
- What is a shell? (3:13)
- Getting help on the command line (2:41)
- Absolute and relative paths (2:42)
- The Linux directory tree (3:10)
- Files, hard links and symbolic links (3:04)
- Copying, moving and deleting safely (2:49)
- Finding files and programs (2:37)
- Pipes and redirection (2:35)
- Environment variables and PATH (2:49)
- History, completion and shortcuts (2:39)
Users, groups, permissions and sudo
- Users and groups: the files behind them (2:49)
- Who am I? The id and whoami commands (2:47)
- File modes: read, write and execute (2:55)
- Changing owners and rights: chown and chmod (2:52)
- umask: why new files get their rights (2:48)
- setuid, setgid and the sticky bit (2:46)
- sudo and the sudoers file (2:53)
- su or sudo: two ways to act as root (2:53)
- System users: accounts that run services (2:34)
- ACLs in brief: rights for named people (2:47)
- Diagnosing permission denied (2:39)
Processes, signals, /proc and /sys
- Reading the process list with ps (4:04)
- Watching live load with top and htop (3:38)
- What each signal means: TERM, KILL, HUP, STOP and CONT (4:06)
- Killing a process safely (3:27)
- Foreground, background, and surviving a logout with nohup (3:41)
- Zombie and orphan processes (3:46)
- What is inside the proc folder for a process (3:26)
- The sys folder: the kernel's view of devices (3:11)
- lsof: the files a process holds open (3:44)
systemd and logs
- What does systemd do? (3:29)
- Units and unit files (2:55)
- Reading a service's status (2:42)
- Dependencies and targets (2:53)
- Writing your own service (2:50)
- When systemd restarts a service (2:50)
- Timers and cron: which one catches up? (2:38)
- Finding the lines you need in the journal (2:50)
- Log files, rsyslog and log rotation (2:49)
- A service that will not start (2:51)
- Start now, or start at boot? (2:46)