Virtualbox修改虚拟磁盘的UUID

385 words in this article. # 修改UUID , CentOS , VirtualBox/ a

Virtualbox利用已有的虚拟硬盘建立新的虚拟主机时,需要先修改虚拟磁盘的UUID,否则会报错。

先运行cmd,进入Virtualbox的安装目录,如:

d:
cd D:\Program Files\Oracle\VirtualBox

然后运行:

VBoxManage internalcommands sethduuid "E:\Machines\VM2\centos2.vdi"

引号中是需要修改UUID的虚拟磁盘文件,需要引用绝对目录及文件名。

运行后,uuid更新为新id:

2019-07-08T07:09:49.png

All rights are reserved and users must seek my permission before making any other use of material contained in this site.

Add comments

No comment yet.