Page 1 of 1

vboxmanage.exe clonehd

Posted: 26. Dec 2008, 21:17
by alvin@stachanov.com
I am trying to clone a vdi file (ubuntu 8 ).

STEPS
1) vboxmanage.exe clonehd from.vdi to.vdi.
2) setup a new VM with the newly copied vdi.
3) I booted new machine and realized that the OS cannot be started becase of the UUID.
4) I booted the new VM with the ubuntu CD, and check the disk.
5) problem, i could not mount the sda1
6) problem, i checked and compared the /proc/partitions on both disks
7) i noticed the differences. Normal installation or ubuntu, i have in the original vdi sda1, sda2, sda5. But in the new disk, i only have sda1, sda2.

Pls. help - or provide me another way to copy the VDI

Posted: 26. Dec 2008, 22:04
by baf
Other way to copy vdi


1. use your normal copy:
copy from.vdi to.vdi

2. after that:
VBoxManage internalcommands sethduuid <filepath>


Assigns a new UUID to the given image file. This way, multiple copies
of a container can be registered.

WARNING: This is a development tool and shall only be used to analyse
problems. It is completely unsupported and will change in
incompatible ways without warning.

Good Luck