VirtualBox already exists in the media registry解决方案


Posted on February 27, 2014


想复制一个虚拟机镜像,再导入使用,出现了以下问题:

Cannot register the hard disk 'c.vdi' with UUID {xxxx} because a hard disk 'c.vdi' with UUID {xxx} already exists in the media registry ('C:/Documents and Settings/xxx/.VirtualBox/VirtualBox.xml').

解决方法是重设UUID,这个和VMware不同,方法如下:

D:\Program Files\PowerCmd>"D:\Program Files\Oracle\VirtualBox\VBoxManage.exe" internalcommands sethduuid "d:\xp.vdi"
UUID changed to: a290d94b-19b8-4cbf-9cda-00084c246d15

也可以直接使用clonehd直接得到UUID不同的两个镜像,方法类似,如VBoxManage clonehd "a.vdi' "b.vdi" 

搞定!

还有一个用于压缩VDI文件的命令:

VBoxManage modifyvdi "C:\xxx.vdi" compact


标签:N/A

 

在线学习答案查询入口
微信扫一扫
微信扫码联系