VDI VHD
File conversion

Convert VDI to VHD

QUICK ANSWER
Is it possible to convert VDI to VHD?
Yes - VDI converts to VHD.

Shut down the VM in VirtualBox, then run VBoxManage clonemedium disk input.vdi output.vhd --format VHD; the resulting .vhd attaches directly in Hyper-V Manager. If you need the newer VHDX format or your virtual disk exceeds 2 TB, use qemu-img instead.

6 programs
Also to VHD: GHO · VHDX · OVF

On this page

Tested on macOS, Windows & Linux
Last verified Oct 2026

More free converters

HEIC, PNG, WEBP, MP3 and more - every tool here is free.

Open the toolbox

Why convert VDI to VHD?

VDI is VirtualBox's native virtual hard-disk format, while .vhd is Microsoft's format used by Hyper-V and Windows Disk Management. Hyper-V cannot read .vdi files, so migrating a VM from VirtualBox to a Windows Server or Hyper-V environment requires this conversion.

How to convert VDI to VHD

VirtualBox (VBoxManage) OPEN-SOURCE

Shut down the VM, then run VBoxManage clonemedium disk input.vdi output.vhd --format VHD in a terminal. VBoxManage is bundled with every VirtualBox install - no extra download needed.

qemu-img OPEN-SOURCE

Run qemu-img convert -O vpc input.vdi output.vhd for a plain VHD, or qemu-img convert -O vhdx input.vdi output.vhdx for the newer VHDX format. Part of the QEMU package, available on Windows, macOS, and Linux.

Programs that convert VDI

About these formats

Quality & what to watch

  • VHD has a 2 TB size limit; if the virtual disk is larger, VBoxManage will fail - use qemu-img with VHDX instead.
  • VHDX is more resilient to corruption and supports disks up to 64 TB; prefer VHDX when targeting modern Hyper-V.
  • If the source .vdi is dynamically allocated, the output .vhd will also be dynamic; Hyper-V handles both types.

Frequently asked questions

Does VBoxManage output VHDX?
No - VBoxManage only supports VDI, VMDK, VHD, and RAW output; use qemu-img to produce VHDX.
Is any data lost in the conversion?
No - the conversion copies the disk contents faithfully; no data is changed or removed.
Can I convert while the VM is running?
No - shut the VM down in VirtualBox before running VBoxManage or qemu-img to avoid a corrupted output.