【VirtualBox】VirtualBox使用现有的虚拟盘文件(如VHD)创建虚拟机时,报错:打开虚拟硬盘失败,“UUID already exist”的解决方法

###0、问题描述
使用现有的虚拟盘文件(如VHD)创建虚拟机时,报错:打开虚拟硬盘失败,“UUID already exists”的错误。

###1、参考博客
https://www.cnblogs.com/xqzt/p/5053338.html
https://jingyan.baidu.com/article/454316ab781713f7a6c03a5a.html

###2、修改UUID

进入CMD
cd C:\Program Files\Oracle\VirtualBox\
执行如下命令
VBoxManage internalcommands sethduuid “C:\Users\gwlbl\VirtualBox VMs\ubuntu14.04.5-64-pc\ubuntu14.04.5-64-pc.vhd”
执行成功打印如下
UUID changed to: 87ef24b5-860b-4cde-9400-e055ae1ed959
执行失败打印如下
Oracle VM VirtualBox Command Line Management Interface Version 5.2.6
© 2005-2018 Oracle Corporation
All rights reserved.

Usage: VBoxManage internalcommands  [command arguments]

Commands:

sethduuid  []
	Assigns a new UUID to the given image file. This way, multiple copies
	of a container can be registered.

WARNING: This is a development tool and shall only be used

你可能感兴趣的:(linux,oracle)