• oracle virtualbox 添加共享硬盘2


    vm: oracle vm 5.2.8 r121009 (Qt5.6.2)

    更新了 oracle virtualbox 为新版本,以前添加共享硬盘的的命令参数无效了。下面为本次的具体操作。

    创建共享磁盘,分配给两台虚拟机

    oracle virtualbox创建共享磁盘:
    进入 E:oraclevmcentos74_rac1_rac2_sharedisk文件夹

    1、在目录下创建共享磁盘,大小为10g

    D:OracleVirtualBoxVBoxManage createmedium disk --filename share01.vdi --size 10000 --format VDI --variant Fixed
    
    Medium created. UUID: 204e4375-b6b2-4b93-9fb1-f6eb823829fd

    2、给虚拟机(区别大小写)添加一块共享磁盘,

    D:OracleVirtualBoxVBoxManage storageattach centos74_12.2.0.1_rac1 --storagectl SATA --port 1 --device 0 --type hdd --medium 204e4375-b6b2-4b93-9fb1-f6eb823829fd --mtype shareable
    
    D:OracleVirtualBoxVBoxManage storageattach centos74_12.2.0.1_rac2 --storagectl SATA --port 1 --device 0 --type hdd --medium 204e4375-b6b2-4b93-9fb1-f6eb823829fd --mtype shareable

    –storagectl SATA :在虚拟机看到的名称,如果是英文版的,可能名称不一样
    –port 1 :第一个SATA接口
    –device 0 :IDE接口的辅盘,主盘为0

    3、启用共享磁盘:

    D:OracleVirtualBoxVBoxManage modifymedium disk 204e4375-b6b2-4b93-9fb1-f6eb823829fd --type shareable
  • 相关阅读:
    清除浮动的几种方式
    css 居中问题总结
    Python 数据库Insert语句脚本生成工具(SQL Server)
    Windows安装运行Kafka
    C# 阿里云视频点播--视频转码
    C# 阿里云视频点播
    C# Assembly.LoadFile [A] 无法强制转换为 [B]
    OssFtp 用法
    C# Aspose.Words 用法
    C# 企业微信消息推送对接
  • 原文地址:https://www.cnblogs.com/ctypyb2002/p/9793039.html
Copyright © 2020-2023  润新知