36

Is there a way to convert a VDI HDD to a VHD?

fixer1234
  • 28,064
IT_07
  • 544

5 Answers5

77

This function is built into VirtualBox:

VBoxManage clonehd source.vdi target.vhd --format vhd
Derek P
  • 771
16

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.

  1. Open Virtual Box and select Files > Virtual Media Manager.
  2. Select an existing disk file on the Hard Disks tab and click the Copy button.
  3. Complete the steps in the wizard. Select VHD when prompted for the file type.
6

Without downloading and installing VirtualBox, you can use qemu-img from QEMU package:

qemu-img.exe convert source.img -O vhdx -o subformat=dynamic dest.vhdx

Download for windows: https://cloudbase.it/qemu-img-windows/

fixer1234
  • 28,064
jumpjack
  • 465
6

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:

  1. VMWare VCenter Converter Standalone Client
  2. vmToolkits VMDK to VHD converter
  3. WinImage (shareware)
DaveParillo
  • 14,761
4

Yes, as Derek said, builtin tool with VirtualBox works well under Windows OS without any third party software. Converted OS is booting without any troubles, for more information with example steps check this post,

VDI to VHD – Convert VirtualBox Virtual Machines to Virtual PC

Dinesh
  • 41