On Fri, Nov 25, 2022 at 7:39 PM Ritesh Chikatwar <rchikatw@redhat.com> wrote:
Hello Kishore,


Maybe rest API will help you to do this, I am not fully aware of this you need to explore.
http://ovirt.github.io/ovirt-engine-api-model/4.5/#_services

Right, you can do that with REST API by setting the body of the call to update-VM (PUT request) with:
<vm>
   <initialization/>
</vm>
 


On Wed, Nov 23, 2022 at 6:22 PM <kishorekumar.goli@gmail.com> wrote:
Hi All,

I have a requirement to automate template creation using ansible module or apis.

I need to remove cloud-init check box from vm before creating the template. Below are the steps I follow from gui

1. Shutdown the vm.
2. click edit vm > initial run> uncheck cloud-init box
3. create template.

I cannot automate second step as there is no option to remove cloud-init option.
Could anyone please help me if there is a way to uncheck cloud-init??

BRs
Kishore
_______________________________________________
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/EM7OG6UFFA6QZRBVDBDY76TSLDHOTUKT/
_______________________________________________
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/P7ZE4WQCRNTQZ3IMD47DDJ5ZNBITVZU6/