[ovirt-users] How to create a vm cloned independent from python sdk

Amedeo Salvati amedeo at oscert.net
Wed Dec 10 16:11:13 UTC 2014


   Hello all,
   I'm trying to create a new VM using python sdk with it's disks cloned/independent and not on thin provisioning, when I create vm I use template (that has a preallocated disks), and I use this code to create a vm:
   api.vms.add(params.VM(name=VMNAME, memory=MEM*GB, cluster=api.clusters.get(CLUSTER),
                                 template=api.templates.get(templatename), description='PROVA' ))
   if I use web portal I'm able to preallocate/clone disks under resource allocation tab (New VM -> resource allocation), instead I can't found same operations on python sdk...
   someone can let me know what params I should pass to api.vms.add to clone disks?
   Best regards
   Amedeo Salvati
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20141210/9cc748d5/attachment-0001.html>


More information about the Users mailing list