ESXi Ova/OVF templates upload on Glance

Asked by Ivar Lazzaro

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.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
John Garbutt
Solved:
Last query:
Last reply:
Revision history for this message
Ivar Lazzaro (mmaleckk) said :
#1

Anyone?

Revision history for this message
koolhead17 (koolhead17) said :
#2

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.

Revision history for this message
John Garbutt (johngarbutt) said :
#3

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

Revision history for this message
Ivar Lazzaro (mmaleckk) said :
#4

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.

Revision history for this message
Best John Garbutt (johngarbutt) said :
#5

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

Revision history for this message
Ivar Lazzaro (mmaleckk) said :
#6

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.

Revision history for this message
Ivar Lazzaro (mmaleckk) said :
#7

Thanks John Garbutt, that solved my question.

Revision history for this message
John Garbutt (johngarbutt) said :
#8

+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 :-)