Bug 1043359

Summary: qemu-img needs to support adapter-type
Product: [Fedora] Fedora Reporter: Alves <sales>
Component: qemuAssignee: Fedora Virtualization Maintainers <virt-maint>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: amit.shah, berrange, cfergeau, crobinso, dwmw2, itamar, pbonzini, rjones, scottt.tw, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-16 15:11:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Alves 2013-12-16 05:19:22 UTC
Description of problem:
This bug https://bugs.launchpad.net/nova/+bug/1232348 shows my problem. All images convert from any format to vmdk are unbootable. But I found in that bug that there is a version of qemu that adds -adapter-type to the options of qemu-img convert. According to the bug, qemu version 1.4 and above have this feature. But I am using qemu-1.6.1-2.fc20.x86_64 and qemu-img-1.6.1-2.fc20.x86_64, and this feature is not there. The industry needs be able to convert virtual machine formats back and forth.

We need to make sure that qemu-image convert can specify adapter-type when converting to vmdk

Comment 1 Richard W.M. Jones 2013-12-16 09:34:33 UTC
Works for me with qemu 1.7.0 in Fedora Rawhide:

$ qemu-img convert test.qcow2 -O vmdk test.vmdk
$ strings test.vmdk | grep -i adapter
ddb.adapterType = "ide"

$ qemu-img convert test.qcow2 -O vmdk -o adapter_type=buslogic test.vmdk
$ strings test.vmdk | grep -i adapter
ddb.adapterType = "buslogic"

I think the real WTF here is why VMware depends on disk geometry!

Comment 2 Cole Robinson 2013-12-16 15:11:57 UTC
See the syntax Rich posted in Comment #1 for how to do what you want.