Forrest logo
back to the qm tool

qm-clone:tldr:50ca4

qm-clone: Copy a virtual machine using a specific name.
$ qm copy ${vm_id} ${new_vm_id} --name ${name}
try on your machine

This command is using the "qm" tool to create a copy of a virtual machine (VM) in a Proxmox Virtual Environment (PVE) system.

Here's a breakdown of the command:

  • "qm": This is the command-line tool used to manage virtual machines in Proxmox.
  • "copy": This is the subcommand used to create a copy of a virtual machine.
  • "${vm_id}": This is a placeholder for the ID of the existing VM that you want to copy. You would replace "${vm_id}" with the actual ID (e.g., "100").
  • "${new_vm_id}": This is a placeholder for the ID of the new VM that will be created as a copy. You would replace "${new_vm_id}" with the desired ID for the new VM.
  • "--name ${name}": This is an additional option to provide a name for the new VM. You would replace "${name}" with the desired name for the new VM.

In summary, this command creates a copy of an existing virtual machine with a new ID and a specified name.

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