izderadicka / xapi-back

Simple backup tool for Xen Api - backups VMs images
2 stars 3 forks source link

Direct migration between hosts #14

Open guestisp opened 8 years ago

guestisp commented 8 years ago

Something like xe migrate --src-host 1.2.3.4 --dst-host 5.6.7.8 --vm my_vm could be added allowing direct migration between hosts.

Very usefull if VM is powered off and also usefull to move running VMs (with snapshot) between nodes. Currently I use this type of migration to migrate VM between servers. I'm able to direct transfer (piping the export api to the import api) 200GB with no downtime. After the migration, an rsync (executed manually from the new VM) would sync the changed file. With no shared storage, a migration of 200GB would require many hours of downtime. With this method, I'm able to transfer everything in about 20 minutes of downtime. (just the time to rsync the changed files)

izderadicka commented 7 years ago

I think it's bit out of scope of xapi-back - it was ment for simple backups. We can leave it open as enhancement if somebody would like to look at it.

izderadicka commented 7 years ago

I used xe migrate in XenCenter. It worked fine. The only reason to duplicate in xb is that migrate does not work with different versions of Xenserver. So maybe here is the niche. It'll should be basically backup and restore tight together. Data are not stored locally but just forwarded from backup to restore. Source vm optionally deleted after successful migration. Will this meet your needs?