VirtualBox的vdi映像导入遇到的uuid冲突问题 (转)

时间:2023-03-09 01:11:03
VirtualBox的vdi映像导入遇到的uuid冲突问题 (转)

virtualbox导入vdi文件时出现下面的问题:

打开hard disk D:\software\GT5.0.0.vdi 失败

Cannot register the hard disk 'D:\software\GT5.0.0.vdi' with UUID {jfldk-fdjklf-sljk-fdjl-fdjsfld} because a hard disk 'D:\software\GT4.3.vdi' with UUID {jfldk-fdjklf-sljk-fdjl-fdjsfld} already exists in the media registry ('C:\Users\user\.VirtualBox\VirtualBox.xml')

解决方法:

用命令行进入VirtualBox的安装目录,使用下面的命令:

C:\Program Files\Sun\VirtualBox>VBoxManage internalcommands setvdiuuid D:\path\ubuntu.vdi

注意,在virtualbox4.0.4以上该命令改为

C:\Program Files\Sun\VirtualBox>VBoxManage internalcommands sethduuid D:\path\ubuntu.vdi

然后重新导入即可。

这是一个重新设置UUID号的命令,VirtualBox没有集成到GUI环境中,只能在命令行中使用。

命令有误,应为:VBoxManage internalcommands sethduuid "D:\sample.vdi"

注:本人的例子为:VBoxManage internalcommands sethduuid "e:\kimball3.vmdk"

http://blog.sina.com.cn/s/blog_63fe27080100hjxc.html