Forrest logo
back to the qm tool

qm-migrate:tldr:c6ca1

qm-migrate: Enable live storage migration for local disks.
$ qm migrate ${vm_id} ${target} --with-local-disks true
try on your machine

This command is used to migrate a virtual machine with the specified VM ID to a target location. The migration process involves moving the virtual machine along with its local disks. Let's break down the command:

  • qm migrate: This is the command used to initiate the migration process in the Proxmox VE virtualization environment.
  • ${vm_id}: This is a placeholder for the ID of the virtual machine that needs to be migrated. You need to replace ${vm_id} with the actual ID of the VM.
  • ${target}: This is a placeholder for the destination node or host where the virtual machine will be migrated. You need to replace ${target} with the appropriate target address or name.
  • --with-local-disks true: This flag indicates that the migration should include the virtual machine's local disks. It ensures that the VM's disk files are also transferred during migration.

In summary, this command is used to migrate a specific virtual machine (identified by its VM ID) to a target location, ensuring that the local disks of the VM are also migrated.

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