How To: Convert VirtualPC .vhd hard drives to VirtualBox .vdi hard drives (or vice-versa)

Don’t bother – VirtualBox now natively supports .vhd drives – how handy is that? =D

But if you really wanted to, just use:

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

This will place the .vdi version of your drive in your current users VirtualBox folder, which is: ~/.VirtualBox

Relatedly, to go the other way (.vdi to .vhd) you could use:

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

Note: For this to work, you must not have the drive attached to any virtual machine, so if you already have it connected to a virtual machine, detach it first, mkay?

15 thoughts on “How To: Convert VirtualPC .vhd hard drives to VirtualBox .vdi hard drives (or vice-versa)”

  1. Thanks for sharing this.

    Mine kept failing and had to google to find out that if i have spaces in directory name and is on another drive say X:\VM 2012\source.vhd, then i have to use “X:\Vm 2012\source.vhd” and same for target.

    so it should be:
    VBoxManage clonehd “X:\Dir Name\source.vhd” “X:\Dir Name\target.vdi” –format vdi

  2. Hello, Just use in Oracle VirtualBox 4.1.12 r77245, File, CTRL+D, Copy and that’s all. Work perfectly. Regards. daniel

    1. Thanks Daniel……much easier to use GUI. Easier to redirect output to somewhere other than the uses ./Virtualbox folder as well.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.