Oracle Virtual Box UUID Failed to Open Hard Disk Error

I recently copied a vdi file in my VirtualBox for Windows 7. I got the “Cannot register the hard disk C:\path\to\new\vdi with UUID {xxxx} because a hard disk C:\path\to\old\vdi already exists in the media registry (C:\path to VirtualBox.xml) error. 

The fix is easy but it takes a little bit of command line.

Open a command line in Windows.
Go to where Virtualbox is installed.
Type in: VBoxManage.exe internalcommands sethduuid "C:\path\to\new\vdi" (I drag the file from windows explorer and it sets the path for me.)

You should get something like this:

Change UUID with VBoxManager

AddThis Social Bookmark Button