This can be executed anywhere, I run it either on the engine or host since all prerequisites are pre-installed there. You need to enter the name of the vm and host in place of 'myvm' and 'myhost'

On Mon, Mar 25, 2019, 4:45 PM Sakhi Hadebe <sakhi@sanren.ac.za> wrote:
Thank you Hesham,

Do execute the script on engine or ovirt hosts? Should I specify the domain of the VM and the name of the host on the values bolded below:

# Find the virtual machine:
vms_service = connection.system_service().vms_service()
vm = vms_service.list(search='name=myvm')[0]
vm_service = vms_service.vm_service(vm.id)
# Find the host:
hosts_service = connection.system_service().hosts_service()
host = hosts_service.list(search='name=myhost')[0]




On Mon, Mar 25, 2019 at 2:49 PM Hesham Ahmed <hsahmed@gmail.com> wrote:
I don't think there is a pre-installed CLI tool for export to OVA,
however you can use this
https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/export_vm_as_ova.py

Make sure you change the Engine URL, username, password, VM and Host
values to match your requirements.

On Mon, Mar 25, 2019 at 3:35 PM Sakhi Hadebe <sakhi@sanren.ac.za> wrote:
>
> Hi,
>
> What is the CLI command to export VMs as OVA?
>
> --
> Regards,
> Sakhi Hadebe
> _______________________________________________
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-leave@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
> List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/I32KQWNTIY4N6ZXTH6IGND74H2JLWJJ5/


--
Regards,
Sakhi Hadebe
Engineer: South African National Research Network (SANReN)Competency Area, Meraka, CSIR
 
Tel:   +27 12 841 2308
Fax:   +27 12 841 4223
Cell:  +27 71 331 9622
Email: sakhi@sanren.ac.za