Pcornel
Virtualization · VM Templates

Clone

Cheat sheet · https://pcornel.dk/topic.php?topic=3557

Back to the Topic

Answer

A clone is a copy of an existing VM or template. Generalize it or customize identity (hostname, SID, MAC, IP) on first boot so the copy does not conflict with the original on the network or in the domain.

Remember

  • Each clone needs a unique MAC address.

First checks

  • qm clone <vmid> <new> — clone (Proxmox)
  • virt-clone --original <vm> --auto-clone — clone (libvirt)
  • New-VM -VHDPath (copied VHDX) — Hyper-V via disk copy

Commands

qm clone 9000 123 --name web01
qm move-disk

Verify in this order

source → copy → new identity

Where it usually breaks

First mismatch in guest/app quiescence → hypervisor snapshot/template task → metadata/backing chain → storage durability → restore/clone read-back; preserve identity/native error/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3557

Confirmation

Confirm action

Continue?