qm-remote-migrate
Migrate a virtual machine to a remote Proxmox host or cluster. tldr-pages
On Linux
Linux
Migrate a VM to a remote host
qm remote-migrate vmid target_vmid 'apitoken=PVEAPIToken=user@realm!token=secret,host=address,fingerprint=fingerprint' --target-bridge bridge --target-storage storageIdentifyMigrate a running VM with live migration
qm remote-migrate vmid target_vmid 'apitoken=PVEAPIToken=user@realm!token=secret,host=address,fingerprint=fingerprint' --target-bridge bridge --target-storage storage --onlineIdentifyDelete the source VM after a successful migration
qm remote-migrate vmid target_vmid 'apitoken=PVEAPIToken=user@realm!token=secret,host=address,fingerprint=fingerprint' --target-bridge bridge --target-storage storage --delete 1IdentifyLimit migration bandwidth
qm remote-migrate vmid target_vmid 'apitoken=PVEAPIToken=user@realm!token=secret,host=address,fingerprint=fingerprint' --target-bridge bridge --target-storage storage --bwlimit valueIdentifyUse the same bridge and storage names on the target
qm remote-migrate vmid target_vmid 'apitoken=PVEAPIToken=user@realm!token=secret,host=address,fingerprint=fingerprint' --target-bridge 1 --target-storage 1IdentifyConnect to a remote API on a custom port
qm remote-migrate vmid target_vmid 'apitoken=PVEAPIToken=user@realm!token=secret,host=address,fingerprint=fingerprint,port=porta' --target-bridge bridge --target-storage storageIdentify