On Monday, 4 October 2021 21:56:53 CEST Divan Santana wrote:
Vojtech Juranek <vjuranek(a)redhat.com> writes:
> On Friday, 1 October 2021 07:51:56 CEST divan(a)santanas.co.za wrote:
>> Hi oVirt Team,
>>
>> Reading the API docs
>>
>>
http://ovirt.github.io/ovirt-engine-api-model/4.3/#services/external_vm_i
>> mpo rts
>>
http://ovirt.github.io/ovirt-engine-api-model/4.3/#types/external_vm_prov
>> id
>> 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/impor
> t_vm_from_ova.py
Thanks. This example is useful indeed.
Though it doesn't really answer the question. Because this example
uses requires KVM/libvirt storage domain AFAIK.
not sure what you mean by "KVM/libvirt storage domain", but what matters is
what's inside OVA file which you specify on line 63 (
https://github.com/oVirt/
python-ovirt-engine-sdk4/blob/main/examples/import_vm_from_ova.py#L63).
See Arik's answer for more detail explanation. (maybe we should add it direcly
into example?)
Unlike the web interface which can import an ova file that is
residing
on the file system.
Having an API for that, would be nice.