VMware: vmdk converted via qemu-img may not boot as SCSI disk

Bug #1232348 reported by Vui Lam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Won't Fix
High
Vui Lam

Bug Description

When converting disk images from other formats to vmdk using qemu-img, the vmdk disk produced is always a monolithic sparse disk with an adapter type of "ide" and disk geometry to match. Depending on the partitioning scheme of the guest OS, such a disk, even after being converted to a format compatible for ESX use, will still often be unbootable if attached to the virtual SCSI controller instead of the IDE controller.

This behavior currently leads to a hard requirement that the vmware_adaptertype=ide image property be set when the vmdk is uploaded to glance. Failure to set this property, a step often overlooked by the user, will often lead to guest boot failure that is hard to track down. In some cases, vmdk disks uploaded to glance even lacks the DDB metadata that indicates the adaptertype of the disk, which complicates serviceability further.

Vui Lam (vui)
Changed in nova:
assignee: nobody → Vui Lam (vui)
importance: Undecided → High
Revision history for this message
Vui Lam (vui) wrote :

I am looking into alternative means to update the disk geometry of the disk appropriately for use by either controller.

summary: - VMware: vmdk converted via qemu-img not attachable to scsi controller
+ VMware: vmdk converted via qemu-img may not boot as scsi disk
summary: - VMware: vmdk converted via qemu-img may not boot as scsi disk
+ VMware: vmdk converted via qemu-img may not boot as SCSI disk
Gary Kotton (garyk)
Changed in nova:
status: New → Confirmed
Tracy Jones (tjones-i)
tags: added: havana-backport-potential
Revision history for this message
Sabari Murugesan (smurugesan) wrote :

qemu-img now supports specifying adapter type. See this commit :-

http://git.qemu.org/?p=qemu.git;a=commit;h=7f2039f61113f11be92112adf31b6052e04d986f

which is available starting qemu v1.4.0 (http://git.qemu.org/?p=qemu.git;a=log;h=refs/tags/v1.4.0-rc0)

Do we still need this bug ?

Revision history for this message
Eric Brown (ericwb) wrote :

Don't think we really need this bug, as newer versions of Ubuntu have the newer version of qemu-img that includes the adapter_type option. I tested with Ubuntu 14 with qemu-img 1.7, which worked nicely.

Revision history for this message
Tracy Jones (tjones-i) wrote :

based on previous comments i am closing as not fix

Changed in nova:
status: Confirmed → Won't Fix
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.