OS images
vz boots nodes from disk images on your Mac. vz image pull downloads the official arm64 cloud disks and installer ISOs that distributions publish, checks them against the distribution's own checksum list, and writes a file a lab can boot. It can also download the macOS restore image for platform: apple nodes. You can also bring your own disk or ISO.
Each catalog image has its own image maker: the code that knows how that OS publishes its image and how to turn the download into a file a node lists under disks. Image makers only prepare files. The machine a node boots on comes from its platform, never from the image.
List what you can pull
vz image ls # everything
vz image ls disk # cloud disks only
vz image ls iso # installer ISOs only
vz image ls ipsw # macOS restore images onlyThe table shows each image's name, type, aliases, release, notes, support level and whether it is already pulled. The last line prints the images directory.
Pull an image
vz image pull debian-13 # the cloud disk (same as: vz image pull disk debian-13)
vz image pull iso debian-13 # the installer ISO
vz image pull ipsw macos # the newest macOS this Mac can run (about 26 GB)Without a type, pull fetches the cloud disk. Names are not case sensitive, and an alias works anywhere a name does:
vz image pull ubuntu # ubuntu-26.04
vz image pull iso debian # iso/debian-13When the pull finishes, vz prints the disk line to paste into a node:
disks: [{ path: ~/.vz/images/debian-13-genericcloud-arm64.raw, overlay: true }]Options
| Option | What it does |
|---|---|
-o, --output <dir> | Write to another images directory. Default: ~/.vz/images. Relative paths start at the current folder; ~ works. |
--force | Pull again even if the file is already there. |
--json | Machine-readable output (see Automation). |
vz image ls -o <dir> shows what is pulled in that directory.
NOTE
~/.vz moves when VZ_HOME is set to an absolute path. See Files and environment.
What a pull does
Checksum list. vz reads the list the distribution publishes next to the image (
SHA512SUMS,SHA256SUMS,CHECKSUMand so on).Cache. If
~/.vz/cachealready holds the download and it still matches the list, it is reused. Otherwise the file is downloaded to a.partialfile and checked. A file that does not match is deleted and the pull fails.Unpack. The verified download becomes the file a lab uses:
Source format Result How tar.xzwith a raw disk inside (Debian)sparse .raw/usr/bin/tarstreams the member outqcow2(Ubuntu, Fedora, AlmaLinux, Rocky)sparse .rawqemu-img convertwhen it is installed, otherwise vz's built-in converter.iso.isocopied as is (an APFS clone, no second copy of the bytes) Write. The result is written next to its final name and renamed into place, so an interrupted pull never leaves a half-written image behind.
The cache only saves downloads. It is safe to delete ~/.vz/cache at any time.
About the built-in qcow2 converter
Virtualization.framework cannot open qcow2, so qcow2 disks are converted to raw. vz uses qemu-img from your PATH, or from /opt/homebrew/bin or /usr/local/bin. Install it with brew install qemu for faster conversion.
Without qemu-img, vz converts the file itself. The built-in converter reads qcow2 versions 2 and 3, zero clusters and zlib-compressed clusters. It refuses, with a clear error, images with a backing file, encryption, an external data file, extended L2 entries or zstd compression. Snapshots are ignored: the active image is converted.
Shipped images
| Name | Type | Aliases | Release | Notes | Support | File written |
|---|---|---|---|---|---|---|
debian-13 | disk | debian | Debian 13 trixie cloud | cloud kernel, no displays | tested | debian-13-genericcloud-arm64.raw |
debian-13-generic | disk | Debian 13 trixie generic | full kernel, displays work | tested | debian-13-generic-arm64.raw | |
debian-12 | disk | Debian 12 bookworm cloud | cloud kernel, no displays | tested | debian-12-genericcloud-arm64.raw | |
ubuntu-24.04 | disk | Ubuntu 24.04 LTS noble | qcow2, converted to raw | tested | ubuntu-24.04-server-cloudimg-arm64.raw | |
ubuntu-26.04 | disk | ubuntu | Ubuntu 26.04 LTS resolute | qcow2, converted to raw | tested | ubuntu-26.04-server-cloudimg-arm64.raw |
fedora-44 | disk | fedora | Fedora 44 Cloud | qcow2, converted to raw | tested | fedora-44-cloud-arm64.raw |
almalinux-10 | disk | almalinux | AlmaLinux 10 GenericCloud | RHEL family; qcow2, converted | tested | almalinux-10-cloud-arm64.raw |
rocky-10 | disk | rocky | Rocky Linux 10 GenericCloud | RHEL family; qcow2, converted | tested | rocky-10-cloud-arm64.raw |
debian-13 | iso | debian | Debian 13 trixie netinst | installer; use node display | tested | debian-13-netinst-arm64.iso |
macos | ipsw | macOS, the newest this Mac supports | installs on the first start | experimental | macos-arm64.ipsw |
"Tested" means the image boots to a login prompt under vz. vz image ls is always the current list for your build.
TIP
Pick debian-13-generic when you need a display, a desktop or VirtioFS shares. The debian-13 cloud kernel is smaller but has no virtio_gpu driver, and the shared folders example uses the generic kernel for its virtiofs driver.
The Debian netinst ISO always downloads the newest point release in the checksum list, but the local file name has no point release in it, so lab files keep working after an update.
Use a pulled file
A node does not name a catalog image. It lists the file the pull wrote, under disks. Every node on the default generic platform boots its disks on the same machine: generic Arm platform, UEFI, a virtio serial console on hvc0, the lab file's displays, and the cloud-init seed from init:. Which distribution the disk came from does not change the machine.
nodes:
- name: vm1
disks:
- { path: ~/.vz/images/debian-13-genericcloud-arm64.raw, overlay: true }
- name: installer
disks:
- { bus: usb, path: ~/.vz/images/debian-13-netinst-arm64.iso, readOnly: true }
- { bus: virtio, path: disks/root.asif, size: 20GiB }Put an installer ISO on the USB bus so you can eject it with vz media eject after the install. The second disk is the empty disk the installer writes to.
macOS guests
macOS runs on Apple's Mac machine, so its node says platform: apple. Apple publishes no ready macOS disk, only a restore image (IPSW). It works like an installer ISO: list it under disks, next to an empty disk, and the first vz up installs macOS onto that disk. It is experimental: the full install has not been tested end to end yet.
vz image pull ipsw macos # about 26 GB; checks the free space firstnodes:
- name: mac
platform: apple
cpus: 4
memory: 8GiB
init: ./init/mac/user-data
disks:
- { path: ~/.vz/images/macos-arm64.ipsw } # installer media: read, never attached
- { path: macos.asif, size: 80GiB } # macOS installs here
interfaces:
- { name: en0, attach: switch/lan }init/mac/user-data is the same #cloud-config format a Linux node uses. vz reads it on the Mac and turns it into the account macOS creates on its first boot, without Setup Assistant (macOS 27 guests):
#cloud-config
users:
- { name: lab, gecos: Lab User, plain_text_passwd: lab }
ssh_pwauth: true # Remote Login (SSH); on unless falseThen:
vz up # returns once the install has started
vz node ls # "installing N%" for 20 to 30 minutes, then "running"
vz node display mac # the macOS screen
ssh lab@<address from node ls>- There is no serial console: use
vz node displayor SSH. - Without
init, macOS runs Setup Assistant on the display. - Only the first user, its password, its full name (
gecos) andssh_pwauthare used.vz validatewarns about anything else in the file. - Once macOS is installed, the node starts without the
.ipsw; you may remove it. vz node resetdeletes the installed system's Mac files, so the nextupinstalls again.- One Mac runs at most 2 macOS nodes at a time.
See platform in the lab file reference for every rule.
Your own disk or ISO
Nothing has to be pulled. Point disks at a file of your own. The node is still the generic UEFI machine with the serial console, since platform defaults to generic.
nodes:
- name: mine
cpus: 2
memory: 2GiB
disks:
- { path: ./disks/my-appliance.raw, overlay: true }
init: ./init/mine
interfaces:
- { name: eth0, attach: switch/lan }The disk format comes from the file extension: .asif, .raw, .img or .iso. The guest must boot arm64 UEFI. To use a qcow2 disk of your own, convert it to raw first:
qemu-img convert -p -f qcow2 -O raw my-disk.qcow2 my-disk.rawExample 31 boots a disk you build yourself: a tiny operating system in Rust that prints hi on the console.
See Storage for buses, overlays and installer disks.
Update or replace a pulled disk
vz image pull debian-13 --forceIf the distribution published a new build, this downloads it and replaces the file in ~/.vz/images.
WARNING
Nodes with overlay: true keep their changes as blocks on top of the base file. After the base changes, their old overlays no longer match it. Reset those nodes so they start from the new base:
vz down
vz node reset vm1 vm2 --yes
vz upSee also
- Storage: disks, overlays and installer ISOs
- cloud-init: first-boot setup for cloud disks
- CLI reference
- Adding an OS image