本文主要是介绍【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> [command arguments]Commands:sethduuid <filepath> [<uuid>]Assigns a new UUID to the given image file. This way, multiple copiesof a container can be registered.WARNING: This is a development tool and shall only be used
这篇关于【VirtualBox】VirtualBox使用现有的虚拟盘文件(如VHD)创建虚拟机时,报错:打开虚拟硬盘失败,“UUID already exist”的解决方法的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!