Forrest logo
back to the qm tool

qm-clone:tldr:514a9

qm-clone: Copy a virtual machine using a specific format for file storage (requires `--full`).
$ qm copy ${vm_id} ${new_vm_id} --full --format ${select}
try on your machine

This command uses the "qm" tool to copy a virtual machine (VM) identified by ${vm_id} and creates a new VM with the ID ${new_vm_id}. The "--full" option ensures that all configuration, disks, and snapshots of the original VM are copied to the new VM.

The "--format ${select}" option specifies the format of the copied virtual disks. The "${select}" parameter should be replaced with the desired disk format (e.g., raw, qcow2, vmdk) for the new VM. The chosen disk format determines how the virtual disk is stored and accessed by the hypervisor.

Overall, this command allows you to duplicate a virtual machine, including all its configurations, disks, and snapshots, and create a new VM with a specified ID, retaining the same disk format or converting it to a different format.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the qm tool