Repository navigation
Linked clones
Clone makes a copy of a VM, so you can try something risky on the copy or keep one setup and branch off it.
- Power off the VM. Clone is greyed out while it runs.
- Click Clone in the toolbar.
- Give the copy a name. It starts as "name copy".
- Pick Linked clone or Full clone and click Clone.
The new VM shows up in the library and gets selected. Its disk goes in the disks folder as new name.qcow2.
If you have unsaved changes on the Hardware tab, save or revert them first. The copy is made from the saved settings.
| Linked clone | Full clone | |
|---|---|---|
| Time | A second or two | As long as copying the whole disk |
| Space | Almost none at first, grows as either VM changes things | The same as the original disk |
| Depends on | A shared base file that both VMs read | Nothing, it's on its own |
| Profiles on the original | Not allowed, delete them first | Fine, the copy just doesn't get them |
How linked clones work: the original disk is renamed to name.base-something.qcow2 and made read-only. Then the original VM and the copy each get a small new disk that only stores their own changes on top of that base. Neither VM can change the base, so they don't affect each other.
Pick full when you want to move the copy to another PC, or keep it after deleting the original's files.
-
Don't move, rename or delete the
.base-file. Both VMs need it. Removing a VM from the library keeps its disk, and the base stays too. - A linked clone of a VM with profiles is refused. The profiles live inside the disk and would get stuck in the read-only base. Delete them or make a full clone. Same for a save state made without Hyper-V acceleration (TCG).
- Profiles stay with the original. The copy starts with none.
- Port forwards are copied to free host ports. If the original forwards 2222 to SSH, the copy gets 2223, so both can run at the same time. Check the Hardware tab of the copy. See Port forwarding.
- Auto-start is off for the copy, even if it's on for the original.
- While a clone is being made, the original can't be started or changed.
- The guest doesn't know it was copied. Both VMs have the same hostname, and Windows guests the same computer name and SID. Change the hostname in the copy if both will be on at once.
See also Where files live and Hardware settings.