On Sat, Mar 12, 2022 at 9:06 AM Simon Scott <simon@justconnect.ie> wrote:
Hi Arik,

I don’t see an option to select allocation-policy=clone and specifying that the VM disk(s) should be preallocated’ when creating a VM from the template.

From the API you need to specify clone=True as in [1] and the volume type+format as in [2]
In the webadmin, it is part of the Resource Allocation tab (specifically its 'Storage Allocation' section) in the add-vm dialog

[1] https://github.com/oVirt/python-ovirt-engine-sdk4/blob/c5ea821acc80da12a30b68647dd76370b9f54e4e/examples/add_independet_vm.py#L56
[2] https://github.com/oVirt/python-ovirt-engine-sdk4/blob/c5ea821acc80da12a30b68647dd76370b9f54e4e/examples/add_template.py#L73-L74


Regard

Simon
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/PM2YIHRODYWHKS56YDQZVAZHZAYS7DAB/