Oracle VM VirtualBox
which has the same UUID as an existing virtual machine.
- run
VBoxManage internalcommands sethduuid <VDI/VMDK file>
twice (the first time is just to conveniently generate an UUID, you could use any other UUID generation method instead) - open the
.vbox
file in a text editor - replace the UUID found in
<Machine uuid="{...}"
with the UUID you got when you ransethduuid
the first time - replace the UUID found in
<HardDisk uuid="{...}"
and in<Image uuid="{}"
(towards the end) with the UUID you got when you ransethduuid
the second time
You can add the virtual machine after that. Not a very clean solution, but does not seem to cause any problem.
用命令行进入VirtualBox的安装目录,使用下面的命令
C:\Program Files\Sun\VirtualBox>VBoxManage internalcommands setvdiuuid D:\path\ubuntu.vdi
C:\Program Files\Sun\VirtualBox>VBoxManageinternalcommands sethduuid D:\path\ubuntu.vdi
然后重新导入即可。