[pve-devel] [PATCH qemu-server 0/7] online vm migration to external cluster

David Limbeck d.limbeck at proxmox.com
Mon Nov 5 10:18:12 CET 2018


I'm currently looking through the patches and will provide you with 
feedback sometime this week.

On 10/29/18 4:38 PM, Alexandre Derumier wrote:
> 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(-)
>




More information about the pve-devel mailing list