VirtualBox上运行两个完全一样的.vdi报UUID已存在问题

报错信息如下:

打开虚拟盘文件D:\VMs\华润\windows_7_ultimate_sp1_x86.vdi 失败.

打开虚拟盘文件D:\VMs\华润\windows_7_ultimate_sp1_x86.vdi 失败.

Cannot register the hard disk 'D:\VMs\华润\windows_7_ultimate_sp1_x86.vdi' {33183cc2-e1ca-4e97-b15e-9ad9adfe0bbd} because a hard disk 'D:\VMs\windows_7_ultimate_sp1_x86\windows_7_ultimate_sp1_x86.vdi' with UUID {33183cc2-e1ca-4e97-b15e-9ad9adfe0bbd} already exists.

返回 代码:E_INVALIDARG (0X80070057)
组件:VirtualBoxWrap
界面:IVirtualBox {7682d5eb-f00e-44f1-8ca2-99d08b1cd607}
被召者 RC:VBOX_E_OBJECT_NOT_FOUND (0X80BB0001)

方案一:重新生成UUID

D:\Program Files\Oracle\VirtualBox>.\VBoxManage.exe internalcommands sethduuid "D:\VMs\华润\windows_7_ultimate_sp1_x86.vdi"
UUID changed to: d10b898b-6181-4633-9d13-6acdbd06da71

方案二:修改为指定UUID

.\VBoxManage.exe internalcommands sethduuid "D:\VMs\华润\windows_7_ultimate_sp1_x86.vdi" d10b898b-6181-4633-9d13-6acdbd06da71

你可能感兴趣的:(实施运维,UUID已存在)