Clonehd doesn't create valid VHD

This is for discussing general topics about how to use VirtualBox.
Post Reply
TheLostOne
Posts: 8
Joined: 27. Sep 2009, 03:32
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win 7, Win XP, Ubuntu

Clonehd doesn't create valid VHD

Post 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
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Clonehd doesn't create valid VHD

Post 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.
TheLostOne
Posts: 8
Joined: 27. Sep 2009, 03:32
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win 7, Win XP, Ubuntu

Re: Clonehd doesn't create valid VHD

Post 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.
TheLostOne
Posts: 8
Joined: 27. Sep 2009, 03:32
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win 7, Win XP, Ubuntu

Re: Clonehd doesn't create valid VHD

Post by TheLostOne »

@mpack:
Did you also try to attach the VHD in Windows 7?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Clonehd doesn't create valid VHD

Post 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.
Post Reply