Ask Your Question
0

ESXi Ova/OVF templates upload on Glance

asked 2012-06-21 21:57:55 -0600

mmaleckk gravatar image

Hello, I'm deploying Openstack with basic components (using Nova, Keystone and Glance) for provisioning VMs using ESXi as hypervisor.

Everything works fine, except for the fact that i don't know what is the correct way to upload on OVA file (or OVF template) on glance in a way that can be used by nova to provide correct provisioning of the VMs.

What I have done so far is uploading flat .vmdk disks (downloaded directly through vSphere) and everything works, but the image is oversized (as much as the disk assigned to that VM) and the provision is very very slow.

So what i want to do is to use OVA/OVF templates exported from ESXi in order to easly create my own custom images and be able to provision them in a reasonable amount of time (which should be true considering the dimension is dramatically lower).

And here is the question: what is the right way to upload OVA/OVF using glance? I've tried something like this for an OVA file:

glance add name="LinuxWS-OVA" disk_format=vmdk container_format=ovf vmware_adaptertype='lsiLogic' vmware_ostype="ubuntu64Guest" < OpenstackTest.ova

And the upload goes correctly, but when i deploy the VM it comes up without OS (using vSphere console all i get is "Operative System not Found." I also have an OVF templace (consisting of 3 files: .vmdk .mf .ovf) but i don't know how should i upload them to let glance understand that they are part of the same template.

Any idea? Is it only possible to use ESXi as Hypervisor through super-sized flat .vmdk? thanks for your answers.

edit retag flag offensive close merge delete

10 answers

Sort by ยป oldest newest most voted
0

answered 2013-04-16 22:21:23 -0600

So then, the proper way to do this is:

glance add name="ChromeOS" is_public=true container_format=bare disk_format=vmdk < ChromeOS.vmdk

Is that right?

edit flag offensive delete link more
0

answered 2013-04-16 22:22:34 -0600

So then, the proper way to do this is:

glance add name="ChromeOS" is_public=true container_format=bare disk_format=vmdk < ChromeOS.vmdk

Is that right?

I am still getting the same issue by importing it that way.

edit flag offensive delete link more
0

answered 2012-06-28 17:09:50 -0600

mmaleckk gravatar image

Anyone?

edit flag offensive delete link more
0

answered 2012-07-05 10:41:42 -0600

koolhead17 gravatar image

glance add name="<image name="">" is_public=true container_format=ovf disk_format=qcow2 < <filename>.img

$glance --help

This will give more option and solve yous issue.

edit flag offensive delete link more
0

answered 2012-07-05 15:22:38 -0600

johngarbutt gravatar image

Not sure the support will work with OVF, it was tested with VMDK that was uploaded into glance (in the usual way)

edit flag offensive delete link more
0

answered 2012-07-05 22:15:01 -0600

mmaleckk gravatar image

I doesn't work... The error remains the same: Operative System not Found when I try to access the VM via VSphere's console.

Currently the only way I am able to provision VM in ESXi through Openstack is using thick provisioned VMDKs... I wonder if I'm doing something wrong or other ways are just unsupported.

edit flag offensive delete link more
0

answered 2012-07-09 15:22:32 -0600

johngarbutt gravatar image

I am afraid VMDKs are the only things that work right now, I just checked the code. It only supports container=bare with vmdks.

edit flag offensive delete link more
0

answered 2012-07-10 16:24:11 -0600

mmaleckk gravatar image

Thank you very much, now I can at least stop looking around for nonexistent solutions.

It would be interesting tough to implement the OVA support, since it would be much faster and less disk-consuming to provide VMs that way instead of using flat VMDK.

edit flag offensive delete link more
0

answered 2012-07-10 16:24:15 -0600

mmaleckk gravatar image

Thanks John Garbutt, that solved my question.

edit flag offensive delete link more
0

answered 2012-07-11 12:43:23 -0600

johngarbutt gravatar image

+1

It would be good to have this support.

A simple gzip of the VMDK, like we do in XenServer for VHD would get us most of the way there.

Afraid I am unlikely to get time to do that, but patches are very welcome :-)

edit flag offensive delete link more

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

1 follower

Stats

Asked: 2012-06-21 21:57:55 -0600

Seen: 1,082 times

Last updated: Apr 16 '13