[ovirt-users] Re: importing an ovirt vm via the API for "Virtual Appliance OVA"
On Monday, 4 October 2021 21:56:53 CEST Divan Santana wrote: > Vojtech Juranek writes: > > On Friday, 1 October 2021 07:51:56 CEST di...@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. signature.asc Description: This is a digitally signed message part. ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@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/7THHASSRWQVDYLJDJ3K2G4TUKOT7FOK4/
[ovirt-users] Re: importing an ovirt vm via the API for "Virtual Appliance OVA"
Vojtech Juranek writes: > On Friday, 1 October 2021 07:51:56 CEST di...@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 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. ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@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/HQGQG56LCQJBWFS4SSGGOWSWAKVBOIK5/
[ovirt-users] Re: importing an ovirt vm via the API for "Virtual Appliance OVA"
On Fri, Oct 1, 2021 at 10:08 AM Vojtech Juranek wrote: > On Friday, 1 October 2021 07:51:56 CEST di...@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://" 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-le...@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-le...@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/ > ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@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/3KNDYIVHZDGNKYNNOGNZQFWOIAXBEEQE/
[ovirt-users] Re: importing an ovirt vm via the API for "Virtual Appliance OVA"
On Friday, 1 October 2021 07:51:56 CEST di...@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 > -- > Divan Santana > ___ > Users mailing list -- users@ovirt.org > To unsubscribe send an email to users-le...@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/ signature.asc Description: This is a digitally signed message part. ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@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/