12

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?

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".

|improve this answer|||||
  • this only works reliably for VHD files from Virtual PC, not for VHD files created using Hyper-V – denfromufa Feb 6 '15 at 17:26
  • It works for vmdk files too. – David d C e Freitas Mar 8 '15 at 18:20
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.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.