When you have a functional virtual machine but you want to have the virtual disk in a different format.

Something like this should be enough. You must known the name of the virtual disk controller (“SATA” in the example):

$ VBoxManage storageattach NAME --storagectl SATA --port 0 --device 0 --type hdd --medium none
$ VBoxManage clonehd --format vdi OLD_DISK.vmdk NEW_DISK.vdi
$ VBoxManage storageattach NAME --storagectl SATA --port 0 --device 0 --type hdd --medium NEW_DISK.vdi


blog comments powered by Disqus