Dňa 22.04.2015 o 13:09 Juan Hernández napísal(a):
# Iterate the disks of the VM and for each of them move it
# to the target storage domain:
for disk in vm.disks.list():
     # Start moving the disk. Note that this is an asynchronous
     # operation, so once the "move" method returns you will
     # have to wait for the actual movement to finish.
     print("Moving disk \"%s\" ..." % disk.get_alias())
     disk.move(
         params.Action(
             storage_domain=sd
         )
     )
This works nicely, thank you.

--
Ernest Beinrohr, AXON PRO
Ing <http://www.beinrohr.sk/ing.php>, RHCE <http://www.beinrohr.sk/rhce.php>, RHCVA <http://www.beinrohr.sk/rhce.php>, LPIC <http://www.beinrohr.sk/lpic.php>, VCA <http://www.beinrohr.sk/vca.php>,
+421-2-62410360 +421-903-482603
_______________________________________________
Users mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/users

Reply via email to