Skip to content
Français
Sync not enabled: your progress stays in this browser My learning
Select theme
Français

dsoxlab training: play and validate the site's labs

  • 15 min

By updated

Improve this page

Logo DSOXLab

dsoxlab is the command line that runs the labs of this site's training paths. It prepares a throwaway environment, hands you a mission, then inspects the real state of the system to say whether the skill is acquired and to compute a score. It installs with one command, and the demonstration lab shipped with it needs no virtual machine, no container and no Docker.

This page walks you through a complete lab from end to end, then wires up the catalogues of the training paths. It also opens the dsoxlab training path: four parts, from the installation to writing your own catalogue of challenges. It is written for anyone following a path on this site who wants to prove what they can do, not only read about it.

What you will learn

  • Install the dsoxlab CLI and check that your machine is ready.
  • Play a complete lab without provisioning a single machine.
  • Understand the challenge, check, score model, and how the mark is computed.
  • Get your lab results to the site.
  • Wire up the lab catalogues of the site's training paths.
  • Diagnose the blockers that come back most often when starting out.
  • Place each lesson of the path, from the installation to writing a course.

Prerequisites

Little is needed, and that is deliberate: one of the two Python tool installers, uv or pipx. With uv, no Python has to be installed beforehand, because it downloads the interpreter the CLI needs by itself; pipx, on the other hand, requires Python 3.11 or newer to be in place already. Nothing to clone, nothing to compile. Labs that require virtual machines have extra prerequisites, covered further down this page, but none of them is needed to begin.

What is a verifiable lab?

A verifiable lab is an exercise whose success is measured on the state of a system, by automated tests, not by reading an answer key. That is what dsoxlab brings to the training paths of this site: a quiz checks what you understood, a verifiable lab proves what you can do, and neither replaces the other.

dsoxlab is an engine, not a course. It reads a declarative catalogue: a meta.yml file at the root says what the catalogue offers, and one lab.yaml per lab says what that lab requires. The engine provisions what is asked for, opens the session, then runs tests.

Those tests are its reason to exist. They read the state of the system, never the commands you typed. A lab that requires a running service checks that the service runs, whatever route you took to get there. That rule has a pleasant consequence: every way of succeeding counts, including the one the lab's author never thought of.

On the other hand, dsoxlab carries no teaching content of its own. The guides live on this site, the labs in companion repositories, and the engine knows nothing about Linux, Ansible or Kubernetes in particular.

The challenge, check, score model

Every lab rests on three parts, and each one maps to a command. The challenge is the mission, written in challenge/README.md: it says what has to be produced, with a scale announced task by task. The check is the validation: dsoxlab check runs pytest tests that inspect the system, then records the result. The score starts at 100 points, or at the scale the lab declares, and every hint you take removes a share known in advance.

One detail is worth knowing before you start: as long as neither check nor submit has been run, nothing is written, apart from the hints taken. A lab can therefore be started over without touching the history of marks, and the box on the loop of a lab details the exception of hints.

Installing dsoxlab

One command, and nothing lands on your system apart from the tool itself:

Terminal window
uv tool install dsoxlab # or: pipx install dsoxlab

If you have neither uv nor pipx, the lesson Installing dsoxlab locally gives the commands to install them. Then check that your machine has what it takes. The doctor command lists the steps that are missing, in the order to do them, and leaves optional what the catalogue does not need. With the demonstration catalogue installed (dsoxlab demo), it answers:

Terminal window
dsoxlab doctor
dsoxlab doctor · catalogue dsoxlab-demo · 1 lab · Debian GNU/Linux 13 (trixie)
Everything is ready. 6 required checks pass.
Python 3.15.2 · git 2.47.3 · Labs detected 1 labs
Optional here, installed: Outbound access repo.almalinux.org
Optional here: incus, Docker. Install them too: dsoxlab doctor --fix --clients

The "Optional here" lines name Docker and Incus: none of them blocks anything as long as you are not playing a lab that requires it. The lesson Installing dsoxlab locally details the prerequisites, updating the tool and shell completion.

Playing a first lab, without provisioning anything

The demo command installs a catalogue with a single lab, whose subject is dsoxlab itself. It runs in the shell runtime: no virtual machine, no container, so it works wherever the CLI works. The lesson Playing your first dsoxlab lab with dsoxlab demo takes it up step by step; this section gives the overview.

Terminal: dsoxlab installs the demo catalogue, lists its lab, then prints the score once the work is validated

The sequence above is two commands long, and it is exactly what you are about to type: demo makes the demonstration catalogue active, so there is no directory to move into.

Terminal window
dsoxlab demo
dsoxlab list-labs

The table printed carries one line per lab, with its section, its id, its title, its type, its level, its runtime, its duration and its score. The CLI hides the columns that do not fit in the width of the terminal, here the type and the runtime, and says so under the table:

