个人测试环境,想构建一套Standby RAC环境,不想再重复去安装系统浪费时间,直接复制之前安装RAC前的一套VirtualBox的虚拟环境,不过打开时报错:

未能打开位于 Z:\Vbox\StandbyRAC_ENV\11.2.0.4RAC1\11.2.0.4RAC1.vdi 的虚拟电脑。
Trying to open a VM config 'Z:/Vbox/11.2.0.4RAC_ENV/installed/11.2.0.4RAC1/11.2.0.4RAC1.vbox' which has the same UUID as an existing virtual machine.

很明显,从报错可以看到,virtual box不允许有相同的UUID。那么是否可以修改这个UUID呢?

答案是肯定的,而且非常方便:

直接使用VBoxManage程序来修改UUID即可:

C:\Users\Mcdull>VBoxManage internalcommands sethduuid "Z:\Vbox\StandbyRAC_ENV\11.2.0.4RAC1\11.2.0.4RAC1.vdi"
'VBoxManage' 不是内部或外部命令,也不是可运行的程序或批处理文件。 C:\Users\Mcdull>d: D:\>cd D:\Program Files\Oracle\VirtualBox D:\Program Files\Oracle\VirtualBox>VBoxManage internalcommands sethduuid "Z:\Vbox\StandbyRAC_ENV\11.2.0.4RAC1\11.2.0.4RAC1.vdi"
UUID changed to: 6fd90da6-77f5-400e-9cd6-f0ae982562a5 D:\Program Files\Oracle\VirtualBox>

同样,RAC环境用到的所有磁盘对应的vdi文件都需要重新修改:

--本地磁盘
VBoxManage internalcommands sethduuid "Z:\Vbox\StandbyRAC_ENV\11.2.0.4RAC1\11.2.0.4RAC1.vdi"
VBoxManage internalcommands sethduuid "Z:\Vbox\StandbyRAC_ENV\11.2.0.4RAC2\11.2.0.4RAC2.vdi" --共享磁盘
VBoxManage internalcommands sethduuid "Z:\Vbox\StandbyRAC_ENV\11.2.0.4_storage\NewVirtualDisk1.vdi"
VBoxManage internalcommands sethduuid "Z:\Vbox\StandbyRAC_ENV\11.2.0.4_storage\NewVirtualDisk2.vdi"
VBoxManage internalcommands sethduuid "Z:\Vbox\StandbyRAC_ENV\11.2.0.4_storage\NewVirtualDisk3.vdi"
VBoxManage internalcommands sethduuid "Z:\Vbox\StandbyRAC_ENV\11.2.0.4_storage\NewVirtualDisk4.vdi"
VBoxManage internalcommands sethduuid "Z:\Vbox\StandbyRAC_ENV\11.2.0.4_storage\NewVirtualDisk5.vdi"
VBoxManage internalcommands sethduuid "Z:\Vbox\StandbyRAC_ENV\11.2.0.4_storage\NewVirtualDisk6.vdi"
VBoxManage internalcommands sethduuid "Z:\Vbox\StandbyRAC_ENV\11.2.0.4_storage\NewVirtualDisk7.vdi"

此外,为了和之前的环境在“虚拟介质管理”容易区分,比如可以考虑把这些盘的名字修改一下:

rename 11.2.0.4RAC1.vdi 11gStandbyRAC1.vdi
rename 11.2.0.4RAC2.vdi 11gStandbyRAC2.vdi
rename NewVirtualDisk1.vdi StandbyNewVirtualDisk1.vdi
rename NewVirtualDisk2.vdi StandbyNewVirtualDisk2.vdi
rename NewVirtualDisk3.vdi StandbyNewVirtualDisk3.vdi
rename NewVirtualDisk4.vdi StandbyNewVirtualDisk4.vdi
rename NewVirtualDisk5.vdi StandbyNewVirtualDisk5.vdi
rename NewVirtualDisk6.vdi StandbyNewVirtualDisk6.vdi
rename NewVirtualDisk7.vdi StandbyNewVirtualDisk7.vdi

最后,说明下,如果是一个虚拟环境克隆出来的,UUID自动会变化,也就不会有这个UUID的问题。个人还是习惯于直接复制之前的模板环境~

