Skip to content

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 ​

bash
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 only

The 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 ​

bash
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:

bash
vz image pull ubuntu             # ubuntu-26.04
vz image pull iso debian         # iso/debian-13

When the pull finishes, vz prints the disk line to paste into a node:

yaml
disks: [{ path: ~/.vz/images/debian-13-genericcloud-arm64.raw, overlay: true }]

Options ​

OptionWhat it does
-o, --output <dir>Write to another images directory. Default: ~/.vz/images. Relative paths start at the current folder; ~ works.
--forcePull again even if the file is already there.
--jsonMachine-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 ​

  1. Checksum list. vz reads the list the distribution publishes next to the image (SHA512SUMS, SHA256SUMS, CHECKSUM and so on).

  2. Cache. If ~/.vz/cache already holds the download and it still matches the list, it is reused. Otherwise the file is downloaded to a .partial file and checked. A file that does not match is deleted and the pull fails.

  3. Unpack. The verified download becomes the file a lab uses:

    Source formatResultHow
    tar.xz with a raw disk inside (Debian)sparse .raw/usr/bin/tar streams the member out
    qcow2 (Ubuntu, Fedora, AlmaLinux, Rocky)sparse .rawqemu-img convert when it is installed, otherwise vz's built-in converter
    .iso.isocopied as is (an APFS clone, no second copy of the bytes)
  4. 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 ​

NameTypeAliasesReleaseNotesSupportFile written
debian-13diskdebianDebian 13 trixie cloudcloud kernel, no displaystesteddebian-13-genericcloud-arm64.raw
debian-13-genericdiskDebian 13 trixie genericfull kernel, displays worktesteddebian-13-generic-arm64.raw
debian-12diskDebian 12 bookworm cloudcloud kernel, no displaystesteddebian-12-genericcloud-arm64.raw
ubuntu-24.04diskUbuntu 24.04 LTS nobleqcow2, converted to rawtestedubuntu-24.04-server-cloudimg-arm64.raw
ubuntu-26.04diskubuntuUbuntu 26.04 LTS resoluteqcow2, converted to rawtestedubuntu-26.04-server-cloudimg-arm64.raw
fedora-44diskfedoraFedora 44 Cloudqcow2, converted to rawtestedfedora-44-cloud-arm64.raw
almalinux-10diskalmalinuxAlmaLinux 10 GenericCloudRHEL family; qcow2, convertedtestedalmalinux-10-cloud-arm64.raw
rocky-10diskrockyRocky Linux 10 GenericCloudRHEL family; qcow2, convertedtestedrocky-10-cloud-arm64.raw
debian-13isodebianDebian 13 trixie netinstinstaller; use node displaytesteddebian-13-netinst-arm64.iso
macosipswmacOS, the newest this Mac supportsinstalls on the first startexperimentalmacos-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.

yaml
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.

bash
vz image pull ipsw macos         # about 26 GB; checks the free space first
yaml
nodes:
  - 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):

yaml
#cloud-config
users:
  - { name: lab, gecos: Lab User, plain_text_passwd: lab }
ssh_pwauth: true               # Remote Login (SSH); on unless false

Then:

bash
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 display or SSH.
  • Without init, macOS runs Setup Assistant on the display.
  • Only the first user, its password, its full name (gecos) and ssh_pwauth are used. vz validate warns about anything else in the file.
  • Once macOS is installed, the node starts without the .ipsw; you may remove it.
  • vz node reset deletes the installed system's Mac files, so the next up installs 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.

yaml
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:

bash
qemu-img convert -p -f qcow2 -O raw my-disk.qcow2 my-disk.raw

Example 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 ​

bash
vz image pull debian-13 --force

If 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:

bash
vz down
vz node reset vm1 vm2 --yes
vz up

See also ​