
Anno domini 2009 Daniel Veillard scripsit:
On Mon, Oct 12, 2009 at 01:32:26PM +0200, Chris Lalancette wrote:
Normally, when you migrate a domain from host A to host B, the domain on host A remains defined but shutoff and the domain on host B remains running but is a "transient". Add a new flag to virDomainMigrate() to allow the original domain to be undefined on source host A, and a new flag to virDomainMigrate() to allow the new domain to be persisted on the destination host B.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
Thanks for the ground work! Attached you can find a patch implementing the same flags for Xen: * src/xen/xen_driver.c: Add support for VIR_MIGRATE_PERSIST_DEST flag * src/xen/xend_internal.c: Add support for VIR_MIGRATE_UNDEFINE_SOURCE flag I'm not totaly sure if there are better ways to handle all the error cases. The current solution seemed to be a same one for me. Ciao Max -- Eine Freie Meinung in einem Freien Kopf für einen Freien Staat voll Freier Bürger.