qm-clone:tldr:514a9
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.