Set up your lab
Create lab VMs
Many courses run in real Linux VMs: multi-node clusters, storage, networking. This page shows what each course needs and how to create the VMs on your machine.
Is a cluster in Docker enough for you? Install Kubernetes locally
What your course needs
The details come from the courses themselves (“What you need” on the course page).
| Course | Lab |
|---|---|
| Gateway API | Part C/D · Day 8–14: A Proxmox host (Proxmox VE 9.x) with approx. 18 vCPU, 36 GB RAM and 300 GB disk for six VMs. |
| LLMs on Kubernetes | Proxmox · Part B: A Proxmox host with at least 16 cores, 64 GB RAM and 600 GB SSD for six VMs. |
| LLM platforms | Lab: macOS or Linux with Docker (at least 6 GB of RAM for the Docker VM), kind, kubectl, helm, go, python, tofu and ansible. VM: The Linux VM llm-vm via multipass (Ubuntu 24.04, 4 CPU, 8 GB) – the kind cluster plus the VM need about 10 GB of RAM together. |
| Container tools | Lab: An Ubuntu 26.04 VM with 2 CPUs, 4 GB RAM and a 40 GB disk, created with Multipass on a Mac in the book. |
| Kubernetes | Part 2 · Days 12–15: Three Ubuntu 24.04 VMs via Multipass (2 CPUs each, 4 or 3 GB RAM); any other Ubuntu VM with SSH and sudo works too. |
| Rancher | Part 1: A Mac with Rancher Desktop and at least 20 GB of free disk space, plus a small VM for k3s. From Part 2: VMs via Multipass: rancher (4 CPUs, 8 GB) and werk1 to werk3 (2 CPUs, 3 GB each); a Mac with 24 GB RAM is recommended. |
| Kong | Lab: An Ubuntu 24.04 VM kong with 2 CPUs and 4 GB RAM via Multipass, which you work on over SSH. Days 13 and 14: A small second VM dp and a VM k3s. |
| Keycloak | Lab: An Ubuntu 24.04 VM kc with 2 CPUs and 4 GB RAM via Multipass, over SSH; you open the browser on your laptop. Day 14: An additional VM k3s with 2 CPUs and 4 GB RAM. |
| Shell scripting | Lab: An Ubuntu 26.04 VM sh with 2 CPUs and 4 GB RAM via Multipass; any Linux VM with Bash 5, sudo, Docker and internet access works too. Day 14: A small second VM ziel with 1 CPU and 1 GB RAM. |
| OpenTofu | An Ubuntu 24.04 VM tf with 4 CPUs and 8 GB of RAM via Multipass; Docker, k3s, S3 storage and Gitea run inside it, no cloud account needed. |
| GitHub Actions | Lab: An Ubuntu 26.04 VM with 2–4 CPUs and 4–8 GB RAM via Multipass, or any Linux VM with sudo and internet access. |
| Observability on Kubernetes | Lab: An Ubuntu 26.04 VM with 4 CPUs and 8 GB RAM via Multipass, or any Linux VM with sudo and internet access. |
| kro | Lab: An Ubuntu 24.04 VM with 2 CPUs and 4 GB RAM via Multipass, or any Linux VM with sudo and internet access. |
| Flux | Lab: A Linux VM with 2 CPUs, 4 GB RAM and internet access – Day 0 shows the way with Multipass. |
| OpenNebula | A Linux VM with Ubuntu 24.04, 2 CPUs, 4 GB RAM, a 30 GB disk, internet access and nested virtualization – Day 0 shows how to check this. |
| KVM | Lab: Two Ubuntu 24.04 VMs with nested virtualization on the same network: kvm1 with 4 vCPUs, 8 GB RAM, an 80 GB disk, kvm2 with 2 vCPUs, 4 GB RAM, a 60 GB disk. |
| GitOps with Argo CD | Lab: Two Ubuntu 24.04 VMs on the same network: argo with 4 vCPUs, 8 GB RAM, 40 GB disk and, from Day 11, prod with 2 vCPUs, 4 GB RAM, 30 GB disk. |
| Alertmanager and karma | Lab: A Linux VM with Ubuntu 24.04, ideally with 4 vCPUs, 8 GB RAM and a 40 GB disk, with internet access |
| Kubernetes attack and defense | Lab: Three Ubuntu 24.04 VMs with SSH access for an RKE2 cluster: one server, two agents |
| CKA | Three VMs with Ubuntu 24.04 (one with 2+ vCPU and 4+ GB RAM, two with 2 vCPU and 4 GB each), on the same network, with SSH access and sudo |
| CKAD | Three VMs with Ubuntu 24.04 on the same network, with SSH access and sudo: one for the control plane (4 vCPU, 12 GB RAM) and two workers (2 vCPU, 4 GB each) |
| CKS | Three VMs with Ubuntu 24.04 on the same network, with SSH access and sudo: one for the control plane (4 vCPU, 12 GB RAM) and two workers (2 vCPU, 4 GB each) |
| Cilium | From Day 0: Four VMs with Ubuntu 24.04 on the same network, with SSH access and sudo: cp1 (4 vCPU, 11 GB RAM), worker1 and worker2 (2 vCPU, 3 GB each), router (2 vCPU, 3 GB) From Day 17: A fifth VM west with Ubuntu 24.04 (4 vCPU, 4 GB) for the second cluster |
| PostgreSQL | Part 1 · Days 0–13: Two VMs with Ubuntu 24.04 on the same network, with SSH access and sudo: pg1 (4 vCPU, 8 GB RAM) and pg2 (2 vCPU, 4 GB RAM) |
| Linkerd | From Day 12: Another VM with Ubuntu 24.04 (2 vCPU, 4 GB) for the second cluster west, reachable from cp1 via SSH with sudo |
| k0s and LINSTOR | Lab: Four VMs with Ubuntu 24.04, each with 2 vCPU and 3.8 GiB RAM, SSH with a key and passwordless sudo |
| Helm Charts | Lab: One VM with Ubuntu 24.04, 2 vCPU and 4 GB RAM for k3s, Helm 4 and zot – with 8 GB it is relaxed Internet: Internet access from the VM for images and tool downloads from GitHub; Days 14–18 download further tools from the official release pages Day 18: A browser on your machine and an SSH tunnel to the VM for the Argo CD UI |
| Debugging Kubernetes | Lab: Three VMs with Ubuntu 24.04, SSH access and sudo for the RKE2 cluster – in the lab 4 vCPU/11 GiB and twice 2 vCPU/4 GiB Days 18–19: A fourth VM (4 vCPU, 8 GiB) with hardware virtualization (/dev/kvm) as the QEMU host for the Talos cluster Internet: Internet access from the VMs for images and tool downloads from the official release pages |
| Kubernetes day 2 | Lab: Three fresh VMs with Ubuntu 24.04, SSH access and sudo – in the lab 4 vCPU/11 GiB and twice 2 vCPU/3.8 GiB Day 14: A VM for the k3s server – it can also be one of the other machines in your lab Internet: Internet access from the VMs for packages (pkgs.k8s.io), images and tool downloads |
| System design | Lab: Three VMs with Ubuntu 24.04, SSH access and sudo on a shared network – in the lab 4 vCPU/11 GiB and twice 2 vCPU/3.8 GiB Internet: Internet access from the VMs for packages, Go modules and downloads from the official release pages |
| Linux networking | Lab: One VM with Ubuntu 24.04, SSH access and sudo – in the lab 2 vCPU and 3.8 GiB, all routers and hosts run inside it as namespaces Internet: Internet access from the VM for the packages on Day 0, after that everything stays inside the VM |
| SOPS for Kubernetes | Lab: One VM with Ubuntu 24.04 and 4 vCPU for k3s, Forgejo and OpenBao – with 4 GiB RAM you get by, with 8 GiB it is relaxed Internet: Internet access for the VM for images and tool downloads; you do not need an account at a Git provider |
| Plausible Analytics | Lab: One VM with Ubuntu 24.04 for Docker, Plausible CE and a browser in a container – 4 GiB RAM is enough, from 6 GiB things get relaxed Internet: Internet access for the VM for images and the Docker package repository |
| GPU infrastructure on Kubernetes | Lab: One VM with Ubuntu 24.04 and Docker – in the lab 4 vCPU, 8 GB RAM and at least 30 GB of free disk, running a three-node kind cluster |
| Kubernetes tools | Lab: One VM with Ubuntu 24.04 and Docker – in the lab 4 vCPU, 8 GB RAM and about 30 GB of free disk, running a three-node kind cluster with Cilium Browser: For Headlamp, Hubble UI and Goldilocks – a browser on your machine that can reach the VM |
Multipass: the way used in the courses
Multipass by Canonical starts Ubuntu VMs with a single command – on macOS, Linux and Windows. Many courses show this way on Day 0. Installation
# Linux sudo snap install multipass # create VMs, e.g. for Argo CD multipass launch 24.04 --name argo --cpus 4 --memory 8G --disk 40G multipass launch 24.04 --name prod --cpus 2 --memory 4G --disk 30G multipass info argo | grep IPv4 # get in, stop, delete multipass shell argo multipass stop argo prod multipass delete --purge argo prod
- The course labs ran on KVM VMs with Ubuntu 24.04. We did not run Multipass itself for this page – the commands follow the official guide and the courses' Day 0.
- On a Mac with Apple Silicon the VMs are ARM64. That is why the courses detect the architecture with dpkg --print-architecture.
- KVM and OpenNebula need nested virtualization and are tested on x86_64 only.
- Any other Linux VM with sudo, SSH and internet access works too.
Other ways
- Vagrant: describe VMs in a file (MIT license), for example with VirtualBox or libvirt.
- Lima · UTM: Linux VMs on the Mac.
- Your own hardware or a hypervisor such as Proxmox or KVM – that is how the labs in the courses were built.
We have not tested these ways for this page.
Checklist before Day 0
Run each command in every VM. The output comes from an Ubuntu 24.04 VM with 4 vCPU and 8 GB RAM.
nproc
4
Expected: at least as many CPUs as your course lists
free -h | head -2
total used free shared buff/cache available
Mem: 7.8Gi 2.3Gi 301Mi 49Mi 5.5Gi 5.4Gi
Expected: total at least the RAM from the table
df -h / | tail -1
/dev/sda1 77G 23G 54G 30% /
Expected: enough free space (Avail)
timedatectl show -p NTPSynchronized
NTPSynchronized=yes
Expected: yes – otherwise certificates and cluster joins fail
ping -c1 -W2 172.16.0.126 | head -2
PING 172.16.0.126 (172.16.0.126) 56(84) bytes of data.
64 bytes from 172.16.0.126: icmp_seq=1 ttl=64 time=1.33 ms
Expected: a reply from every other lab VM (use its address)
curl -fsSI https://github.com | head -1
HTTP/2 200
Expected: internet access
dpkg --print-architecture
amd64
Expected: amd64 or arm64 – arm64 on a Mac with Apple Silicon
grep -Ec '(vmx|svm)' /proc/cpuinfo
8
Expected: only for KVM and OpenNebula: greater than 0, otherwise nested virtualization is missing