convert a vhd to vdi
Posted: Thu Nov 20, 2008 1:12 am
To convert a vhd to vdi:
If the vhd is not fixed-size, make it so, using Virtual PC's disk wizard
Start VirtualBox
Move the virtual disk to the \"Virtual Box\" Program Directory
M:\\Program Files\\Sun\\xVM VirtualBox
Open a CMD prompt and navigate to the \"Virtual Box\" Program Directory
M:\\Program Files\\Sun\\xVM VirtualBox
Make the vdi dynamic:
Note: ideally, you should delete (or exclude) the last 512 bytes of the vhd file before using convertdd, but it still works fine if you don't (the vdi disk will have an extra sector.)
Useful Links:
http://www.virtualbox.org/wiki/VirtualBox_architecture
http://blog.mdijksman.nl/item/65
If the vhd is not fixed-size, make it so, using Virtual PC's disk wizard
Start VirtualBox
Move the virtual disk to the \"Virtual Box\" Program Directory
M:\\Program Files\\Sun\\xVM VirtualBox
Open a CMD prompt and navigate to the \"Virtual Box\" Program Directory
M:\\Program Files\\Sun\\xVM VirtualBox
Code: Select all
vboxmanage convertdd the_disk.vhd the_disk.vdi
Code: Select all
vboxmanage modifyvdi the_disk.vdi compact
Useful Links:
http://www.virtualbox.org/wiki/VirtualBox_architecture
http://blog.mdijksman.nl/item/65