Available labs
┏━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━━━━┳━━━━━━━┓
┃ Section ┃ ID ┃ Title ┃ Level ┃ Duration ┃ Score ┃
┡━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━╇━━━━━━━━━━╇━━━━━━━┩
│ demo │ premiers-pas │ First steps with dsoxlab │ demo │ 5m │ · │
└─────────┴──────────────┴──────────────────────────┴───────┴──────────┴───────┘
ℹ 2 of 8 columns are hidden, for lack of width: dsoxlab list-labs --long shows
them all.

The Score column shows · as long as no pass of check has been recorded, then the best score obtained. That column is what will tell you where you stand on a catalogue of several dozen labs, and which ones are left to replay.

The loop of a lab: course, mission, hint, validation

Four commands are enough, and they follow each other in this order, the hint remaining optional. The working session opens with dsoxlab run, described in the section "The working directory trap".

The course gives the material. On the catalogues of the training paths, it points to the matching lesson on this site:

Terminal window
dsoxlab course premiers-pas

The mission says what has to be produced, and above all what will be checked:

Terminal window
dsoxlab challenge premiers-pas

The demonstration lab asks for three files under reponses/, the third of which is only found in the hint: you will therefore take one. Its mission states its grading rule in black and white: "The files, and nothing else. Not your shell history, not the commands you typed. Any way of creating them counts."

The hint is available at any time. It is the mission that announces its cost, before you ask for it: hint asks for no confirmation and records the cost before showing the hint. On this lab, it removes 20 points out of 100:

Terminal window
dsoxlab hint premiers-pas

The validation runs the tests, prints the detail of each one and records the result:

Terminal window
dsoxlab check premiers-pas

The closing panel sums up the three figures that matter: the tests passed, the hints used and the score. Here are the ones obtained by playing this lab with one hint taken:

What the panel saysValue obtained
Tests passed3 out of 3
Hints1 used, 20-point penalty
Score80 out of 100 points

The scale is therefore readable: success earns the points, a hint reduces them, and dsoxlab scores keeps the complete history, failed attempts included.

Getting your results to the site

The mark stays on your machine first: neither dsoxlab check nor dsoxlab submit sends it anywhere. For it to count in My learning, on the Lab box of the lessons and in the lab catalogue, you are the one who gets it to the site.

Two routes exist. With an optional account, dsoxlab login then dsoxlab push send the attempts of the current catalogue to your account, and every linked browser receives them when it syncs. Without an account, dsoxlab export writes a JSON file that you import in My learning. In both cases, sending is direct but never automatic: nothing leaves until you type the command. The detail is in The main dsoxlab commands, section “Sending your evidence to your account”.

The working directory trap

Here is a mistake that costs a lot of time, and it cannot be guessed. dsoxlab run does more than print instructions: it prepares an isolated working directory, challenge/work/, and drops you into it.

Terminal window
dsoxlab run premiers-pas
✔ Lab premiers-pas ready. You are now in challenge/work/, your isolated working
directory.

The tests read paths relative to that directory. If you create your files somewhere else, for instance straight under challenge/, they do not find them, the score drops to zero, and the message invites you to create a file you have just created. The demonstration lab's tests are written in French only, whatever your language setting, so the assertion reads:

E Crée le fichier, par exemple : mkdir -p reponses && echo <le mot> > reponses/indice.txt
E assert False
E + where False = exists()

The rule fits in one sentence: always go through dsoxlab run before working, and stay where it drops you. Type exit to leave the session without recording anything.

Which lab catalogues to wire up?

The demonstration lab only serves to understand the mechanics. The real labs live in catalogues, one per training path, which the CLI knows how to install and keep up to date:

Terminal window
dsoxlab catalog list
dsoxlab catalog add linux

catalog add clones the catalogue and makes it active at once: the commands that follow work on it with no further step. catalog use <id> is only for switching between two catalogues that are already installed.

Nineteen catalogues are known by their identifier (dsoxlab catalog list, on 2026-11-19): linux, ansible, terraform, kubernetes, devsecops, python, iam, dev-pour-ops, cicd, cloud, containers, github-actions, publier-service, proxmox, gitlab-ci, bdd, artefacts, mlops and applications-ia. Kubernetes therefore installs like the others, with dsoxlab catalog add kubernetes. A repository absent from that list installs through its git URL, which catalog add accepts just as well as an identifier. The lesson Installing and managing your dsoxlab lab catalogues details installing, activating and removing.

The page Every lab lists the full contents of those catalogues, filterable by skill and by certification, with, for each lab, the guide of the site that teaches what it measures. That is where to go to pick a catalogue on evidence rather than on its name.

