domain: migrate: Use UNDEFINE_SOURCE

Leaving a VM defined on the source is dangerous: if they are sharing
storage, and aren't using virtlockd, then they might be inadvertently
started in two places at once and trash a disk image.

Some people might still need the option to turn this off, so maybe we
will revive it. Not sure though
This commit is contained in:
Cole Robinson
2015-04-21 16:33:41 -04:00
parent 26c729887d
commit 692604e0a3
+1
View File
@@ -1499,6 +1499,7 @@ class vmmDomain(vmmLibvirtObject):
flags = 0
flags |= libvirt.VIR_MIGRATE_LIVE
flags |= libvirt.VIR_MIGRATE_PERSIST_DEST
flags |= libvirt.VIR_MIGRATE_UNDEFINE_SOURCE
if secure:
flags |= libvirt.VIR_MIGRATE_PEER2PEER