[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] [PATCH virt-manager] set VM persistence and undefine source flags for migration



    Set VM persistence and undefine source after successful migration

diff --git a/src/virtManager/domain.py b/src/virtManager/domain.py
index b547f91..e348a3d 100644
--- a/src/virtManager/domain.py
+++ b/src/virtManager/domain.py
@@ -1143,6 +1143,8 @@ class vmmDomain(vmmLibvirtObject):
         newname = None
 
         flags = 0
+        flags |= libvirt.VIR_MIGRATE_UNDEFINE_SOURCE
+        flags |= libvirt.VIR_MIGRATE_PERSIST_DEST
         if self.status() == libvirt.VIR_DOMAIN_RUNNING and live:
             flags |= libvirt.VIR_MIGRATE_LIVE
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]