set a diferent UUID for vdi disk

In VirtualBox tech, the virtual disk is of .vdi format. So it’s very convenient to copy the .vdi files to make a new system. but when we add the copied .vdi file to the system, it say:

Failed to open the hard disk /xxx/xxx

Cannot register the hard disk ‘/xxx/xxx.vdi’ with UUID {c887f179-54b6-4d5e-9eb1-c0c60477f1df} because a hard disk ‘/xxx/xxx.vdi’ with UUID {c887f179-54b6-4d5e-9eb1-c0c60477f1df} already exists in the media registry (‘/root/.VirtualBox/VirtualBox.xml’).

since every device have it’s own unique uuid, when we copy the .vdi file, we copy the uuid also. in order to use the copied .vdi file in the same system at same time, we need to change the uuid of any of them to make them different.

use below command:

VBoxManage internalcommands setvdiuuid copied.vdi

关于 清风

关注IT资讯,虚拟化技术,企业VPN, VoIP, CRM应用等。
本文章发表于 (This entry was posted in) linux 技术, 虚拟化技术. 收藏 (Bookmark the) 永久链接(permalink).

发表评论 Leave a Reply

邮箱不会出现在评论中(Your email address will not be published.) *号为必填项 Required fields are marked *

*

你可以使用一些简单的 HTML 命令。You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

请回答(What is) 9 + 12 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)