[pve-devel] [PATCH qemu-server 0/7] online vm migration to external cluster
Alexandre Derumier
aderumier at odiso.com
Mon Oct 29 16:38:45 CET 2018
This add support to migrate a vm online to an different external cluster.
(This a rework of a previous patch series sent 2years ago)
qm migrate <vmid> <targetremotenode> --migration_type external [--targetstorage monpoolceph_vm] --online
targetstorage is optional, if not defined it's used same storagename than source
targetremotenode is a fqdn host from another cluster.
(source node must be able to root ssh to target node with public key)
source vm is not deleted currently for safety, just stopped and the migrate lock keeped to avoid
to restart it.
Please review and comment
Alexandre
Alexandre Derumier (7):
api2 : migrate_vm : add migration_type "external"
qm: add nextvmid
migrate : prepare : add create_vm for external migration
migrate : phase1 : skip sync_disk for external migration
migrate : phase2 : migrate external
migrate : phase2_cleanup : migrate_external
migrate : phase3_cleanup : migrate_external
PVE/API2/Qemu.pm | 31 +++++++----
PVE/CLI/qm.pm | 19 +++++++
PVE/QemuMigrate.pm | 156 +++++++++++++++++++++++++++++++++++++++++++----------
PVE/QemuServer.pm | 24 +++++++--
4 files changed, 188 insertions(+), 42 deletions(-)
--
2.11.0
More information about the pve-devel
mailing list