Once a catalogue is active, dsoxlab next recommends the next lab and dsoxlab progress shows your progress block by block. That is the point of view most missing on a long training path: knowing what is left to prove. The lesson Finding your next dsoxlab lab explains how to choose in a catalogue. The pages that tie these labs to their lessons are the validation of Linux skills, the Linux training path and the Kubernetes training path, and the reading conventions explain how a lab appears inside a guide.

Labs that require machines

Some skills cannot be proved in a container, because the kernel is shared with the host. An AppArmor profile, a kubeadm upgrade, a broken kubelet or an etcd restore require real machines. Those labs then declare a vm runtime, and two commands frame their life cycle:

Terminal window
dsoxlab provision # creates the lab's infrastructure
dsoxlab destroy # tears it down, machines left outside the state included

The dsoxlab start <id> command plays the whole sequence of a lab, context, prerequisites, infrastructure then session, announcing each step with the command that replays it alone. It is the command to learn first on a catalogue of vm labs: when a step fails, it names which one, and nothing beyond it is attempted. The lesson Starting a dsoxlab lab with dsoxlab start details it.

The doctor command tells you whether the expected provider, KVM or Incus, is present. Always destroy the infrastructure afterwards: those machines keep consuming memory and disk long after the lab is over. The lesson Sizing your machine for the labs puts a figure on what each catalogue requires, and the lesson Choosing a machine to train with dsoxlab helps you decide where to play them: your own computer, the appliance or a dedicated machine.

What this training path contains

The path follows the order in which a learner meets the questions: on which machine to install the tool and play a first lab, how to choose the labs that suit them, how to play a lab from its start to its validation, then how to write their own labs. Every lesson reads on its own, but part 4 assumes you have already played several labs with the first three parts.

PartLessonsReading
Part 1 · Install and prepare your machineInstalling dsoxlab locally; The appliance: a ready-to-play virtual machine; Choosing a machine to train with dsoxlab; Sizing your machine for the labs; Playing your first dsoxlab lab with dsoxlab demo105 min
Part 2 · Choose your labsInstalling and managing your dsoxlab lab catalogues; Finding your next dsoxlab lab: use, list-labs, next35 min
Part 3 · Playing a labThe main dsoxlab commands, in the order you use them; Starting a dsoxlab lab with dsoxlab start; Working in a dsoxlab lab: mission, course, ssh, hints; Getting your work checked with dsoxlab check and submit; Starting over or cleaning up a dsoxlab lab: reset, clean, destroy; Files, environment variables and exit codes115 min
Part 4 · For the trainerCreating a course and its challenges from scratch; Bringing up the infrastructure of vm labs; Create a throwaway VM with dsoxlab vm75 min

The lessons that ask for a choice or an action, from the machine to choose up to cleaning up a lab, end with a quiz that checks whether you know which command or which option to choose, and why. The lessons on installation, sizing, reference and the trainer part carry none. Putting it into practice remains the demonstration lab above, then a real catalogue. The training path page lets you tick the lessons as you read.

Troubleshooting

The first two lines of the table describe frequent blockers when starting out. The third is rarer, but its message does not point to its cause, which makes it expensive.

SymptomCauseSolution
The tests ask for a file that already existsFiles created outside the lab's working directoryRun dsoxlab run <id> and work where it drops you
No catalogue installedThe CLI is installed, but no catalogue is wired updsoxlab catalog add <id>, which makes the catalogue active
A lab stays stuck at provisioningKVM or Incus provider missing or stoppeddsoxlab doctor, then install the expected provider

When in doubt, dsoxlab support produces an anonymised diagnostic report, to paste into an issue of the catalogue's repository, and dsoxlab support --issue files it there directly. The complete log is written in any case to ~/.local/state/dsoxlab/dsoxlab.log.

Key points

  • dsoxlab is a lab engine with no content of its own: the guides are on this site, the labs in companion repositories.
  • A lab holds three parts: the challenge states the mission, the check runs the tests, the score starts at 100 and pays for every hint.
  • The tests read the state of the system, never the commands typed: every way of succeeding counts.
  • The demonstration lab needs no infrastructure and walks the whole loop in five minutes.
  • dsoxlab run drops you into an isolated working directory, where the tests read relative paths: leaving it drops the score to zero.
  • A hint costs points: the mission announces its price, and hint asks for no confirmation.
  • check and submit record the mark on your machine and send nothing: the mark reaches the site when you decide, through a sending you start yourself.
  • Nineteen catalogues, Kubernetes included, install by their identifier with dsoxlab catalog add <id>; any other repository installs through its git URL.
  • A lab in the vm runtime is played with dsoxlab start and destroyed after use with dsoxlab destroy.
  • Two routes lead results to the site: dsoxlab login then dsoxlab push with an optional account, or dsoxlab export and importing the file without an account.