How do I convert a VDI HDD to a VHD file?
This function is built into VirtualBox:
VBoxManage clonehd source.vdi target.vhd --format vhd
There is a new option now in VirtualBox 4.1 to copy a VDI with a new format (including VHD), which is equivalent to the command Derek P pointed out last year, but in a nice GUI.
- Open Virtual Box and select Files > Virtual Media Manager.
- Select an existing disk file on the Hard Disks tab and click the Copy button.
- Complete the steps in the wizard. Select VHD when prompted for the file type.
The best way is to use VBoxmanage as explained by Derek P. If you have an old VirtualBox, either upgrade, or:
You convert VDI to VMDK, then convert VMDK to VHD in one of several ways:
- VMWare VCenter Converter Standalone Client
- vmToolkits VMDK to VHD converter
- WinImage (shareware)