Unable to boot VM using image exported from Virtual Center

Bug #1286405 reported by Sreeram Yerrapragada
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Unassigned

Bug Description

Steps to reproduce:
1. From Virtual Center, export a working VM as an OVA file (test.ova)
2. Upload OVA file to glance using:
glance image-create --name=testova --disk-format=vmdk --container-format=ovf --is-public=True --property vmware_adaptertype="ide" --property vmware_disktype="preallocated" < testimages/test.ova

actual result:
The boot appears to succeed and the VM appears running, but the console shows "Operating system not found".
Also:
- I have tried with --property vmware_disktype="sparse" and the result is the same
- Trying with --container-format="ova" gives:
400 Bad Request
Invalid container format 'ova' for image.
(HTTP 400)

Expected:
Able to boot into OS and see the login screen

Tags: vmware
Revision history for this message
Vui Lam (vui) wrote :

That the boot actually appears to 'succeed' was a source of confusion on more than one occasion.

There are actually two issues:

1. The ova file uploaded to glance it actually a tar bundle containing within it the actual disk image that we need to boot the instance with. So the OVA image downloaded from glance will require further processing to extract the needed file.
2. The extracted VMDK is in the streamOptimized format, which until recently, cannot be properly handled by the VMware drivers.
With the introduction of the oslo.vmware (https://github.com/openstack/oslo.vmware) library, it is now possible to use said format.

I will provide a fix to do the necessary processing in 1. as well as leverage the functionality provided by oslo.vmware

Changed in nova:
assignee: nobody → Vui Lam (vui)
importance: Undecided → High
status: New → In Progress
milestone: none → icehouse-3
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-3 → icehouse-rc1
Dan Smith (danms)
Changed in nova:
importance: High → Medium
Revision history for this message
Matt Riedemann (mriedem) wrote :

I'm inclined to drop this from the rc1 milestone until there is actually a patch up for it, since we're tracking the rc1 bug list for reviews so this shouldn't probably be on that list.

tags: added: icehouse-rc-potential
Changed in nova:
milestone: icehouse-rc1 → none
Tracy Jones (tjones-i)
tags: removed: icehouse-rc-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/82715

Revision history for this message
Jay Pipes (jaypipes) wrote :

Vui, I've asked Mikal to release his -2 on the associated patch, now that the blueprint is approved. Could you please restore and rebase your patch? Thanks much!

-jay

Revision history for this message
Sean Dague (sdague) wrote :

No long in progress, as we're stalled for freeze

Changed in nova:
status: In Progress → Confirmed
assignee: Vui Lam (vui) → nobody
Revision history for this message
Radoslav Gerganov (rgerganov) wrote :

Support for OVA images has been added in the Kilo release:

https://blueprints.launchpad.net/nova/+spec/vmware-driver-ova-support

Changed in nova:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.