Is there a tool to convert VHD images to VDI images?

12

5

I saw the response for converting VDI images into VHD images, but I want to do the opposite conversion - is there a tool to do this?

paxos1977

Posted 2010-08-23T05:26:36.033

Reputation: 323

Answers

17

Adapting one of those answers, you could use VBoxManage:

VBoxManage clonehd source.vhd target.vdi --format vdi

If you are just looking to use the vhd in Virtualbox, you do not need to convert it yourself, Virtualbox will quite happily use a vhd image. You can just add it to the list of disks in "Virtual Media Manager".

Neal

Posted 2010-08-23T05:26:36.033

Reputation: 8 447

this only works reliably for VHD files from Virtual PC, not for VHD files created using Hyper-V – denfromufa – 2015-02-06T17:26:01.557

It works for vmdk files too. – David d C e Freitas – 2015-03-08T18:20:12.947

1

It is better to convert VHD to VDI because when you need to periodically compact the VHD to recover space, you cannot use VBoxManage to compact. You will have to use the virtual PC disk wizard to compact otherwise.

AvidR

Posted 2010-08-23T05:26:36.033

Reputation: 11