LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

qm-remote-migrate

Migrate a Proxmox VM to a remote host or cluster

TLDR

Move a stopped virtual machine to a remote cluster
$ qm remote-migrate [vmid] [target_vmid] 'apitoken=PVEAPIToken=[user]@[realm]![token]=[secret],host=[address],fingerprint=[fingerprint]' --target-bridge [bridge] --target-storage [storage]
copy
Move it while it keeps running
$ qm remote-migrate [vmid] [target_vmid] 'apitoken=PVEAPIToken=[user]@[realm]![token]=[secret],host=[address],fingerprint=[fingerprint]' --target-bridge [bridge] --target-storage [storage] --online
copy
Reach an API listening on a non-standard port
$ qm remote-migrate [vmid] [target_vmid] 'apitoken=PVEAPIToken=[user]@[realm]![token]=[secret],host=[address],fingerprint=[fingerprint],port=[8006]' --target-bridge [bridge] --target-storage [storage]
copy
Keep the same bridge and storage names on the far side
$ qm remote-migrate [vmid] [target_vmid] 'apitoken=PVEAPIToken=[user]@[realm]![token]=[secret],host=[address],fingerprint=[fingerprint]' --target-bridge 1 --target-storage 1
copy
Throttle the transfer so it does not saturate the link
$ qm remote-migrate [vmid] [target_vmid] 'apitoken=PVEAPIToken=[user]@[realm]![token]=[secret],host=[address],fingerprint=[fingerprint]' --target-bridge [bridge] --target-storage [storage] --bwlimit [value]
copy
Remove the source machine once the copy succeeds
$ qm remote-migrate [vmid] [target_vmid] 'apitoken=PVEAPIToken=[user]@[realm]![token]=[secret],host=[address],fingerprint=[fingerprint]' --target-bridge [bridge] --target-storage [storage] --delete 1
copy

SYNOPSIS

qm remote-migrate vmid target-vmid target-endpoint [OPTIONS]

DESCRIPTION

qm remote-migrate migrates a virtual machine from the local Proxmox VE cluster to a remote host or cluster over the Proxmox API. Unlike `qm migrate` (intra-cluster), remote migration uses an API token and host fingerprint for authentication and TLS verification.You must supply bridge and storage mapping so network and disks land on valid remote resources. Live migration (`--online`) moves a running guest with reduced downtime when the environments support it.

PARAMETERS

vmid

Source virtual machine ID on the local cluster
target-vmid
Destination VM ID on the remote cluster (may match source)
target-endpoint
Remote connection string: API token, host, TLS fingerprint (optional port)
--target-bridge bridge|1
Map network bridges; `1` keeps source bridge names
--target-storage storage|1
Map storage; `1` keeps source storage names
--online
Perform online/live migration for a running VM
--delete 0|1
Remove the source VM after a successful migration
--bwlimit kbps
Bandwidth limit for the transfer

CAVEATS

Requires a valid API token with sufficient privileges on the remote side and a matching TLS fingerprint. Network capacity and storage compatibility dominate transfer time. Test mappings carefully; wrong bridge/storage targets fail mid-migration. Treat API tokens as secrets.

HISTORY

Part of Proxmox VE QEMU/KVM management, enabling cross-cluster VM moves without shared cluster membership.

SEE ALSO

qm(1), qm-migrate(1), pvecm(1)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid