virtualbox中載入已有的虛擬硬碟時出現Cannot register the hard disk錯誤,描述類似下面的。
ERROR: Cannot register the hard disk '/mnt/ee/winxp/xp.vdi' with UUID {395ae4ae-8bf9-42e5-b82a-61af9f95fbf0} because a hard disk '/mnt/ee/winxp/xp.vdi' with UUID {395ae4ae-8bf9-42e5-b82a-61af9f95fbf0} already exists in the media registry ('/home/pzye/.VirtualBox/VirtualBox.xml')
Details: code NS_ERROR_INVALID_ARG (0x80070057), component VirtualBox, interface IVirtualBox, callee nsISupports
Context: "OpenHardDisk(Bstr(szFilenameAbs), AccessMode_ReadWrite, srcDisk.asOutParam())" at line 603 of file VBoxManageDisk.cpp
解決方法如下:
關閉virtualbox,重新啟動它,它會檢測虛擬硬碟,可能會檢測出來一些虛擬硬碟,請將其刪除,然後就不會出現這個問題了。
開啟 虛擬硬碟 E:\VM_Files\rhel5.4_192.168.106.vdi 失敗.
Cannot register the hard disk 'E:\VM_Files\rhel5.4_192.168.106.vdi' {4ec3e66c-5751-43a7-b7f3-77203c55cd10} because a hard disk 'E:\VM_Files\rhel5.4.vdi' with UUID {4ec3e66c-5751-43a7-b7f3-77203c55cd10} already exists.
返回 程式碼: | E_INVALIDARG (0x80070057) |
元件: | VirtualBox |
介面: | IVirtualBox {3b2f08eb-b810-4715-bee0-bb06b9880ad2} |
被召者 RC: | VBOX_E_OBJECT_NOT_FOUND (0x80BB0001) |
C:\Program Files\Oracle\VirtualBox>vboxmanage internalcommands sethduuid E:\VM_
Files\rhel5.4_192.168.106.vdiUUID changed to: 235f4681-e09c-4888-9c2c-d35b17e1ddc5