Intermediate Pro Subscription Required

Virtualization in Practice: The Arithmetic Behind Hosts, Machines and Clusters

Learn how a virtual infrastructure is really sized and run, with Python on invented host and machine data in your browser. Place machines on hosts with a CPU ratio and a RAM reserve, audit a thin-provisioned datastore, find old snapshot chains, test whether a cluster survives losing a host, work out live migration by pre-copy rounds, find zombie and oversized machines, check VLANs against trunks, read CPU ready time, and write the monthly cluster review. The data is generated for you alone, and the functions you write also run on data you cannot see. Then fix three everyday problems at a simulated Hyper-V PowerShell prompt: a machine that will not start, checkpoints that fill the storage, and a machine on the wrong switch.

6-8 hours of study Builds toward: Systems Administrator 12 modules

Practise on your own computer

The labs in the lessons run in your browser. To repeat them, go further and try the capstone on your own machine, set up the environment with these free guides:

A virtual infrastructure runs on a few kinds of arithmetic: how many machines fit on a host, how much real storage stands behind the promised storage, how long a snapshot has been growing, whether the cluster can lose a host, how fast a machine can be moved while it runs. Each of these is a small rule that is easy to get slightly wrong, and a slightly wrong rule shows up as forty paused machines on a Saturday night.

This is the seventeenth season of Sabi Logistics’ story, told from the server room. Musa, Ifeoma, Emeka, Halima and Chidi bring you problems from the day-to-day work. Every case gives you generated hosts, machines, datastores or readings, a starter script, and checks that read what your Python leaves behind. The functions that you write are also run on hidden data, with the edges that real clusters find first: a limit reached exactly, an empty cluster, a machine that dirties memory as fast as the link, a size one gigabyte under the line.

You need nothing installed. Everything uses the Python standard library (json, datetime) and runs in your browser (about 10 MB the first time). All hosts, machines and people are invented: never use real ones.

What you need first

The case files use Python (it runs in your browser, nothing to install). You should be comfortable with variables, lists, dictionaries, loops and functions. If you are not yet, read the Python primer for the case files first (it takes about an hour), or take the free course Python for Case Files, which teaches the same ideas with nine small hands-on jobs.

Every lab starts with a how to do this lab panel: the steps, what each answer must look like (its shape, never its value), and the first lines of your own files. A wrong answer comes with a hint, and when every answer is right you can see one good way to write it. These labs teach the rules and edge cases behind the real tools, and how to automate an audit with a script. Each lesson ends with a box of the real commands that you would type on a real system.

What you will learn

  1. Place machines: CPU overcommit, a RAM reserve, disk, and first fit.
  2. Watch thin storage: provisioned against used, the overcommit ratio and the days left.
  3. Audit snapshots: delta growth, chain depth and age, and why a snapshot is not a backup.
  4. Test N+1: restart a failed host’s machines by priority on the survivors.
  5. Move a running machine: pre-copy rounds, downtime and the machines that never settle.
  6. Fight sprawl: zombie, idle and oversized machines, with exact rules.
  7. Check the virtual network: zones, VLANs and trunks.
  8. Read CPU ready time: the sign of an overcommitted host.
  9. Review the cluster: one page with statuses, the worst host and N+1.

The console jobs

The last three lessons are different. They give you a simulated PowerShell prompt on a generated Hyper-V host, and you type the real cmdlets (Get-VMHost, Get-VM, Start-VM, Stop-VM, Set-VMMemory, Get-VMSnapshot, Remove-VMSnapshot, Get-VMSwitch, Get-VMNetworkAdapter, Connect-VMNetworkAdapter, Set-VMNetworkAdapterVlan) with pipelines, as on a real host. The simulator copies the real traps: a machine does not start when the host has not enough free memory, memory can only be changed while a machine is off, a checkpoint is not a backup, a private switch has no way out, and a machine on the wrong VLAN looks like a broken network. The checks read the state of the host, so a right idea done to the wrong machine fails. No Python is needed for these three, and nothing typed reaches a real host.

How it works

Each case is a call from someone at Sabi Logistics, a short brief, a lab with a starter script, a twist and a debrief that says what a senior systems administrator would do next. Write the Python, run it, press Check my answers, and fix what the checker tells you. When every check passes you get a case reference to submit, and a short write-up to practise explaining your work to the person who asked for it.

The capstone asks you to design and review the capacity, resilience and hygiene of a small virtual infrastructure of your own, and to say honestly what you could not check.