VirtualBox – Cannot Register the Hard Drive Because a Hard Drive with UUID Already Exists

Failed to open the hard disk <FilePath>.
Cannot register the hard disk <FilePath><GUID> becuase a hard disk <DifferentFilePath> with UUID <GUID> already exists.

I looked all over the place to find what was causing it and finally found a fix. Of course it requires the command prompt, so open that junk up and let’s get started!

**Note that I am on VirtualBox version 4.1.6 and from what I’ve read this command used to be something different a few versions ago. I think instead of setdhuuid it was setvdiuuid, but don’t hold me to that.**

  1. Open the Command Prompt

  2. Change the directory to where VirtualBox is installed (Default: C:\Program Files\Oracle\VirtualBox)

  3. Type the following VBOXMANAGE.EXE internalcommands sethduuid <PathOfNewVHD>

Note that internalcommands and sethduuid need to be lowercase.  I spent more than a couple minutes trying to figure out why things weren’t working.  :)

Below is the output of me changing the ID of the VHD located at C:\Users\bschacht\VirtualBox VMs\Windows XP (***) Copy.vhd


C:\Program Files\Oracle\VirtualBox>VBoxManage.exe  internalcommands sethduuid F:

\os6.6-2\OS6.6.vdi

UUID changed to: 6b986826-2006-47d5-9ef1-ac85cea99157


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章