[libvirt] [PATCH/RFC] Introduce VIR_MIGRATE_FORCE flag to allow for risky migration

Daniel P. Berrange berrange at redhat.com
Mon Oct 24 08:00:21 UTC 2011


On Fri, Oct 21, 2011 at 08:16:24PM +0200, Guido Günther wrote:
> Hi,
> Migration will be disallowed when the vm uses host devices or has
> snapshots (qemuMigrationIsAllowed)[1]. Would it make sense to introduce
> a VIR_MIGRATE_FORCE similar to VIR_REVERT_FORCE here?  We could then
> introduce error codes similar to the snapshot case
> (VIR_ERR_MIGRATE_RISKY).

I'm not sure this will actually work out in practice because QEMU
itself also checks some of these scenarios and blocks them. So even
if libvirt didn't check, the user still wouldnt' be able to force
it to migrate.

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list