Installing dsoxlab takes one command, uv tool install dsoxlab or pipx install dsoxlab, and requires no administrator
rights. dsoxlab is the command-line tool (the CLI) that runs the labs of
this site. What goes through sudo is the system packages (curl, pipx or
git on a minimal system) and the preparation of a vm lab with dsoxlab doctor --fix. This lesson explains what the tool really asks of your machine,
how to read the diagnosis of dsoxlab doctor without installing what you do not
need, what a vm lab, which starts real virtual machines, needs on top, and how
to keep the tool up to date. It is written for anyone working on Linux,
including inside a virtual machine or in WSL2 on Windows 11.
On macOS, the CLI installs and plays the shell labs, the ones played in your
terminal, except those that need a Linux, for example l1-prepare-vm, which
reads /proc and /sys, and l1-choose-distro, which reads /etc/os-release.
It does not play the vm labs either: macOS has no hypervisor, the software
that runs virtual machines, that dsoxlab can drive. For vm labs on macOS, the
solution is the appliance, a ready-to-use virtual machine described in the
lesson The dsoxlab appliance. On Windows 11,
go through WSL2, the Linux built into Windows: dsoxlab installs there as on
any Linux, and vm labs run there too (section "On Windows 11, with WSL2").
What you will learn
- Check what the CLI really requires from your machine, and what ships with it.
- Install
uvorpipxif they are missing, then dsoxlab with either one, and confirm its version. - Interpret the diagnosis of
dsoxlab doctor, and tell what blocks you from what your catalogue does not use. - Prepare the machine for
vmlabs, and recognise when nested virtualization is missing. - Enable shell completion for bash or zsh.
- Update the tool, and tune the daily notice of a new version.
What dsoxlab requires, and what it brings
The only prerequisite you have to put in place yourself is a Python tool
installer: uv or pipx. Both installers put the CLI in an isolated
environment, which avoids any conflict with your system's Python packages. If
you have neither, the section "Installing uv or pipx" gives the commands.
Then there is Python itself, which the tool needs to run. With uv, there is
nothing to install: on a Debian 13 with no python3 at all, uv tool install dsoxlab still succeeds, because uv downloads the Python the tool needs by
itself. On 2026-11-19, it downloaded CPython 3.15.2.
With pipx, you need a Python 3.11 or newer, the system one. On Debian 13
and Ubuntu 24.04, apt installs it together with pipx. The advantage of uv
shows when the system Python is too old, or when the distribution does not
provide pipx.
One component, git, is required everywhere, because dsoxlab catalog add
clones a repository. It is almost always present already, and dsoxlab doctor
flags it when it is missing. The other components are only needed for some
labs: Docker as soon as a lab declares services in containers, and all the
tools of vm labs, described below. None is needed to get started.
Two tools arrive with dsoxlab, with nothing to install: pytest and pytest-testinfra, which run the labs' validation tests. A lab catalogue therefore needs no test tool at all.
ansible-core is also installed with dsoxlab. uv and pipx only make
available in the terminal the commands of the package you install, so not
ansible-playbook. dsoxlab finds it anyway: it looks for ansible-playbook in
the PATH, then next to its own interpreter, in the isolated environment that
uv or pipx created for it. An ansible-playbook already in the PATH takes
priority. You therefore have nothing to install for a lab to play its
setup.yaml, the playbook that prepares the lab, including for vm labs.
Only ansible-core is provided, without the Ansible collections. To look for
them, dsoxlab calls ansible-galaxy in the PATH only. On a machine where that
command is not there, dsoxlab doctor may therefore print a line "Not measured:
Ansible collections", and doctor --strict then exits with 10. That line does
not block the labs that use no collection.
Installing uv or pipx
If uv --version or pipx --version already answers, go on to the next
section. Otherwise, pick one of the two. The commands below apply to Debian 13
or Ubuntu 24.04, with a normal account that is allowed to use sudo. They work
on a minimal installation of these two systems, with neither curl nor Python. In WSL2, the Ubuntu 24.04 installed by
wsl --install -d Ubuntu-24.04 follows the same commands.
Installing uv
The official uv installer is downloaded with curl. On a minimal
installation, curl --version answers curl: command not found. In that case,
install it first, together with the certificates that let it reach an HTTPS
site. To install uv, sudo is only used to install curl:
sudo apt update && sudo apt install -y curl ca-certificatesThe install script is never piped straight into the shell: you download it, read it, then run it. These three steps let you read what the script is going to do before it runs:
# Download the script, inspect it, then run it (never curl | sh)curl -LsSf https://astral.sh/uv/install.sh -o uv-install.shless uv-install.sh # read the script, q to quitsh uv-install.shThe script puts uv in ~/.local/bin, without administrator rights. To go
further, see the uv guide (in
French). Astral's installation page also offers a form pinned to a specific
version, as well as the other methods, including those for macOS: uv
installation documentation.
The output of the script's run ends like this:
downloading uv 0.13.9 x86_64-unknown-linux-gnuinstalling to /home/bob/.local/bin uv uvxeverything's installed!
To add $HOME/.local/bin to your PATH, either restart your shell or run:
source $HOME/.local/bin/env (sh, bash, zsh) source $HOME/.local/bin/env.fish (fish)Look at the end: the installer warns that the ~/.local/bin folder is not yet in
the PATH of this terminal, the list of folders where the shell looks for
commands. It also added the line . "$HOME/.local/bin/env" to the shell startup
files, ~/.bashrc and ~/.profile, and created ~/.zshrc. That is why a new
terminal finds uv. In the current terminal, load the file by hand:
source $HOME/.local/bin/envuv --versionThe second command prints uv 0.13.9 (x86_64-unknown-linux-gnu): uv is ready,
and the next section installs dsoxlab with it.
Installing pipx
On Debian 13 and Ubuntu 24.04, pipx is a system package. apt also installs
Python 3 as a dependency, in a sufficient version (3.13.5 on Debian, 3.12.3 on
Ubuntu), and puts pipx 1.7.1 on Debian, 1.4.3 on Ubuntu:
sudo apt update && sudo apt install -y pipxpipx ensurepathpipx ensurepath adds ~/.local/bin to the PATH by editing the shell startup
files, ~/.bashrc and ~/.profile. Its output, recorded on Ubuntu 24.04, is the
following:
Success! Added /home/bob/.local/bin to the PATH environment variable.
Consider adding shell completions for pipx. Run 'pipx completions' forinstructions.
You will need to open a new terminal or re-login for the PATH changes to takeeffect.As with uv, the current terminal does not change: open a new terminal, or
run source ~/.bashrc. Then check:
pipx --versionThe command prints 1.7.1 on Debian 13 and 1.4.3 on Ubuntu 24.04: pipx is
ready. For the details of the tool, see the pipx
guide (in French).
Installing and checking the version
The installation puts one command, dsoxlab, and nothing else on your system.
Pick the installer you already have:
uv tool install dsoxlab # or: pipx install dsoxlabdsoxlab --versionThe second command prints dsoxlab followed by the installed version
number, for example dsoxlab 0.11.4, the version of 2026-12-01. The installer
always takes the latest version, and dsoxlab ships new ones often: your
number will probably be higher. The list of versions is on
PyPI and in the
repository releases.
If the terminal answers command not found, the dsoxlab command is installed,
but the folder that contains it, ~/.local/bin, is not in the PATH of this
terminal. Three cases:
uvput in place by the standalone installer: open a new terminal, or runsource $HOME/.local/bin/envin the current terminal;uvinstalled some other way, or if a new terminal still does not finddsoxlab: runuv tool update-shell, then open a new terminal;pipx: runpipx ensurepath, then open a new terminal, or runsource ~/.bashrc.
The output of uv tool update-shell lists the files it changed:
Updated configuration file: /home/bob/.profileUpdated configuration file: /home/bob/.bashrcRestart your shell to apply changesIf you run uv tool update-shell again in the same terminal, it answers error: The executable directory ... is not in PATH, but the Bash configuration files are already up-to-date and exits with code 2. That is not a failure: the files
are already up to date, you only need to open a new terminal.
Reading the doctor diagnosis
dsoxlab doctor checks your machine for the current catalogue, the
repository of labs dsoxlab is working on. It prints the steps that are
missing, all at once, numbered in the order to do them, each command alone on
its line, ready to paste. A component this catalogue does not need, a
hypervisor on a catalogue of shell labs for instance, stays optional and never
shows up as an error.
dsoxlab doctorRight after the installation, with no catalogue, one step remains. Output
recorded with dsoxlab 0.11.4 on Ubuntu 24.04, git and Docker already
installed. Depending on your machine, other steps may be added to this one:
dsoxlab doctor · no catalogue here · Ubuntu 24.04.5 LTS
1 step is missing.
1. Get a catalogue 0 labs dsoxlab demo, or dsoxlab catalog add linux
Already ready: Python 3.12.3 · git 2.43.0Optional here, installed: Docker 29.10.1 · Outbound access repo.almalinux.orgOptional here: incus. Install them too: dsoxlab doctor --fix --clientsRead it from top to bottom. The first line says what the diagnosis covers: the
catalogue (none here) and the system. Next come the missing steps, only one
here, with its command. "Already ready" lists what is in place. The "Optional
here" lines name components this catalogue does not need, whether they are
installed (Docker) or not (Incus): they do not count as missing. Once the
demonstration catalogue is installed (next section), the same doctor answers:
dsoxlab doctor · catalogue dsoxlab-demo · 1 lab · Ubuntu 24.04.5 LTS
Everything is ready. 6 required checks pass. Python 3.12.3 · git 2.43.0 · Labs detected 1 labsOptional here, installed: Docker 29.10.1 · Outbound access repo.almalinux.orgOptional here: incus. Install them too: dsoxlab doctor --fix --clientsIf several things are missing, doctor numbers them all, with their command,
and ends with a single command that does everything: dsoxlab doctor --fix.
Several options complete the command:
| Option | What it does |
|---|---|
--fix | Prints the plan of the repairs first, then runs it once confirmed ([y/N]). The steps without sudo are done by dsoxlab; those that need sudo (system packages with apt or dnf, adding your account to the kvm and libvirt groups) go through a single Ansible playbook, which asks for your password once. If ansible-playbook stays unfindable, even next to dsoxlab, and uv is present, --fix first installs ansible-core with uv tool install ansible-core, without sudo. Without uv, it prints the sudo steps for you to paste yourself. Without /dev/kvm, the plan proposes neither libvirt nor QEMU. Each step is checked again, and the first failure stops everything. |
--yes | Runs the plan of --fix without asking. With no terminal (in a script), --fix without --yes runs nothing and exits with an error. |
--clients | With --fix, also installs Docker and Incus, optional for most catalogues. |
--all | With --fix, installs every supported component: KVM, Docker, Incus, Terraform, Ansible and its collections. |
-v | Shows every check, including the warnings of the lines that are already ready. |
--strict | Makes doctor return an exit code that tells the result: 9 when a required check fails, 10 when a check could not be tested. Without --strict, doctor always returns 0. On a machine without /dev/kvm, no local provider can run: when all the catalogue's providers are local (kvm, incus) and none is chosen, --strict does not exit with 9. The "Good to know" section then shows two causes: no usable provider, and no hardware virtualization, the latter only when its check fails. A provider that is already chosen keeps its failure. A catalogue that also offers a cloud provider, like linux with outscale, is not in this case. |
--json | Prints the same diagnosis as JSON, readable by a program, with a stable identifier for each check. Incompatible with --fix. |
Here is the plan of --fix on the linux catalogue, recorded with dsoxlab
0.11.4 on Ubuntu 24.04 without /dev/kvm, answering n to the question. It
sorts the steps into two groups, those dsoxlab runs without sudo and those the
playbook runs with sudo:
ℹ Plan: 2 step(s). Each one is checked again right after; the first failure stops everything. Without sudo, run by dsoxlab: 1. dsoxlab use --provider outscale With sudo, by the workstation playbook (your sudo password is asked once): 2. Install Terraform, from HashiCorp's official repository Playbook components: git, terraform (already in place: left unchanged)[...]Run these 2 step(s)? [y/N]: ℹ Nothing was run.The plan proposes dsoxlab use --provider outscale, which may be surprising. A
provider is the place where dsoxlab creates the machines of a vm lab. The
linux catalogue declares three, kvm, incus and outscale, and none is
chosen. The first two are local and cannot run without /dev/kvm; outscale is
a cloud provider, so a paid one, which creates the machines at a hosting
company. On this machine, the plan keeps only that one, with Terraform, the tool
that creates and destroys machines. Nothing forces you to accept it: answering
n, as here, runs nothing. Without /dev/kvm, the shell labs can still be
played locally (see "When nesting is impossible").
Accepting has two effects. dsoxlab records outscale as the catalogue's
provider, and that lasts until a new choice. It also installs Terraform, but
creates no machine. A dsoxlab start afterwards asks for an Outscale account and
the variables OSC_ACCESS_KEY, OSC_SECRET_KEY and OSC_REGION, then creates
billed machines. To go back, dsoxlab use --provider kvm when /dev/kvm exists.
dsoxlab use --reset erases the whole catalogue context, not only the provider:
section, level, language, target and active lab. With --yes, the plan runs
without a question, and so does this choice.
With no terminal, in a script for instance, --fix shows its plan then stops
with "Nothing was run: this shell has no terminal to confirm the plan. Add --yes
to run it."
A check can give three results: ok, failed and unknown. The third
means the probe, the small test doctor runs to check, did not complete.
That result does not count in the displayed verdict: doctor does not count as
missing what it could not test. With --strict, however, unknown has its own
exit code, 10, so that a script does not mistake a test that never happened
for a success.
Playing the demonstration lab
To confirm the installation works, play a lab. The demo command installs a
catalogue of a single lab under ~/.local/share/dsoxlab/demo and says what
to do next. That lab uses the shell runtime: it runs in your terminal, with
no virtual machine or container.
dsoxlab demodsoxlab course premiers-pas # the lessondsoxlab run premiers-pas # drops you into the working directorydsoxlab challenge premiers-pas # the missiondsoxlab check premiers-pas # the tests, and the scoreCount five minutes. The complete walkthrough, with the score panel and the working directory trap, is described on the overview page of the training path.
What a vm lab needs on top
A vm lab does not run in your terminal. It starts real virtual machines on
your computer, connects to them over SSH and prepares them with an Ansible
playbook. That is the case for the vast majority of the labs in the Linux
catalogue; the others run in the shell runtime. You do not need to remember
which ones: the "Lab" block of each page announces it with its Environment:
VM line.
Five elements must then be in place, and dsoxlab doctor checks them as soon as
a catalogue of vm labs is plugged in. As long as you have not chosen a
provider, doctor runs its diagnosis with the one it recommends, kvm on a Linux that exposes /dev/kvm,
without saving it.
| Component | Role | How to get it |
|---|---|---|
ansible-playbook | Plays the lab's setup.yaml inside the machine | Already there: it comes with dsoxlab |
| A chosen provider | Says where the machines are created | dsoxlab use --provider kvm |
| KVM (libvirt and QEMU), or Incus | The hypervisor that runs the machines | dsoxlab doctor --fix installs KVM, with apt or dnf depending on the distribution, if the machine has /dev/kvm |
| Terraform | Creates and destroys the machines | The command that dsoxlab doctor prints for your distribution, or Installing Terraform (in French) |
An accessible /dev/kvm | Access to the processor's virtualization, without which no machine boots | In the BIOS of a physical machine, or in the hypervisor that hosts the VM |
KVM and Incus, the two hypervisors that dsoxlab can drive, are Linux tools. On
Windows 11, they run inside WSL2 (see "On Windows 11, with WSL2" below). On
macOS, vm labs go through the appliance. It has a limit worth knowing
before you download it: its images are x86-64, so it does not run on an Apple
Silicon Mac (M1 to M4). On those Macs, the CLI installs and the shell labs
that do not need a Linux play, but the vm labs do not.
Plan for memory too: the three machines of the Linux catalogue share 5120 MB, on top of what your system already uses. The lesson Sizing your machine for the labs gives these figures catalogue by catalogue.
As ansible-playbook comes with dsoxlab, four commands put the rest in place,
to be run once per catalogue. They choose the provider, check the machine,
prepare the SSH key, then launch the lab. If doctor, the second one, still
shows a step to do, do it as it says before going on. These commands assume a
machine that has /dev/kvm: without it, kvm cannot serve as a provider, and
the following sections say what to do.
dsoxlab use --provider kvm # the provider doctor offers youdsoxlab doctor # no step must be leftdsoxlab instructor bootstrap # the machines' SSH key, once per clonedsoxlab start l3-scheduling-cron # prerequisites, machines, then the labdsoxlab start chains the steps from use to run: the context, the
diagnosis, the creation of the machines, then the opening of the lab. It
announces each step with its command. Prefer it for a first vm lab. When a
step fails, it names it and stops there. With run alone, the failure comes
further on, with a message that is harder to understand. The commands it chains
are detailed in the lesson The main dsoxlab
commands.
The message about the unavailable vm runtime
After a normal installation, ansible-playbook is found. If that is no longer
the case, because it is neither in the PATH nor in dsoxlab's environment
(ansible-core was removed from it, for example), dsoxlab run on a vm lab
answers this, whether the hypervisor is present or not:
✘ Runtime 'vm' is not available on this machine. Install the dependencies (`dsoxlab instructor bootstrap`), or pick a lab that runs on another runtime.This message does not name ansible-playbook and suggests dsoxlab instructor bootstrap. The cause is nevertheless the absence of ansible-playbook, and it
is not instructor bootstrap that fixes the problem. Run dsoxlab doctor: on
a catalogue of vm labs, it gives the missing step and its repair,
uv tool install ansible-core, which doctor --fix also does. If you installed
dsoxlab with pipx, reinstall dsoxlab, or run pipx install ansible-core. Once
that is done, run fails on the next problem and says, for instance, that no machine is
running. Go through dsoxlab start then, which creates the machines before
opening the lab.
On Windows 11, with WSL2
WSL2, the Windows Subsystem for Linux, runs a real Linux kernel inside
Windows. On Windows 11, it also lets Linux use the processor's virtualization:
/dev/kvm normally exists in WSL2, and dsoxlab can create the machines of vm
labs there with KVM. No extra virtual machine is needed: you install Ubuntu in
WSL2, then dsoxlab as on any Linux.
The condition to check is ls -l /dev/kvm in Ubuntu (WSL2): if the device is
there, vm labs are possible. BIOS virtualization is not the criterion, because
without it WSL2 does not start at all (error 0x80370102, see the WSL
troubleshooting page).
This route also needs a memory setting if the labs ask for more than WSL2
receives (see below). On Windows 11 25H2 (version 10.0.26200) with WSL 2.7.14,
Ubuntu 24.04.5 and a 13th generation Intel Core i5 processor, dsoxlab doctor
0.9.8 passes its 20 required checks with the kvm provider, and the machines of
the Linux catalogue boot.
In PowerShell, on Windows, install Ubuntu:
wsl --install -d Ubuntu-24.04Then open the Ubuntu terminal and follow this lesson from the start:
uv tool install dsoxlab, then dsoxlab doctor --fix, which prints its plan
and, once you confirm, installs KVM and adds your account to the kvm and
libvirt groups (your sudo password is asked once). Two quick checks confirm
that KVM is usable: ls -l /dev/kvm must show the device, and
cat /etc/wsl.conf must contain systemd=true. The Ubuntu image for WSL
normally carries that line already.
If /dev/kvm does not exist in WSL2 while WSL2 is running, dsoxlab doctor --fix installs neither libvirt nor QEMU: they could not run any machine. The
causes are Windows 10, nestedVirtualization=false in .wslconfig, or a
Windows that itself runs inside a virtual machine (virtualized workstation,
VDI). Without /dev/kvm, play the shell labs locally, or use a cloud
provider. dsoxlab doctor --strict does not exit with 9 for this reason when
no provider is chosen and the catalogue offers only local ones, which is not the
case of the linux catalogue, which also offers outscale. The troubleshooting
table below repeats these causes.
Memory is the point to watch. By default, WSL2 gives Linux half of the
Windows memory. With 8 GB given to WSL2, doctor may warn that, for instance,
3.4 GB remain free for the 5 GB declared by the three machines of the Linux
catalogue. That does not block you: dsoxlab start only boots the machines of
the lab you play. To give Linux more, write a memory= line in the
%UserProfile%\.wslconfig file, under [wsl2], then restart WSL with
wsl --shutdown:
[wsl2]memory=10GBOn Windows 10, WSL2 does not offer nested virtualization: you are left
with the shell labs, or a Linux installed in VMware Workstation or Hyper-V,
described below.
Inside a virtual machine: nested virtualization
If your Linux itself runs inside a virtual machine, on Windows for instance, the
lab's machines will be virtual machines inside a virtual machine. For that,
the software that hosts your Linux, the host, must let it use the processor's
virtualization. That is nested virtualization. Without it, /dev/kvm does
not exist in your Linux, and dsoxlab doctor says so, naming the hypervisor it
detects. Installing anything inside that Linux changes nothing: the setting is
made outside, with the machine powered off.
On Windows, your Linux may run in VMware Workstation or in Hyper-V, and each has its own setting. With another hypervisor, look for the "nested virtualization" option in its documentation.
With VMware Workstation, power the machine off, open its Settings, Processors, then tick Virtualize Intel VT-x/EPT or AMD-V/RVI.
With Hyper-V, power the machine off, then open PowerShell as administrator
on the host, that is, on Windows, not inside the machine. Replace <name>
with the machine's name in Hyper-V Manager:
Set-VMProcessor -VMName <name> -ExposeVirtualizationExtensions $trueThis command needs a recent version of Windows on the host. With an Intel processor, you need Windows 10 or Windows Server 2016, or newer. With an AMD processor, you need Windows 11 or Windows Server 2022, or newer. Microsoft also warns that, inside a Hyper-V machine, other virtualization software is not supported and is likely to fail. If KVM does not start, move on to the solutions in the next section.
After the machine restarts, ls -l /dev/kvm in your Linux must show the device,
and dsoxlab doctor must no longer show a step for /dev/kvm. If /dev/kvm is
still missing, check that virtualization is enabled in the BIOS, the computer's
settings screen at startup. It must be the BIOS of the physical computer, which
hosts the virtual machine, and not that of the virtual machine itself.
When nesting is impossible
If your machine cannot offer /dev/kvm, it is not a dead end. Three solutions
remain, from the simplest to the heaviest:
- play the
shelllabs, which need neither a virtual machine nor a hypervisor and so can be played on a Linux without/dev/kvm: the Environment: Shell line of the "Lab" block flags them; - install Linux directly on a computer, as a dual boot or on an old
computer, where
/dev/kvmdepends on the BIOS alone; - use a cloud provider, if the catalogue offers one: the machines are then created at a hosting company, and it is paid. The lesson Building the infrastructure of vm labs explains it.
The appliance does not solve the problem: it is a virtual machine too, subject to the same nesting rule.
Enabling shell completion
Completion completes the lab identifiers, which are long, when you press the Tab key. You install it once, for bash or zsh. It takes effect the next time the shell is reloaded:
dsoxlab completion install # writes the completion for the current shelldsoxlab completion show # prints the script without writing anythingUnder zsh, the command writes ~/.zfunc/_dsoxlab and adds a line to ~/.zshrc.
Under bash, it writes ~/.bash_completion.d/dsoxlab and adds a line to
~/.bashrc. The older dsoxlab install command still does the same thing, but
it is deprecated: do not use it anymore.
Choosing the language
The tool shows its messages in English or in French, and you set the
language in two ways. The environment variable only applies to one command. The
catalogue context, set by dsoxlab use --lang, then applies to every command of
that catalogue:
DSOXLAB_LANG=fr dsoxlab list-labs # for one calldsoxlab use --lang fr # durably, for this catalogueWhen several settings exist, the first one in this list wins: DSOXLAB_LANG,
then the catalogue's context file, then the system LANG variable, then en. A
machine in fr_FR.UTF-8 therefore gets French without any setting.
Keeping the tool up to date
Once a day, dsoxlab looks on PyPI for a newer version. If it finds one, it
says so at the end of a command, on standard error, so as not to mix with
the --json output a program reads. Offline, it says nothing. Updating goes
through the installer that put the tool in place. With uv, --refresh forces
a re-read of the package index, so as not to reinstall a version left in cache:
uv tool install --force --refresh dsoxlab # or: pipx upgrade dsoxlabDSOXLAB_NO_UPDATE_CHECK=1 dsoxlab list-labs # silence the notice, for one callThe dsoxlab notice suggests uv tool upgrade dsoxlab, and the other lessons
use it too: that command performs the same update. The form above also
reinstalls the whole tool, which repairs a damaged installation as well.
Update the tool before the catalogue. The files of a
catalogue follow a format that has a version number. If a lab file is written
for a newer version than the one your tool knows, the tool discards it. If it
is the catalogue's meta.yml file that is too recent, the command stops. The
reverse works: a recent tool reads an older file without trouble. When a
catalogue announces a new version, update the tool first.
Troubleshooting
This table lists possible blockages between the installation and the first lab. Find your symptom in the first column: only one case requires reinstalling, the old script.
| Symptom | Cause | Solution |
|---|---|---|
dsoxlab: command not found right after installing | The folder where uv or pipx installs commands is not in the PATH | source $HOME/.local/bin/env (standalone uv installer only, no new terminal needed afterwards), uv tool update-shell or pipx ensurepath followed by a new terminal |
dsoxlab catalog add fails and names git | git is not installed: the CLI clones catalogues | The command that dsoxlab doctor prints, sudo apt install git on Debian and Ubuntu, then run dsoxlab doctor again |
dsoxlab --version prints a version older than the one announced | An old dsoxlab command, from a previous installation, comes before the new one | Delete ~/.local/bin/dsoxlab if ls -l shows no arrow -> there (see the note above), then reinstall with uv tool install dsoxlab |
Runtime 'vm' is not available on this machine | ansible-playbook is missing from the PATH and from dsoxlab's environment | uv tool install ansible-core, then dsoxlab doctor; installed with pipx: reinstall dsoxlab, or pipx install ansible-core |
run stops on ProviderUnresolved | The catalogue offers several providers and none is chosen | dsoxlab use --provider kvm |
This lab needs a VM, and none is running | The lab's machines have not been created | dsoxlab start <lab-id>, which creates them before opening the lab |
ls -l /dev/kvm finds nothing in WSL2, although WSL2 starts | Windows 10, nestedVirtualization=false in %UserProfile%\.wslconfig, or Windows itself inside a VM (virtualized workstation, VDI) | Windows 11 and line removed, then wsl --shutdown; otherwise, shell labs or a cloud provider |
doctor: /dev/kvm is absent and the system runs inside a VM | Nested virtualization is not enabled on the host | Enable it in VMware Workstation or Hyper-V, machine powered off; otherwise, shell labs |
Key points
- One installer of Python tools is enough to get started,
uvorpipx, andgitmust be present, because catalogues are cloned. Withuv, Python does not even have to be installed beforehand:uvdownloads it. Withpipx, you already need a Python 3.11 or newer. - An old
~/.local/bin/dsoxlabscript, with no arrow->inls -l, stopsuv tool installfrom installing: delete it, then reinstall. - pytest and pytest-testinfra come with the CLI: a catalogue installs no test tool.
- A
vmlab needs five elements:ansible-playbook, supplied with dsoxlab, then a chosen provider, a hypervisor, Terraform and/dev/kvm.dsoxlab startchecks them before creating the machines. - On Windows 11, dsoxlab installs in WSL2 with Ubuntu, and
vmlabs run there with KVM when/dev/kvmexists; watch the memory given to WSL2. Without/dev/kvm,doctor --fixdoes not install KVM and only theshelllabs can be played locally. - On macOS,
vmlabs go through the appliance, which rules out Apple Silicon Macs since its images are x86-64. On those Macs, theshelllabs that do not need a Linux remain. - Inside a virtual machine,
/dev/kvmrequires nested virtualization, enabled on the host with the machine powered off: in VMware Workstation (Settings, Processors) or withSet-VMProcessoron Hyper-V. Without it, theshelllabs or a cloud provider remain. dsoxlab doctorlists the steps that are missing, in order, each with its command, and leaves optional what the catalogue does not need;--fixshows a plan and runs it after confirmation (--yesin a script),--strictserves scripts.- A check has three results,
ok,failedandunknown: a check that could not be tested is never counted as passed. dsoxlab completion installreplaces the olderdsoxlab install, which is deprecated.- Update the tool before the catalogue, never the other way round.