Page 1 of 1

Clonehd doesn't create valid VHD

Posted: 27. Oct 2009, 07:40
by TheLostOne
Hello!

I tried to create a VHD out of a VDI Harddisk.
I used following command:

Code: Select all

VBoxManage clonehd source.vdi  output.vhd -format VHD
The process completed successfully but I wasn't able to attach the VHD through Windows 7. I always get the message that the file or is corrupted and not readable.

Will it be possible to create valid VHD files so that Window 7 can use them?

Thank you

Re: Clonehd doesn't create valid VHD

Posted: 27. Oct 2009, 12:01
by mpack
Typo in your message? Isn't it supposed to be "--format VHD"? (i.e. two dashes).

I have used VBoxManage to create VHDs for test purposes, and it worked fine.

Re: Clonehd doesn't create valid VHD

Posted: 27. Oct 2009, 17:27
by TheLostOne
I tried both ways, with one dash and with two dashes.
Always the same problem.
I found out, when I first convert to VMDK, I can then successfully convert to a valid VHD with Vmdk2Vhd.

Re: Clonehd doesn't create valid VHD

Posted: 28. Oct 2009, 02:07
by TheLostOne
@mpack:
Did you also try to attach the VHD in Windows 7?

Re: Clonehd doesn't create valid VHD

Posted: 28. Oct 2009, 13:51
by mpack
No, it wasn't one of my goals to test if Win7 liked the VHD. However I had another app in mind which validates the VHD in many ways, based on the current VHD spec which Win7 also uses. The same tool has validated a VHD created by Win7 and found nothing unusual.