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

Eric Blake eblake at redhat.com
Mon May 21 15:33:01 UTC 2012


On 05/17/2012 06:24 PM, ryan woodsmall wrote:
>     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

This makes it unconditional.  I'd much rather see a checkbox for each
option, to make it user-configurable via the gui.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20120521/04a91fe1/attachment.sig>


More information about the virt-tools-list mailing list