mirror of
https://github.com/virt-manager/virt-manager.git
synced 2026-08-09 12:38:05 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user