importing an ovirt vm via the API for "Virtual Appliance OVA"

Hi oVirt Team, Reading the API docs http://ovirt.github.io/ovirt-engine-api-model/4.3/#services/external_vm_impo... http://ovirt.github.io/ovirt-engine-api-model/4.3/#types/external_vm_provide... and ovirt_vm module https://docs.ansible.com/ansible/latest/collections/ovirt/ovirt/ovirt_vm_mod... 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? -- Divan Santana

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_...
-- 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/

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_...
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/YWAC57VJL6MZX6...

Vojtech Juranek <vjuranek@redhat.com> writes:
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_...
Thanks. This example is useful indeed. Though it doesn't really answer the question. Because this example uses requires KVM/libvirt storage domain AFAIK. 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.

On Monday, 4 October 2021 21:56:53 CEST Divan Santana wrote:
Vojtech Juranek <vjuranek@redhat.com> writes:
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_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.
participants (4)
-
Arik Hadas
-
Divan Santana
-
divan@santanas.co.za
-
Vojtech Juranek