Migrate a virtual machine
Options
| option | description | Allowed values |
|---|---|---|
| vmid | The virtual machine id to migrate | integer |
| filter-name | A regex string to select multiple virtual machines to be migrated | string regex |
| target-node | the proxmox target node name | string |
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