Forrest logo
back to the qm tool

qm-migrate:tldr:414f0

qm-migrate: Migrate a specific virtual machine.
$ qm migrate ${vm_id} ${target}
try on your machine

The command "qm migrate ${vm_id} ${target}" is used to migrate a virtual machine (VM) from one Proxmox server to another.

Here's a breakdown of the command:

  • "qm" is the command-line tool provided by Proxmox for managing VMs.
  • "migrate" is the specific action we want to perform, which is to migrate the VM.
  • "${vm_id}" is a placeholder for the ID or name of the virtual machine that you want to migrate. You need to replace "${vm_id}" with the actual ID or name of the VM.
  • "${target}" is a placeholder for the name or IP address of the Proxmox server where you want to migrate the VM. Again, you need to replace "${target}" with the actual name or IP address.

After executing the command, Proxmox will initiate the migration process, which involves transferring the VM's disk files, configuration, and memory state to the target Proxmox server. The migration allows you to move the VM seamlessly without interrupting its operation, ensuring high availability and flexibility in managing your virtual infrastructure.

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