VirtualBox 虚拟磁盘的UUID修改的更多相关文章

  1. VirtualBox clonevdi文件和修改vdi的uuid

    因为VirtualBox下,不允许有相同的uuid,所以要拷贝一份新的vdi像普通的拷贝是办不到的.需要用VirtualBox自带的一个.exe文件VBoxManage. 1.首先,进入终端或者是命令 ...

  2. VirtualBox中出现UUID have already exists ,并且数字键盘numlock效果相反

    原文地址:https://www.cnblogs.com/xqzt/p/5053338.html 原因:由于linux密码登录错误,修改也报错误,所以只能重新安装虚拟机并在其中安装镜像文件,但是安装镜 ...

  3. VirtualBox中出现UUID have already exists 解决方法

    虚拟机更换VDI文件,启动时会出现 "UUID already exists"的错误,这是因为删除虚拟机时候没有选择"删除所有",只是选择移除造成的. 方法一: ...

  4. VirtualBox虚拟磁盘扩容

    1. cmd中运行 VBoxManage modifyhd D:\我的资料库\Documents\VirtualBox VMs\ubuntu\ubuntu.vdi --resize 提示错误  Syn ...

  5. virtualbox下正确虚拟机修改设备名称

    在学习大数据管理过程中,想要修改虚拟机的设备名称(因为名称太长),所以就直接在右上角的设置中找到详细设置,直接修改设备名称,结果启动Hadoop失败!!!! 后来参考网上问题解决弄好了,现在给出修改设 ...

  6. VirtualBox修改现有VDI虚拟磁盘大小

    之前创建的虚拟磁盘10G,现需要更大的空间,而又不想使用新增虚拟磁盘的方法. 通过查看资料发现VirtulBox提供的VBoxManage modifyhd命令可以解决,该命令的具体用法: VBoxM ...

  7. 使用VirtualBox自带管理工具命令为虚拟磁盘扩展空间

    VirtualBox虚拟磁盘空间不够了,默认10G.想扩大,图形界面下没有找到可操作菜单.Google了一下用 Vbox自带的命令工具VBoxManage即可解决. C:\Program Files\ ...

  8. VirtualBox如何扩展虚拟机Ubuntu的硬盘容量?

    一.问题描述 刚刚在VirtualBox中使用Ubuntu虚拟机中,出现了虚拟硬盘不够用的情况.  乖乖,查了一下磁盘空间,如下所示: df -H 原来是上午安装Ubuntu虚拟机的时候,选择了动态分 ...

  9. VirtualBox中安装Ubuntu12.04/Ubuntu14.04虚拟机

    NOTE: 一开始安装的Ubuntu12.04,后来又重新安装了14.04.截图基本使用了安装12.04时的截图,后来安装14.04时又补充了几张.该安装过程对Ubuntu12.04和14.04都是适 ...

随机推荐

  1. Android 本地tomcat服务器接收处理手机上传的数据之环境搭建

    上一篇:Android 使用tomcat搭建HTTP文件下载服务器   本篇文章   环境:win7 + jdk1.7 + tomcat v8.0.53   工具: 1.Eclipse  Eclips ...

  2. MongoDB3.4版本配置详解

    重要配置参数讲解如下 processManagement: fork: <true | false> 描述:是否以fork模式运行mongod/mongos进程,默认为false. pid ...

  3. ASP.NET Request.Cookies获取某个Cookie的奇怪问题

    公司的某个产品依赖一个Cookie的值,发现在某些情况下即使Request附带了该Cookie(通过Fiddler2监控),服务器端通过HttpContext的Request.Cookies访问该Co ...

  4. VS2013打开2008的项目

    找到 .csproj 后缀的文件.然后右键选择文本打开. 找到下面一段话: <ProjectTypeGuids>-00065b846f21};{fae04ec0-301f-11d3-bf4 ...

  5. mac设置文件权限问题

    在使用mac时,经常我们遇到相关文件不能使用的情况,其实大多数情况都是,文件权限问题. 文件或目录的访问权限分为只读,只写和可执行三种.以文件为例,只读权限表示只允许读其内容,而禁止对其做任何的更改操 ...

  6. thinkCMF----导航高亮显示

    导航高亮显示,有多种方法,这里给出一个简单的表示下: <a href="__ROOT__"> <span class="text db"> ...

  7. MFC如何获取控件相对于窗口的左边,以及鼠标相对于控件的位置

    CRect rect; CWnd *pWnd = GetDlgItem(IDC_STATIC_PIC); pWnd->GetWindowRect(&rect); ScreenToClie ...

  8. Spring Boot 利用插件构造QueryDSL语句时报错:You need to run build with JDK or have tools.jar on the classpath.If this occur....

    You need to run build with JDK or have tools.jar on the classpath.If this occures during eclipse bui ...

  9. 你不可缺少的技能——Markdown编辑

    Markdown简介 Markdown是一种可以使用普通文本编辑器编写的标记语言,通过简单的标记语法,它可以使普通文本内容具有一定的格式.请不要被「标记」.「语言」所迷惑,Markdown 的语法十分 ...

  10. ELk之使用kibana展示访问IP地图

    参考文档:http://blog.51cto.com/ls40905250/1915280 https://blog.csdn.net/zsjwish/article/details/79792212 ...