Displaying 2 results from an estimated 2 matches for "domain_obj".
Did you mean:
domain_b
2014 Nov 28
0
python migrateSetMaxSpeed not taking effect
...ing vm's based on zfs zvol's.
Either I am doing something wrong or python migrateSetMaxSpeed not taking
effect: no mater what value I specify (except for 0), I end up with 10
Mib/s migration speed. The code is:
def virt_migrate(domain):
conn = libvirt.open('qemu:///system')
domain_obj = conn.lookupByName(domain)
dst='qemu+ssh://root@%s/system' % args.remote
domain_obj.migrateSetMaxSpeed(40,0)
new_dom = domain_obj.migrateToURI(dst,libvirt.VIR_MIGRATE_LIVE |
libvirt.VIR_MIGRATE_PEER2PEER | libvirt.VIR_MIGRATE_NON_SHARED_INC |
libvirt.VIR_MIGRATE_PERSIST_DEST |...
2011 May 24
0
Xen and live migration with VIR_MIGRATE_PERSIST_DEST
...quires the VIR_MIGRATE_PERSIST_DEST and VIR_MIGRATE_UNDEFINE_SOURCE flags.
Here's the code doing the migration:
----------
flags = (libvirt.VIR_MIGRATE_LIVE ^
libvirt.VIR_MIGRATE_PERSIST_DEST ^
libvirt.VIR_MIGRATE_UNDEFINE_SOURCE)
uri = 'xenmigr://remote.host.com:8002'
domain_obj.migrate(con_handle, flags, None, uri, 0)
----------
There are various problems that occur randomly, such as the VM
completely disappearing 5 seconds after a succesful migration, but the
main issue is with VIR_MIGRATE_PERSIST_DEST that doesn't seem to have
any effect. The domU is not defined in...