• 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
  HOW TO - Add, Manage, Configure a new hard drive in FreeNAS (0.7.2 Sabanda) Mark 0 5,579 06-04-2014, 06:28 PM
Last Post: Mark
  Trick to increase a fixed sized VDI using vboxmanage (Virtual Box) Mark 0 5,140 01-12-2013, 12:10 AM
Last Post: Mark
  Virtualise a physical hard drive / convert to VHD Mark 0 5,247 24-11-2013, 09:46 PM
Last Post: Mark
  Recovering files from a formatted drive ? Mark 3 10,526 26-06-2011, 12:07 AM
Last Post: latch
  [Windows 7] How to store your my documents on a different partition or hard drive Mark 0 5,883 24-04-2011, 10:09 PM
Last Post: Mark

Forum Jump: