On Fri, Oct 1, 2021 at 10:08 AM Vojtech Juranek <vjuranek@redhat.com> wrote:
On Friday, 1 October 2021 07:51:56 CEST divan@santanas.co.za wrote:
> Hi oVirt Team,
>
> Reading the API docs
>
> http://ovirt.github.io/ovirt-engine-api-model/4.3/#services/external_vm_impo
> rts
> http://ovirt.github.io/ovirt-engine-api-model/4.3/#types/external_vm_provid
> er_type
> and ovirt_vm module
> https://docs.ansible.com/ansible/latest/collections/ovirt/ovirt/ovirt_vm_mod
> ule.html#ansible-collections-ovirt-ovirt-ovirt-vm-module

> I see support for
> - kvm
> - vmware
> - XEN
>
> In the oVirt web GUI (4.3) there is under compute -> VM -> import ->
> source options for:
> - kvm
> - vmware
> - XEN
> - Virtual Appliance OVA
>
> I'm trying to import an OVA that sits on the file system on the oVirt
> node.  Via the GUI selecting Virtual Appliance OVA does the job.
>
> Is the API missing this functionality or am I missing something?

here is example how to import OVA file (for 4.4, not
sure about 4.3, but probably should work as well):

https://github.com/oVirt/python-ovirt-engine-sdk4/blob/main/examples/import_vm_from_ova.py

Yeah, and just to elaborate on that a bit - it doesn't matter which provider is set there. Even though it is set to KVM in that example, we don't look at it
For OVA, the important part is to have the URL in the form of "ova://<path on host>" and oVirt will figure out if it's an OVA that was generated by oVirt or by a different platform regardless of the provider you set
 



> --
> Divan Santana
> _______________________________________________
> 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/2WWHXYKDSB2PG
> QVEQEV3FUPDWNCQBUXY/

_______________________________________________
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/YWAC57VJL6MZX6K53QUWCGMJAMAYQH24/