MacVisor Beta

Linked clones

Fork a VM instantly by sharing its disk instead of copying it, and understand what the shared base changes.

A linked clone forks a VM without copying its disk. The source's current disk becomes an immutable base that both VMs read, and each one writes to its own ASIF overlay above it. Creating one is near-instant and consumes no disk space, whether the source disk is 60 GB or 600 GB.

A sealed base disk shared by a source VM and its linked clones, each writing to its own overlay.

This is the cheap way to get ten copies of a prepared guest for a test matrix, a review environment per branch, or a fleet of CI workers from one golden image.

Create one

Right-click a stopped VM and choose Linked Clone…. The source must:

  • use an ASIF boot disk — a raw disk can be converted first, see Storage and sharing;
  • be stopped, because sealing rewrites what the VM writes through;
  • have no suspended session — resume and shut it down, or discard the saved state first, because saved memory refers to the unsealed disk.

A clone can itself be cloned, to any depth: both sides come out of the fork with the same shape, a base plus their own overlay.

What sealing changes for the source

Forking rewrites the source as well as creating the clone. Its old disk file becomes a read-only base, and the source gets a fresh overlay of its own. Nothing inside the guest notices, but the VM is no longer a single self-contained disk file, and that has consequences.

OperationOn a VM that has been forked fromOn the linked clone
Start, stop, suspend, snapshotYesYes
Resize the boot diskNo — layered disks can't be resizedNo
Clone (full copy)YesNo
Convert to a templateYesNo
Export the bundleYesNo
Create a VM from one of its snapshotsNo — revert instead, then cloneNo
Delete the VMOnly after its clones are deletedYes
Revert to a snapshotOnly after its clones are deletedYes

MacVisor refuses each of these by name rather than producing something that breaks later: a template or an exported bundle built from a linked clone would only work while the ancestor it reads through happened to be present.

Deleting in the right order

The base lives in the source's bundle. Deleting or reverting that bundle while a clone still reads through it would leave the clone unbootable, so MacVisor refuses and names the dependants. Delete the clones first, then the source.

Linked clones, full clones, and templates

Linked cloneFull cloneTemplate
Disk costNone — shares the baseA copy of the diskA copy per VM created
SpeedInstantAs fast as the disk copiesAs fast as the disk copies
Independent of its sourceNoYesYes
Can be exported or moved aloneNoYesYes
Best forMany short-lived VMs from one baseA VM you want to keep and moveA catalogue entry you stamp copies from

Use a template when the copies should outlive or travel away from the original. Use linked clones when you want many of them at once and can delete them in order.

Linked clones are a GUI feature; vz creates full clones and template-based VMs.