]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Allow virsh to pass in a custom XML document for migration
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 27 May 2011 10:28:35 +0000 (11:28 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 31 May 2011 11:14:57 +0000 (12:14 +0100)
commitec5301cb85eea2a032ea2f0637dd0adb6940486f
tree4b5c3657c11e86183645a7aab80e2d28ba197518
parent08106e20448429f1e5e34e8ef7c9047eb13b9261
Allow virsh to pass in a custom XML document for migration

Switch virsh migrate over to use virDomainMigrate2 and
virDomainMigrateToURI2. This is still compatible with
older libvirts, because these methods dynamically choose
whether to perform v1, v2 or v3 migration based on declared
RPC support from the libvirtd instances

Add a --xml arg which allows the user to pass in a custom
XML document. This XML document must be ABI compatible
with the current *live* XML document for the running guest
on the source host. ABI compatibility will be enforced by
any driver supporting this function

* tools/virsh.c: Add '--xml' arg to migrate command
tools/virsh.c