# 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] |
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/
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