vz documentation
vz builds Linux VM and network labs on macOS from one YAML file. These pages cover everything from your first lab to the internals. Use the outline button at the top of any page on GitHub to jump between sections.
Start here
New to vz? Read these three in order.
- Installation: requirements, installing, checking your setup.
- Quick start: pull an image, run a lab, log in, clean up.
- Concepts: labs, nodes, switches, links, images and state, and how they fit together.
Guides
Task-oriented pages. Each one explains a topic with complete, copy-pasteable examples.
| Guide | Covers |
|---|---|
| Images | Pulling cloud disks and installer ISOs, the shipped images, bringing your own |
| cloud-init | Users, packages and network configuration at first boot |
| Networking | Switches, links, DHCP reservations, addresses, port forwarding, cabling at runtime |
| Storage | Disks, overlays, storages, USB media, shared folders |
| Consoles and displays | Serial consoles, console logs, graphics windows, clipboard, sound |
| Managing labs | The lab lifecycle, controlling nodes, memory, USB passthrough |
| Automation | JSON output, scripting, Ansible, Terraform, kubectl, CI |
Reference
Complete and exact. Use these when you need to look something up.
| Reference | Covers |
|---|---|
| CLI | Every command, argument and flag, and their JSON output |
| Lab file | Every key of lab.yaml, with types, defaults and constraints |
| Schema | Every object and field of lab.yaml in tables, generated from the JSON Schema |
| Validation | Every error and warning vz validate can report |
| Files and environment | ~/.vz, the state directory, environment variables |
Help
- Troubleshooting: common error messages and how to fix them.
- FAQ: short answers to common questions.
- Example labs: 32 labs to run, read and copy.
For contributors
| Page | Covers |
|---|---|
| Contributing | How to report bugs, propose changes and open pull requests |
| Architecture overview | Layers, processes and how vz up works |
| Control protocol | The JSON protocol between the CLI and the lab process |
| VM assembly | Machine parts, platforms, image makers and the image pipeline |
| Building and testing | Make targets, signing, test suites |
| Adding an OS image | Writing a new image maker |
| Adding a platform | Supporting a new machine type |
| Adding a lab file key | Extending the lab file format |
| Writing examples | Conventions for example labs |
| Releasing | Tagging a release |
AI coding agents should also read AGENTS.md at the repository root.
Find a page by goal
I want to...
| Goal | Page |
|---|---|
| Give a VM internet access | Networking: switches |
| Connect two VMs with a cable | Networking: links |
| Give a VM a fixed IP address | Networking: DHCP reservations |
| Reach a VM's web server from my Mac's browser | Networking: port forwarding |
| Create a user and install packages | cloud-init |
| Share a folder from my Mac | Storage: shared folders |
| Add a second disk | Storage |
| Install an OS from an ISO | Images, example 10 |
| Run a desktop | Consoles and displays, example 09 |
| Start over with a clean disk | Managing labs: reset |
| Read a VM's boot messages | Consoles and displays: console logs |
| Use vz from a script | Automation |
| Keep lab state somewhere else | Files and environment |