A shell lab costs nothing beyond your own machine; a vm lab costs the
machines it uses, and nothing more: dsoxlab start <lab> only counts and brings
up the machines of the lab you play. The core of the Kubernetes catalogue
declares three machines, 10752 MB of memory and 6 virtual CPUs, but 137 of its
140 labs only use 4096 or 6656 MB. Two labs bring up an 8192 MB Cilium cluster,
and the high availability lab adds 6656 MB to the core. The Linux catalogue
declares three machines and 5120 MB. This lesson reads those figures at the
source, the meta.yml file of each catalogue, then explains what start and
dsoxlab doctor make of them. It is written for anyone who wants to know,
before installing a hypervisor, whether their machine will be enough. The Linux
and Ansible totals are those the catalogues declared on 2026-09-26. The
Kubernetes ones come from the recount of 2026-11-16. They give an order of
magnitude, and the meta.yml of your catalogue remains the reference.
What you will learn
- Tell
shelllabs, which are free, fromvmlabs, which bring up machines. - Read in a
meta.ymlwhat a catalogue requires, and the contract's default values. - Quantify the Linux, Ansible, Kubernetes and Terraform catalogues, from their published
meta.yml. - Know how many machines
dsoxlab startbrings up for a lab, and whatdoctorrun on its own counts in addition. - Plan the margin the CPU imposes, and understand why the declared disk is not the disk consumed.
- Chain labs without running out of memory: free one lab's machines before moving to another group.
Two kinds of labs, and only the first is free
A shell lab is played in a directory of your machine: the
demonstration lab is one, and so is
the whole Terraform catalogue. It requires neither a hypervisor nor reserved
memory. A vm lab starts real virtual machines next to you, because what
it makes you prove, an AppArmor profile, a kubeadm upgrade, a systemd service
that survives a reboot, cannot be proved in a container that shares the host's
kernel.
A third situation exists, halfway between the two: a shell lab that declares
services in containers, such as a cloud emulator or a database, requires
Docker without requiring a hypervisor. Eleven labs of the Terraform
catalogue are in that case, and it is for them that doctor classes Docker as
required there.
Where to read what a catalogue requires
Everything is written in the infra: block of the meta.yml, at the root of
the catalogue's repository, and nowhere else: a catalogue ships no Terraform,
it declares its hosts and dsoxlab does the rest. Every entry of
infra.hosts carries four figures, and the contract sets their default value
when the author does not write them:
| Field | Default | What it declares |
|---|---|---|
ram_mb | 1024 | The machine's memory, in MB |
vcpu | 1 | The number of virtual CPUs |
disk_gb | 10 | The size of the system disk, in GB |
extra_disk_gb | 0 | A second disk, for labs that require a real block device: partitioning, LVM, RAID, quotas |
The Kubernetes catalogue, for instance, declares its three hosts this way. The
first two form a cluster installed by kubeadm, the tool that sets Kubernetes up
on real machines. Its meta.yml comments the choice of the control plane:
kubeadm refuses to initialise below two CPUs, and the control plane carries
etcd, the API server and, during the diagnosis labs, Pods that are broken on
purpose. The third host, k8s-kind.lab, does not join that cluster: it carries
Docker and kind, a tool that runs a whole Kubernetes cluster inside Docker
containers. It serves the 33 labs that are played on kind alone, among them
those of the
Fundamentals
module of the Kubernetes course, such as k8s-lire-l-etat-d-un-pod-en-erreur
and k8s-challenge-premier-deploiement. These three machines make up the core
of the catalogue. The same meta.yml also declares eight optional hosts, which
only some labs use: the section on optional hosts details them.
# meta.yml of the kubernetes-dsoxlab-training catalogue, excerpt: the three hosts of the coreinfra: provider: - kvm - incus network: lab-k8s hosts: - name: k8s-cp.lab distro: ubuntu24 role: control-plane ram_mb: 4096 vcpu: 2 disk_gb: 25 - name: k8s-w1.lab distro: ubuntu24 role: worker ram_mb: 2560 vcpu: 2 disk_gb: 20 - name: k8s-kind.lab distro: debian13 role: kind ram_mb: 4096 vcpu: 2 disk_gb: 30Two commands save you from opening the file. dsoxlab doctor carries a
Resources check that adds up those declarations and compares them with what the
machine offers: run on its own, it gives an indication about the hosts of the
core, without the optional hosts. For a given lab, it is dsoxlab start <lab>
that decides, and dsoxlab show <id> says its runtime.
To know which machines a lab targets, show is not enough: its sheet does not
display the machine's name. That name is read in the lab's lab.yaml, in the
host field of its target (runtime.targets), to which its roles are added
when it targets several machines. dsoxlab show <id> --json returns only the
target, in lab.runtime.target. The section
How many machines does dsoxlab start bring up for a lab?
explains how dsoxlab reads those two fields. The lesson
Installing dsoxlab locally details the checks
of doctor, and
Finding your next lab the sheet
that show returns.
What each catalogue declares
The machines, the memory and the CPUs below come from the published meta.yml
files, read on 2026-09-26 for Linux, Ansible and Terraform, and on 2026-11-16
for Kubernetes. The number of labs comes from the catalogue manifest embedded in
dsoxlab (templates/catalogues.yml), except for Kubernetes: its 140 labs are
those that dsoxlab doctor displayed, recounted on 2026-11-16 in the
catalogue's repository. The split between shell and vm comes from the
lab.yaml of each catalogue, read on 2026-10-30 (on 2026-11-16 for Kubernetes).
These totals add up all the machines of the declared core. That is what
doctor run on its own compares with your machine's memory; for a given lab,
start only keeps that lab's own machines, as the next section explains. The
Kubernetes catalogue also declares eight optional hosts, which enter neither
this table nor the doctor check. The disk is the sum of the disk_gb and
extra_disk_gb values, and it reads as a ceiling, for the reason explained
further down.
| Catalogue | Labs | Machines | Memory | vCPU | Declared disk | Providers |
|---|---|---|---|---|---|---|
Linux (linux) | 89, of which 69 vm | 3: two AlmaLinux 10, one Ubuntu 24.04 | 5120 MB | 4 | 65 GB, of which 15 GB of extra disks | kvm, incus, outscale |
Ansible (ansible) | 113, of which 88 vm | 4: one control node and three managed nodes, all AlmaLinux 9 | 5632 MB | 5 | 60 GB, of which 5 GB extra | kvm |
Kubernetes (kubernetes) | 140, all vm | Core of 3: one control plane and one worker on Ubuntu 24.04, one kind host on Debian 13; plus 8 optional hosts, 11 in all | 10752 MB for the core; 17408 MB for the optional hosts | 6 for the core | 75 GB for the core | kvm, incus |
Terraform (terraform) | 91, all shell | none | none | none | none | no infra: block |
The Terraform catalogue has no infra: block, by design: Terraform runs on
the learner's machine, so all its labs are shell and dsoxlab provision is
never called there. Its prerequisites are of another kind, and its meta.yml
names them: terraform on the PATH for every lab, libvirt and the
dmacvicar/libvirt provider for the single section on first infrastructures,
and floci, a local AWS emulator, for the AWS section.
How many machines does dsoxlab start bring up for a lab?
dsoxlab start <lab> only counts and brings up the machines of the lab you
launch, not those of the other labs of the catalogue. An old version of
dsoxlab counts and brings up the whole catalogue: a Kubernetes lab would then
require the 10752 MB of the three machines. To know where you stand, type
dsoxlab --version and update with uv tool upgrade dsoxlab (or pipx upgrade dsoxlab if you installed it with pipx).
Take the lab k8s-lire-l-etat-d-un-pod-en-erreur, which only targets the kind
host. The core of the catalogue declares three machines, and start brings up
only one:
ℹ Terraform target: k8s-kind.lab (4 resources)✔ Provisioning complete: 1 targeted host(s) out of 3 declared are ready. The others were not brought up, so they were not checked.Look at the second line: "1 targeted host(s) out of 3 declared" says that dsoxlab targeted a single machine, and the third line says that the other two were not brought up. A single VM is created, and the lab is prepared on it. This output was captured on 2026-11-10.
The memory check that start <lab> runs follows the same rule: it only counts
the machines of that lab, and only those that are not running yet. A second
start on an infrastructure that is already up prints "already provisioned: the
declared hosts have addresses, nothing to build again", and asks for 0 MB.
Launching a lab again therefore does not cost its machines' memory a second
time.
What a lab really consumes is read in its lab.yaml. The targets are
alternatives: the lab is played on one or the other. The roles designate
hosts used at the same time, and only those add up. Counted that way, target
by target, over the 140 labs of the Kubernetes catalogue (recount of
2026-11-16):
| Machines used by the lab | Labs | Memory requested |
|---|---|---|
One kubeadm machine (k8s-cp) | 99 | 4096 MB |
| The kind host alone | 33 | 4096 MB |
| The control plane and the worker node | 5 | 6656 MB |
| The Cilium cluster, three machines | 2 | 8192 MB |
| The high availability lab, four optional hosts | 1 | 6656 MB, on top of the core |
The first 137 labs ask for no more than 6656 MB, the complete kubeadm cluster. That figure, and not the 10752 MB declared for the whole core, sets the memory to plan for them. The two labs of the Cilium cluster bring up three machines, 8192 MB in all. The high availability lab is the exception: it brings up four more machines, as the next section quantifies.
That leaves the case of the Fundamentals module, where memory is tightest. Its labs are played on the kind host, a 4096 MB VM, and each creates its own kind cluster and keeps it, because it is its foundation.
Two of them, k8s-lire-l-etat-d-un-pod-en-erreur and
k8s-challenge-premier-deploiement, were played one after the other in a VM,
on 2026-11-10: two clusters run side by side at the end, and
both labs pass. At the busiest moment, 2048 MB were still available out of 3915
MB usable, with no process killed for lack of memory, even though the VM has no
swap: 4096 MB are therefore enough for these two labs. That measurement was
not redone for the other labs of the kind host.
Two limits are worth knowing. The base images of the whole catalogue, Debian 13
and Ubuntu 24, are created even when a single machine is brought up: the gain
concerns memory and the number of VMs, not the initial download or the disk of
the images. And dsoxlab doctor run on its own does not reason lab by lab: its
required memory check counts the hosts of the core, 10752 MB for Kubernetes, and
ignores the optional hosts. On a machine with less than 10752 MB free, it can
therefore show a failure while start <lab> passes, as the troubleshooting
section below details. The lesson
Starting a lab details the steps of
start.
How much does a lab with optional hosts, such as high availability, cost?
The Kubernetes catalogue declares eight optional hosts in addition to the three
of the core, 17408 MB in all (recount of 2026-11-16): net-cp (4096 MB),
net-w1 and net-w2 (2048 MB each) for the Cilium cluster, k8s-w2 (2560 MB),
then ha-cp1, ha-cp2 and ha-cp3 (2048 MB each) and the load balancer
ha-lb (512 MB) for high availability. The table above does not count them,
and neither does dsoxlab doctor.
A lab that uses them only starts its own optional hosts: start <lab> and
run <lab> both pass Terraform only the lab's machines. It therefore does not
start the rest of the core, and never stops it either. The lab
cka-control-plane-haute-disponibilite is the case recorded here. It brings up
the four ha-* hosts, 6656 MB declared. During the measurement, the kubeadm
cluster of the core, k8s-cp and k8s-w1, was already running: it had been
started before the lab, not by it.
The figures below come from a measurement of 2026-11-16, made with the core already running: a machine with 46.8 GB of memory, 45 samples taken every 20 seconds, from 17:57 to 18:12, while the lab was played and then cleaned up. Each sample records the available memory, the free space of the VM pool and the number of running virtual machines. They only hold for that machine and that day.
| Moment of the measurement | Available memory | Running domains | Free disk in the VM pool |
|---|---|---|---|
| Before the lab, 17:57 | 35,490 MB | 2 (k8s-cp, k8s-w1) | 733 GB |
| At the lowest, 18:01 | 28,869 MB | 6 | 726 GB |
| Last sample before cleanup, 18:11:38 | 29,091 MB | 6 | 724 GB |
| First sample after, 18:11:58 | 35,850 MB | 2 | 733 GB |
Read the memory first: at the lowest, 28,869 MB remained available, that is 6,621 MB consumed for 6,656 MB declared. In this measurement, the memory actually taken therefore reached the declared memory: the lab's overhead is that of its four hosts. Available memory only recovers to around 29,000 MB for the rest of the lab, and returns to 35,850 MB once the lab is cleaned up. The disk, for its part, behaves like the ceiling described in the next section: the four disks declare 70 GB in all and took about 9 (from 733 to 724 GB free), given back at cleanup.
Three points are worth keeping. First, the overhead of the high availability lab is that of its four hosts, 6656 MB declared and 6621 MB measured. The measurement was made with the core already running (2 domains before the lab, 6 at the lowest): the memory of that core was already taken before the lab, and it adds to the lab's own if the core is running. The case of a stopped core was not measured. Next, on an appliance set to 8192 MB where nothing else runs, the lab alone would fit according to the arithmetic (6656 MB out of 8192 MB, about 1.5 GB left for the system), without a measurement. With a core that is already running, the sum no longer fits. The two labs of the Cilium cluster, which bring up 8192 MB of machines by themselves, leave almost nothing for the system on that same appliance, according to the same arithmetic, without a measurement. Finally, keep a margin for the system and whatever you have open next to it: count the declared total, then add the roughly one and a half gigabytes estimated above for Debian and the desktop.
The declared disk is not the disk consumed
The KVM template packaged in dsoxlab creates qcow2 volumes backed by a base image, and a qcow2 volume is allocated on demand: the 25 GB declared for the Kubernetes control plane are a ceiling the machine only reaches if it fills them. The changelog of the stephrobert/dsoxlab repository reports the measurement of a user of the Linux catalogue: 65 GB declared for 3.2 GB actually used, on a machine that provisioned without the slightest hitch. It is an isolated reading, not an average.
What really takes up space is first the base image of each distribution, downloaded once into the storage pool and shared by every machine that uses it, then the writes of each lab. A lab that formats a 10 GB extra disk or installs a cluster consumes more than a lab that edits three files, but none reaches the declared ceiling.
dsoxlab doctor takes that into account, and it is useful to know when reading
its report: it adds up the declared sizes and announces them as a ceiling
allocated on demand, but it does not turn it into a verdict. A healthy
installation is therefore not painted red because its volumes could in theory
fill the pool. Memory, on the other hand, is compared: doctor run on its
own compares MemAvailable with the sum of the ram_mb values of the hosts of
the core, and the check fails when the second exceeds the first, which gives an
indication about the whole core (the optional hosts of the Kubernetes catalogue
are not counted). start <lab> makes the same comparison on only the lab's
machines that are not running yet, and it is the one that decides for a lab.
The CPU decides the delay, not only the speed
Memory is computed, the CPU is measured. After terraform apply,
dsoxlab provision waits for each host to answer over SSH, within a window of
180 seconds by default, adjustable through the DSOXLAB_HOST_READY_TIMEOUT
variable. A host that does not answer within that delay makes the command exit
with code 8: the infrastructure exists, but it is not usable as it stands, and
dsoxlab infra status says which one and why.
That is where the number of CPUs counts. The appliance is sized for 4 vCPU and 8 GB, and that is not a comfort margin: the three hosts of the Linux catalogue share 5120 MB of memory, but it is the CPU that decides whether they all answer inside the window allowed. The changelog of the repository reports a guest with 2 vCPU where one host is announced ready at 181 seconds, one second after the window closed. The remedy, when code 8 appears, is often more time or more vCPU, never a reinstall.
Planning your machine, by what you play
The total to plan for is made of three parts: the lab's machines, the system that hosts them, and what you keep open next to them. The appliance, imported with 8192 MB, should be able to play the 137 labs of the Kubernetes catalogue that rely on the core, one group of machines at a time: the most demanding asks for 6656 MB of machines, which fits in its 8192 MB. The two labs of the Cilium cluster (8192 MB of machines) and the high availability lab are the exceptions, as the previous sections quantify. With 6656 MB of machines in 8192 MB, about 1.5 GB would remain for Debian, the desktop and whatever is open. That calculation has only been confirmed by a measurement for the two labs of the Fundamentals module. On a Linux workstation with KVM, the same arithmetic applies to the free memory of the whole workstation.
The "one group at a time" matters, because start never shuts down the machines
of the other labs: a machine left running keeps its memory. At the end of the
Fundamentals module, the kind host (4096 MB) is still running, and the first
kubeadm lab asks for 4096 MB more. In an 8192 MB appliance, it is therefore
better to free the kind host first. dsoxlab infra stop --host k8s-kind stops
it and gives its memory back while keeping its disk, or dsoxlab destroy shuts
down all the machines of the catalogue; dsoxlab start <lab> then brings up
what is needed. That advice rests on how start works, not on a measurement.
The disk follows
the same logic: the core of the catalogue declares 30 GB for the kind host and
45 GB for the kubeadm cluster, 75 GB in all, above the appliance's 64 GB, while
one group at a time stays below it. That disk is thin-provisioned, so those sizes
remain a ceiling.
| What you want to play | What the machine hosting dsoxlab has to offer |
|---|---|
The demonstration lab, the Terraform catalogue, the shell labs of the other catalogues | No hypervisor; Docker for the eleven Terraform labs that declare a service |
The Linux or Ansible catalogue in vm labs | 4 vCPU and 8 GB for the guest that provisions; at most 5120 MB (Linux) or 5632 MB (Ansible) of free memory for the machines themselves, that is the catalogue's total, which a lab only reaches if it uses them all |
| A lab of the Kubernetes catalogue | At least 4 vCPU for the machine that provisions (the catalogue declares 6 in all), and 4096 MB of free memory for the 132 labs that use a single machine (99 on kubeadm, 33 on the kind host), 6656 MB for the 5 that also use the worker node. The 8192 MB appliance should be enough for these 137 labs according to the calculation above, one group of machines at a time: dsoxlab destroy frees the earlier machines, then start. The 2 labs of the Cilium cluster ask for 8192 MB of machines, more than what an 8192 MB appliance leaves for the system: plan a better-equipped machine. The high availability lab brings up 6656 MB of machines, its four hosts, which add to whatever is already running: on an 8192 MB appliance where nothing else runs, it fits according to the arithmetic, without a measurement |
| Several whole catalogues, or a single one brought up in full, at the same time | The memories of the running machines add up. The Linux catalogue and the core of the Kubernetes catalogue together require 15872 MB, almost a whole 16 GB workstation, leaving nothing for the system. The second start would be refused with code 2 as soon as free memory drops below what it has to bring up. Each catalogue has its own libvirt network and its own Terraform state, but dsoxlab destroy on one before launching the other remains the cheapest habit |
On a computer with 8 GB in total that hosts the appliance, the
appliance lesson is blunt: bring the VM down to
4096 MB, play the shell labs, and leave the vm labs to a better-equipped
machine, because the VM is then too cramped for a lab's machines. A Linux
workstation with 8 GB and KVM has no such intermediate VM: the real free memory
decides, and start <lab> says whether a lab fits. 16 GB remains the right
target in three cases: playing labs from several catalogues at the same time,
bringing up a whole catalogue at once, or choosing the computer that hosts an
appliance set to 8192 MB.
Troubleshooting
The cases below are those where the machine, not the lab, is at fault. Each
carries a message that names the action to take, and none is fixed by reinstalling
dsoxlab. The message "RAM … MB free / … MB declared" comes from two commands
that do not count the same thing: doctor run on its own counts the hosts of
the core, whereas start only counts the lab's machines.
| Symptom | Cause | Solution |
|---|---|---|
doctor run on its own says "RAM … MB free / … MB declared" as a required check, for instance on a machine with less than 10752 MB free facing the Kubernetes catalogue | doctor run on its own counts the core of the catalogue: it compares free memory with the sum of the ram_mb of its hosts, without the optional hosts, that is 10752 MB for Kubernetes | Do not stop at that figure: run dsoxlab start <lab>, which only counts the lab's machines. If start passes, the machine is enough for that lab |
start <lab> stops with code 2 on memory | Free memory is below what the lab's machines that are not running yet require, 4096, 6656 or 8192 MB for a Kubernetes lab. Two frequent causes: machines of another lab are still running, because start never shuts them down; or dsoxlab is too old and counts the whole catalogue | dsoxlab destroy to free the earlier machines, then dsoxlab start <lab>; or dsoxlab infra stop --host <machine> on each machine of the other lab, which gives its memory back while keeping its disks, then dsoxlab infra start --host <machine> when you return to that lab (see The main dsoxlab commands); check dsoxlab --version and update with uv tool upgrade dsoxlab (or pipx upgrade dsoxlab if you installed it with pipx); otherwise close what consumes, enlarge the VM hosting dsoxlab, or play shell labs |
provision exits with code 8, a host did not answer | The CPU was not enough to start every host within 180 seconds | Run provision again, give the machine more vCPU, or lengthen DSOXLAB_HOST_READY_TIMEOUT |
provision fails on Pool Not Found | On a fresh libvirt installation, no default storage pool exists | dsoxlab doctor prints the commands that create it; or declare storage_pool under infra.providers.kvm in the meta.yml |
Key points
- A
shelllab costs nothing; avmlab costs the machines it uses:start <lab>only counts and brings up those. - The figures live in
infra.hostsof themeta.yml, with 1024 MB, 1 vCPU and 10 GB by default when the author says nothing. - Read on 2026-09-26: Linux 5120 MB and 4 vCPU on 3 machines, Ansible 5632 MB and 5 vCPU on 4, Terraform nothing at all. Read on 2026-11-16: the core of Kubernetes declares 10752 MB and 6 vCPU on 3 machines, of which 4096 MB for the kind host, and the catalogue adds 8 optional hosts to it, 17408 MB.
- In the Kubernetes catalogue (140 labs, recount of 2026-11-16), 99 labs ask for 4096 MB (one kubeadm machine), 33 ask for 4096 MB (the kind host), 5 ask for 6656 MB (control plane and worker node) and 2 ask for 8192 MB (Cilium cluster). The high availability lab adds 6656 to the core.
- A lab with optional hosts, like Kubernetes high availability, adds its machines to whatever is already running, without starting the rest of the core: measured on 2026-11-16, with the core already running, 6621 MB consumed for 6656 MB declared.
doctorrun on its own counts the core of the catalogue, 10752 MB for Kubernetes, without the optional hosts: it is an indication, and its red does not forbidstart <lab>, which decides for a lab.- The declared disk is a ceiling: qcow2 volumes allocated on demand, 65 GB declared for 3.2 GB used in one user's reading of the Linux catalogue.
- Memory is compared machine by machine, the CPU decides whether the hosts answer within 180 seconds.
- A VM or an appliance of 8192 MB should play Linux, Ansible and the core Kubernetes labs, one group of machines at a time. The two labs of the Cilium cluster ask for 8192 MB of machines and do not fit. The high availability lab (6656 MB) would fit according to the arithmetic, without a measurement.
startnever shuts down the machines of the other labs:dsoxlab infra stopgives their memory back while keeping their disks,dsoxlab destroydeletes them.- A computer with 8 GB in total only plays
shelllabs through the appliance; on an 8 GB Linux workstation,start <lab>decides. 16 GB remains the target for playing labs from several catalogues together, or bringing up a whole catalogue; several whole catalogues require more.