Change the uuid of a VirtualBox hard drive file (vdi)

If you duplicate a Virtual Box hard drive image (vdi) file, you will need to give the new vdi file a new unique id.
To do this, use the internal command sethduuid:
VBoxManage internalcommands sethduuid (myVdiFile.vdi)


example:


VBoxManage internalcommands sethduuid WinXpSp3_10Gb.vdi


note:  VBoxManage is usually located at this path:
"c:\Program Files\Oracle\VirtualBox\VBoxManage.exe"

Comments