修改VM VirtualBox里error: UUID

来源:互联网 发布:java成员变量 默认权限 编辑:程序博客网 时间:2024/06/06 01:24
1,生成hyperledger
2,用copy得虚拟机替换生成得虚拟机;just vmdk文件
3,报错,需要修改uudi
向VM VirtualBox 里copy既存虚拟机启动时出现如下错误对应方法:

There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "acc3a6d1-9cac-401b-8a3a-242d0e756019", "--type", "headless"]
Stderr: VBoxManage.exe: error: UUID {067819c9-6318-4fbc-94a8-e8c782e87666} of the medium 'C:\Users\xuegao\VirtualBox VMs\hyperledger\packer-virtualbox-iso-1485447123-disk1.vmdk' does not match the value{75b4f1e1-0bbc-4643-bcef-e23aaa667789} stored in the media registry ('C:\Users\xuegao\.VirtualBox\VirtualBox.xml')
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MediumWrap, interface IMedium

对应:找到【VirtualBox】安装目录
用如下命令重命名该虚拟机得UUID:
C:\Program Files\Oracle\VirtualBox>VBOXMANAGE.EXE internalcommands sethduuid "C:\Users\xuegao\VirtualBox VMs\hyperledger\packer-virtualbox-iso-1485447123-disk1.vmdk" 75b4f1e1-0bbc-4643-bcef-e23aaa667789
===============================================
UUID changed to: 75b4f1e1-0bbc-4643-bcef-e23aaa667789


ps:有些同学直接修改,可以看到下图说明是不可以得。







原创粉丝点击