Use this when cloning a VM in its lifecycle, such as for testing or scale-out.
Clone · Virtual Machine Lifecycle
Cloning a VM copies its disks and configuration into a new VM, either as a full independent copy or a linked clone. Change identity — name, MAC, IP, hostname, SID — before the clone joins the same network.
1. Full clones copy disks; linked clones share a base.
2. Generalise guests (sysprep, machine-id) to avoid duplicate IDs.
3. New MAC addresses.
4. Linked clones depend on the base.
5. Rename hostname.
source VM/template → disks copied/linked → new identity
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
Step 2 Common mistakes Narrow the fault
- Cloning a running domain-joined Windows VM without Sysprep (duplicate SIDs and computer accounts).
- Same MAC/IP in clones.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- The clone must get a new hostname, IP and MAC.
virt-clone --original <vm> --name <new> --auto-clone— clone (libvirt)qm clone <vmid> <newid> --name <new> --full— full clone (Proxmox)Export-VM / Import-VM -Copy -GenerateNewId— copy (Hyper-V)
ReferenceWhy it matters1 section · depth on demand
How it works
Cloning copies a VM's configuration and disks to create a new VM. Clones need new identities (hostname, MAC, machine ID, SID on Windows via Sysprep) to avoid conflicts on the network and in directories.
ReferenceImportant terms & boundaries1 section · depth on demand
Clone commands
| Platform | Command |
|---|---|
| KVM | virt-clone --original vm01 --name vm02 --auto-clone |
| Proxmox | qm clone 101 102 --name vm02 --full |
| Hyper-V | Export-VM + Import-VM -Copy -GenerateNewId |
| vSphere | New-VM -VM vm01 -Name vm02 -VMHost host |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Virtual Machine Lifecycle → Clone. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.html · confidence 94%