Migrate a virtual machine

Options

optiondescriptionAllowed values
vmidThe virtual machine id to migrateinteger
filter-nameA regex string to select multiple virtual machines to be migratedstring regex
target-nodethe proxmox target node namestring
Info

vmid and filter-name are mutualy exclusive

Examples

Note

You can’t migrate a running virtual machine. The only way to do live migration is through cluster ha resource migrate. See cluster ha section

  • migrate a virtual machine from one proxmox node to other
proxcli vms migrate --vmid 111 --target-node pve2 
  • migrate multiples virtual machines by selecting the with a regex filter on their name
proxcli vms migrate --filter-name "^b4p" --target-node pve2