Skip to content

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.

  1. Installation: requirements, installing, checking your setup.
  2. Quick start: pull an image, run a lab, log in, clean up.
  3. 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.

GuideCovers
ImagesPulling cloud disks and installer ISOs, the shipped images, bringing your own
cloud-initUsers, packages and network configuration at first boot
NetworkingSwitches, links, DHCP reservations, addresses, port forwarding, cabling at runtime
StorageDisks, overlays, storages, USB media, shared folders
Consoles and displaysSerial consoles, console logs, graphics windows, clipboard, sound
Managing labsThe lab lifecycle, controlling nodes, memory, USB passthrough
AutomationJSON output, scripting, Ansible, Terraform, kubectl, CI

Reference ​

Complete and exact. Use these when you need to look something up.

ReferenceCovers
CLIEvery command, argument and flag, and their JSON output
Lab fileEvery key of lab.yaml, with types, defaults and constraints
SchemaEvery object and field of lab.yaml in tables, generated from the JSON Schema
ValidationEvery error and warning vz validate can report
Files and environment~/.vz, the state directory, environment variables

Help ​

For contributors ​

PageCovers
ContributingHow to report bugs, propose changes and open pull requests
Architecture overviewLayers, processes and how vz up works
Control protocolThe JSON protocol between the CLI and the lab process
VM assemblyMachine parts, platforms, image makers and the image pipeline
Building and testingMake targets, signing, test suites
Adding an OS imageWriting a new image maker
Adding a platformSupporting a new machine type
Adding a lab file keyExtending the lab file format
Writing examplesConventions for example labs
ReleasingTagging a release

AI coding agents should also read AGENTS.md at the repository root.

Find a page by goal ​

I want to...
GoalPage
Give a VM internet accessNetworking: switches
Connect two VMs with a cableNetworking: links
Give a VM a fixed IP addressNetworking: DHCP reservations
Reach a VM's web server from my Mac's browserNetworking: port forwarding
Create a user and install packagescloud-init
Share a folder from my MacStorage: shared folders
Add a second diskStorage
Install an OS from an ISOImages, example 10
Run a desktopConsoles and displays, example 09
Start over with a clean diskManaging labs: reset
Read a VM's boot messagesConsoles and displays: console logs
Use vz from a scriptAutomation
Keep lab state somewhere elseFiles and environment