ServerMania logo

Convert OVA

To convert the OVA template into a virtualization format, use the following request: 

POST /template_ovas/:id/converting.xml
POST /template_ovas/:id/converting.json

XML Request Example

curl -i -X POST -u user:userpass --url http://test/template_ovas/12/converting.xml -H 'Accept: application/xml' -H 'Content-type: application/xml' -d '<image_template_ova><label>MyOVA</label><virtualization>vcenter</virtualization><operating_system>linux</operating_system><operating_system_distro>ubuntu</operating_system_distro><initial_username>username</initial_username><initial_password>admin</initial_password><allowed_hot_migrate>true</allowed_hot_migrate><make_public>true</make_public><operating_system_arch>x64</operating_system_arch></image_template_ova>'

JSON Request Example

curl -i -X POST -u user:userpass --url http://test/template_ovas/12/converting.json -H 'Accept: application/json' -H 'Content-type: application/json' -d '{"image_template_ova": {"label": "MyOVA", "virtualization": "kvm", "operating_system": "linux", "operating_system_distro": "ubuntu", "allowed_hot_migrate": "true", "make_public": "true", "operating_system_arch": "x64"}}'

Where: 

label* - the title of the OVA file

virtualization* - the virtualization type of the converted OVA template (kvm, vcenter or kvm_virtio)

operating_system* - the operating system of OVA

operating_system_distro* - the operating system distribution of OVA

initial_password* - the password for the guest operating system for vCenter-based OVA templates

initial_username* - the username for the guest operating system for vCenter-based OVA templates

allowed_hot_migrate - true if hot migration for VS created from this OVA is enabled, otherwise, false

make_public - true for the OVA file to be available to all users, otherwise, false

operating_system_arch* - the architecture of the OVA file (x86 or x64)

operating_system_edition*the edition of the OVA (required for Windows-based OVAs only)

operating_system_tail - the updated release of Windows OS distribution. If updated, then the parameter is R2, otherwise, empty (for Windows-based OVAs only).