I've been using a Windows XP.vdi for about a year. A couple of days ago, I mounted my (host) hard disk (on which the guest virtual hard disk resides) to a different mount point.
It has been easy to rectify most things that were broken during this change.
I tried to
VirtualBox Manager > Select guest > Settings > Storage > Select virtual hard disk > Change attributes (the location)
for the virtual disk, but was not able to. I can't remember exactly what the error was, but I think it was the same as the one I describe below.
I deleted that link to the disk using the '-' icon, and tried to
VirtualBox Manager > Select guest > Settings > Storage > Select controller (IDE) > select '+' icon for existing controller > Add Hard Disk > Choose existing disk > Choose the virtual hard drive file > Open
but that gives the error
The UUID {2aae6354-384c-428e-b3b1-6cf286323eb7} seems to me to be a VirtualBox one. As you can tell, my (host) hard disk which was at mount pointFailed to open the hard disk file /mnt/InternalHDD/VirtualBox VMs/Windows XP/Windows XP.vdi.
Cannot register the hard disk '/mnt/InternalHDD/VirtualBox VMs/Windows XP/Windows XP.vdi' {2aae6354-384c-428e-b3b1-6cf286323eb7} because a hard disk '/media/el_gallo_azul/Storage/VirtualBox VMs/Windows XP/Windows XP.vdi' with UUID {2aae6354-384c-428e-b3b1-6cf286323eb7} already exists.
Result Code: NS_ERROR_INVALID_ARG (0x80070057)
Component: VirtualBox
Interface: IVirtualBox {fafa4e17-1ee2-4905-a10e-fe7c18bf5554}
Callee RC: VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)
/media/el_gallo_azul/Storage/
is now at mount point
/mnt/InternalHDD/
and no other changes have been made.
How can I register this existing virtual hard disk to the same existing guest again?