Two sites, a direct link, and a backup router. Five Debian VMs. Every time I wanted to start over I was back to deciding which tool the lab was allowed to be this week.
UTM when I wanted a machine I could see. Each VM is its own window, and the network is a setting inside that window. Fine for one machine. Painful when you have to recreate the same topology again.
Lima when I wanted the machine in a file. It is excellent at one Linux VM for Docker. Extra VMs share one flat network, and a proper vmnet network needs a root helper.
VMware is flexible, but it is slow and does not use Apple’s own virtualization framework.
Vagrant was great on Linux. On a Mac it just becomes another layer on top of whatever hypervisor you already have.
Each of those tools is good at what it does. None of them gave me a full package for “I want several real Linux machines, wired the way I decide, from a file, on my Mac.”
So I wrote vz. I have been using it for three months and recently open-sourced it. It is free.
I wanted to describe a lab in a YAML file and get networking, storage, and multiple nodes. Something that felt as quick and small as Docker, but gave me a full Linux system on each node.
I started reading Apple’s Virtualization framework and the WWDC 2026 session on it. Apple already ships a complete platform for native virtual machines on Apple silicon. vz is mostly a thin wrapper around that platform (plus vmnet). That is why it is fast and small.
One file is the lab
The lab I kept rebuilding the hard way is two sites, a direct link, and a backup router. Five Debian VMs. The hosts and the routers are ordinary VMs, each with its own kernel. FRR and the addresses live in cloud-init, in a folder per node, because the guest is a normal Debian box.
The part I used to split across tools is this:
schemaVersion: 27 name: ospf-failover nodes: - name: r1 disks: - { path: ~/.vz/images/debian-13-genericcloud-arm64.raw, overlay: true } init: ./init/r1 interfaces: - { name: mgmt, attach: switch/mgmt } - { name: lan, attach: link/h1-r1 } - { name: to-r2, attach: link/r1-r2 } - { name: to-r3, attach: link/r1-r3 } links: h1-r1: {} r1-r2: {} r1-r3: {} r3-r2: {} r2-h2: {} switches: mgmt: nat4: true ipv4Subnet: 10.116.0.0/24 attach: switch/mgmt puts a NIC on a network the Mac is also on, with NAT and DHCP. attach: link/r1-r2 is a cable between two NICs, with nothing else on it. The full file has all five nodes. It is example 16 in the repo.
vz up starts the whole thing. On an M3 Pro a small lab is created in under a second. The guests still boot after that, and the first boot installs packages, so give it a couple of minutes.
The Mac stays on the management switch, so SSH does not depend on the cables you are there to break:
ssh lab@10.116.0.11 'ping -D 192.168.2.10' vz link down r1-r2 A few pings are lost, then traffic goes through the backup router. vz link up r1-r2 puts the direct path back. Login is lab / lab, for a lab on your own Mac only.
Run this one
Apple silicon, macOS 27. vz is a single binary on Apple’s Virtualization framework and vmnet. No QEMU, no Docker, no root.
curl -fsSL https://github.com/rayanparsa/vz/releases/latest/download/vz-darwin-arm64.tar.gz | sudo tar -xz -C /usr/local vz image pull debian-13 mkdir -p ~/labs/ospf-failover && cd ~/labs/ospf-failover vz init --example 16 vz up vz image pull downloads Debian’s own cloud image and checks Debian’s checksum. Every node boots from a copy-on-write overlay of that file, so a node costs only the disk it writes, and vz node reset r1 boots a clean router.
When you are done:
vz down vz destroy --yes destroy removes that lab’s disks. The Debian image stays.
What I still use the others for
The repo has 34 labs, including BGP, a leaf-spine fabric, and a small k3s cluster. This post is example 16.
Next: containers on the same platform
Apple also open-sourced container and the Containerization package. They run Linux containers as lightweight VMs on the same Virtualization framework and vmnet that vz uses. Each container gets its own micro-VM instead of sharing a kernel.
That is the same foundation vz is built on. My next idea is to add container support in vz so you can describe both full VMs and containers in the same lab file, with the same switches and cables.

