qemu-img convert VHD to VMDK (scsi)

About Qemu-system-ppc, a PPC Mac emulator for Windows, macOS and Linux that can run Mac OS 9.0 up to Mac OS X 10.5

Moderators: Cat_7, Ronald P. Regensburg

Post Reply
alpha76
Space Cadet
Posts: 2
Joined: Fri May 10, 2019 3:13 am

qemu-img convert VHD to VMDK (scsi)

Post by alpha76 »

Hi guys, I'm using qemu-img to convert a VHD to a VMDK which works really well.

However, by default it converts it as an IDE "disk" which works fine. I can attach it and boot my VM using it.

But I would like to make it a SCSI disk instead of IDE. I have tried using the switch "-o adapter_type=buslogic" to convert it into a SCSI disk, but when I try to attach it to my VM in esx I get an error when it powers on.

Power On virtual machine:Failed to open disk scsi0:1: Unsupported or invalid disk type 7. Ensure that the disk has been imported.
Target: MyVM3
vCenter Server: VCENTER
Error Stack
An error was received from the ESX host while powering on VM MyVM3.
Failed to start the virtual machine.
Module DevicePowerOn power on failed.
Unable to create virtual SCSI device for scsi0:1, '/vmfs/volumes/5cca0155-bdddf31d-2714-00215acbeb1e/AppD-VM01/AppDdisk1-buslogic.vmdk'
Failed to open disk scsi0:1: Unsupported or invalid disk type 7. Ensure that the disk has been imported.
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: qemu-img convert VHD to VMDK (scsi)

Post by Cat_7 »

Hi,

I guess this question would stand a better chance to receive a correct answer on the qemu mailing list.
However, I see you can set compatibility and adapter types.
So perhaps trying another adapter and setting compat=on (to convert to v6 format instead of v7) might do the trick.

-o adapter_type=lsilogic compat=on

Best,
Cat_7
alpha76
Space Cadet
Posts: 2
Joined: Fri May 10, 2019 3:13 am

Re: qemu-img convert VHD to VMDK (scsi)

Post by alpha76 »

Hi, thanks for the reply.

I have also tried using hwversion=6 but that hasn't helped.
qemu-img.exe convert "Y:\test\App1_disk1.vhd" -O vmdk -o adapter_type=buslogic,hwversion=6 -p "Y:\test\AppDdisk1_disk1.vmdk"

If I use compat6=on I receive an error:
error while converting vmdk: compat6 cannot be enabled with hwversion set

Where do I find the "qemu mailing list", and how would I ask my question?
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: qemu-img convert VHD to VMDK (scsi)

Post by Cat_7 »

Here are the various qemu mailing lists:

https://wiki.qemu.org/Contribute/MailingLists
Send a message to e.g., qemu-discuss@nongnu.org

Best,
Cat_7
Post Reply