2022-10-16 19:45:22 +05:00
|
|
|
# qm clone
|
|
|
|
|
|
|
|
> Create a copy of virtual machine on QEMU/KVM Virtual Machine Manager.
|
|
|
|
> More information: <https://pve.proxmox.com/pve-docs/qm.1.html>.
|
|
|
|
|
|
|
|
- Copy a virtual machine:
|
|
|
|
|
2025-07-21 23:03:05 +03:00
|
|
|
`qm clone {{vm_id}} {{new_vm_id}}`
|
2022-10-16 19:45:22 +05:00
|
|
|
|
|
|
|
- Copy a virtual machine using a specific name:
|
|
|
|
|
2025-07-21 23:03:05 +03:00
|
|
|
`qm clone {{vm_id}} {{new_vm_id}} --name {{name}}`
|
2022-10-16 19:45:22 +05:00
|
|
|
|
|
|
|
- Copy a virtual machine using a specific descriptionn:
|
|
|
|
|
2025-07-21 23:03:05 +03:00
|
|
|
`qm clone {{vm_id}} {{new_vm_id}} --description {{description}}`
|
2022-10-16 19:45:22 +05:00
|
|
|
|
|
|
|
- Copy a virtual machine creating a full copy of all disks:
|
|
|
|
|
2025-07-21 23:03:05 +03:00
|
|
|
`qm clone {{vm_id}} {{new_vm_id}} --full`
|
2022-10-16 19:45:22 +05:00
|
|
|
|
|
|
|
- Copy a virtual machine using a specific format for file storage (requires `--full`):
|
|
|
|
|
2025-07-21 23:03:05 +03:00
|
|
|
`qm clone {{vm_id}} {{new_vm_id}} --full --format {{qcow2|raw|vmdk}}`
|
2022-10-16 19:45:22 +05:00
|
|
|
|
|
|
|
- Copy a virtual machine then add it to a specific pool:
|
|
|
|
|
2025-07-21 23:03:05 +03:00
|
|
|
`qm clone {{vm_id}} {{new_vm_id}} --pool {{pool_name}}`
|