VirtualBox – Cannot Register The Hardisk because a Hard Disk with UUID {XXX} Already Exists | Thoughts of a .NET Addicted developer

VirtualBox – Cannot Register The Hardisk because a Hard Disk with UUID {XXX} Already Exists

Failed to open the hard disk ‘XXX’.Cannot register the hard disk ‘XXX'{GUID} becuase a hard disk ‘XXX’ with UUID {GUID} already exists

I was getting this error when I trying to create a new virtual machine with using existing hardisk (which copied from another computer).

Solution from googling:

1. Run Command Prompt (cmd.exe)

2. Type cd <Your Directory of VirtualBox installed>.

Note: Default is C:\Program Files\Oracle\VirtualBox

3. Type VBOXMANAGE.EXE internalcommands sethduuid “<Location of VHD>”

Note: I using version 4.1.16. This command may not exists in old version.

Anyways, hope helps!

References:

https://forums.virtualbox.org/viewtopic.php?f=9&t=14976

Источник: VirtualBox – Cannot Register The Hardisk because a Hard Disk with UUID {XXX} Already Exists | Thoughts of a .NET Addicted developer.