Ask Your Question
1

Can I launch a instance with OVF file in openstack?

asked 2014-04-29 21:27:14 -0500

spark gravatar image

updated 2014-04-30 03:41:32 -0500

We have a OVF application need deploy in openstack, does nova support launch a instance with OVF file?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-04-30 02:18:23 -0500

updated 2014-04-30 03:38:09 -0500

Reading Glance documentation seems possible to upload OVF files, although that metadata (container format) will not be used by Glance itself and other Openstack Components.

This document states:

OpenStack Compute does not currently have support for OVF packages, so you will need to extract the image file(s) from an OVF package if you wish to use it with OpenStack.

edit flag offensive delete link more

Comments

thx,Antonio. that mean we can't use OVF with openstack. How to extract the image file from OVF package? Is there any tools can convert OVF file?

spark gravatar imagespark ( 2014-04-30 07:01:24 -0500 )edit

I will explain you how I solved this issue. I do not know if there is a better solution / technical tool to do that.

From my vSphereClient i connect to an ESXi Host (either managed by OpenStack or not) and perform:

File -> Deploy OVF Template (following the wizard)

Then I shutdown the created VM, retrieving its disk from the ESXi datastore. Now you can:

  • use directly the flat.vmdk disk to upload it to Glance
  • transferred it to a KVM host in order to perform a vmdk->qcow2 conversion* and then upload the qcow2 to Glance

The command for vmdk to qcow2 conversion is:

qemu-img convert disk-flat.vmdk -O disk-flat.qcow2
Antonio G. gravatar imageAntonio G. ( 2014-04-30 07:17:12 -0500 )edit

@antonio : how do you do if the vm has two disk : one disk for root and one disk for data

leethaoqn gravatar imageleethaoqn ( 2014-09-22 08:10:42 -0500 )edit

This is the solution I'm aware of (never tried it...):

https://ask.openstack.org/en/question...

Antonio G. gravatar imageAntonio G. ( 2014-09-22 08:36:55 -0500 )edit

thank for your suggestion, but i didn't soft reboot instance in this link

leethaoqn gravatar imageleethaoqn ( 2014-09-22 09:41:27 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2014-04-29 21:27:14 -0500

Seen: 7,136 times

Last updated: Apr 30 '14