• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to convert virtual hard drive files VDI, VMDK, VHD and RAW using VBoxManage
#1

How to convert virtual hard drive files VDI, VMDK, VHD and RAW using VBoxManage

I was trying to get an old virtual machine up and running again for testing and for some reason thought converting from a .vdi to .vhd would help.

I already had virtual box installed which means I already had the VBoxManage program.

Open a command prompt

Check VBoxManage syntax.
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" /?

The bit we're interested in
clonehd <uuid|inputfile> <uuid|outputfile>
[--format VDI|VMDK|VHD|RAW|<other>]
[--variant Standard,Fixed,Split2G,Stream,ESX]
[--existing]

What I used
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" clonehd "E:\Virtual Machines\VirtualBox\XP-Spiceworks\XP-Spiceworks.vdi" "E:\Virtual Machines\VirtualBox\XP-Spiceworks\XP-Spiceworks.vhd" --format VHD

Only took a few minutes to convert it

Files sizes
XP-Spiceworks.vdi 11,811,205,632
XP-Spiceworks.vhd 9,710,111,232
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Replacing a Windows XP virtual machine with a Linux Cent OS 6.5 torrent box VM Mark 0 8,121 07-07-2014, 11:27 PM
Last Post: Mark
  HOW TO - Add, Manage, Configure a new hard drive in FreeNAS (0.7.2 Sabanda) Mark 0 5,882 06-04-2014, 06:28 PM
Last Post: Mark
  Virtual Box - Windows XP won't see more than one processor Mark 0 5,506 08-12-2013, 12:05 AM
Last Post: Mark
  Trick to increase a fixed sized VDI using vboxmanage (Virtual Box) Mark 0 5,469 01-12-2013, 12:10 AM
Last Post: Mark
  Virtualise a physical hard drive / convert to VHD Mark 0 5,717 24-11-2013, 09:46 PM
Last Post: Mark

Forum Jump: