Forrest logo
back to the qm tool

qm-clone:tldr:9dee4

qm-clone: Copy a virtual machine then add it to a specific pool.
$ qm copy ${vm_id} ${new_vm_id} --pool ${pool_name}
try on your machine

The command "qm copy" is used in Proxmox VE to create a new virtual machine by copying an existing virtual machine. Here is an explanation of the different parts of the command:

  • "qm copy": This is the command to create a new virtual machine by copying an existing one.

  • "${vm_id}": This is a variable that represents the ID of the virtual machine that you want to copy. In actual usage, you need to replace "${vm_id}" with the actual ID of the virtual machine.

  • "${new_vm_id}": This is a variable that represents the ID you want to assign to the new virtual machine. Similar to the previous variable, you need to replace "${new_vm_id}" with the desired ID for the new virtual machine.

  • "--pool ${pool_name}": This is an option that specifies the storage pool where the new virtual machine's files will be stored. The "${pool_name}" variable needs to be replaced with the actual name of the storage pool.

By executing this command, Proxmox VE will create a new virtual machine by copying the specified existing virtual machine, with a new ID and stored in the specified storage pool.

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