olab brings OpenNMS labs up on a Proxmox VE host, a KVM host or VMware vSphere and tears them down again.
You describe a lab in a small YAML spec: which components, which versions, which sizes and which networks.
olab creates the VMs with OpenTofu, configures them with the indigo423.opennms and labmonkeys.nl6 Ansible collections, and writes an endpoints file that tells you where everything is.
olab ships as a container image, so the only thing you install on your machine is Docker and a small wrapper script.
Pick your hypervisor. Each page takes you from nothing to a running first lab.
olab runs from a container image, so you need Docker and the wrapper bin/olab.
Copy the wrapper onto your PATH from a checkout of this repository:
mkdir -p ~/.local/bin
install -m 0755 bin/olab ~/.local/bin/olabThe wrapper runs ghcr.io/opennms-forge/olab with the tag it was released with, for linux/amd64 and linux/arm64.
The image is public, so the first run pulls it without a login:
olab --versionThe user documentation lives in website/docs.
make docs-serve previews it as a site on your machine.
- Quickstart: from nothing to a first lab, one page per hypervisor.
- Build your own lab: the catalog of ready-made specs, and how to write a spec, add a gateway or a monitoring VM and pin VMs to NUMA nodes.
- Reference: every
olabcommand, every key of the config file and every field of a lab spec. - Operations: pin the olab version, upgrade notes and known limitations.
olab follows the no42 ci-standard: the Makefile is the only interface, locally and in CI.
Install mise, then run make setup; it installs the pinned tools from mise.toml, the Python environment from uv.lock, OpenTofu and the collections.
Run make help for the development targets.
make check runs the format check, lint, tests and the wheel build, as the CI gate does.
make image builds the container image and make image-smoke checks it.
See docs/design.md for the design.
make check-identifiers rejects lab hostnames matching the regexes in $OLAB_DENYLIST, one per line.
Set OLAB_DENYLIST as a repository secret for CI and keep the patterns in ~/.config/olab/denylist locally.
Never commit the patterns.
CONTRIBUTING.md describes how to propose a change, and RELEASING.md how a release is cut. Report vulnerabilities as described in SECURITY.md.
olab is licensed under the Apache License 2.0.