打开虚拟硬盘 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)
解决办法:
创建bat可执行脚本,内容如下
"c:\Program Files\Oracle\VirtualBox\VBoxManage" internalcommands sethduuid D:\VB_File1\VB_Win2008_64_tpl_300g.vdi
说明:"c:\Program Files\Oracle\VirtualBox\VBoxManage" 是Oracle VM VirtualBox 安装地址
D:\VB_File1\VB_Win2008_64_tpl_300g.vdi 是文件地址
如下图: