vmware共享磁盘挂载
岁月如梦 Lv4

vmware挂载共享磁盘

1.生成共享磁盘

在C:\Program Files (x86)\VMware\VMware Workstation 路径下打开DOS窗口
运行如下命令:

1
2
3
vmware-vdiskmanager.exe -c -s 2g -a lsilogic -t 2 J:\vm\cs\rac-sharedisk\ocr_voting_disk.vmdk
vmware-vdiskmanager.exe -c -s 5g -a lsilogic -t 2 J:\vm\cs\rac-sharedisk\fra_arc_disk.vmdk
vmware-vdiskmanager.exe -c -s 5g -a lsilogic -t 2 J:\vm\cs\rac-sharedisk\data_disk.vmdk

2.编辑虚拟机配置文件

添加共享文件夹
image
然后关闭虚拟机,用记事本打开虚拟机名称.wmx (RAC 1.vmx/RAC 2.vmx),添加以下内容:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

disk.locking = "FALSE"
diskLib.dataCacheMaxSise = "0"
diskLib.dataCacheMaxReadAheadSise = "0"
diskLib.dataCacheMinReadAheadSise = "0"
diskLib.maxUnsyncedWrites = "0"

scsi1.present = "TRUE"
scsi1.virtualDev = "lsilogic"
scsil.sharedBus = "VIRTUAL"

scsi1:0.present = "TRUE"
scsi1:0.mode = "independent-persistent"
scsi1:0.fileName = "J:\vm\cs\rac-sharedisk\ocr_voting_disk.vmdk"
scsi1:0.deviceType = "disk"
scsi1:0.redo = ""

scsi1:1.present = "TRUE"
scsi1:1.mode = "independent-persistent"
scsi1:1.fileName = "J:\vm\cs\rac-sharedisk\data_disk.vmdk"
scsi1:1.deviceType = "disk"
scsi1:1.redo = ""

scsi1:2.present = "TRUE"
scsi1:2.mode = "independent-persistent"
scsi1:2.fileName = "J:\vm\cs\rac-sharedisk\fra_arc_disk.vmdk"
scsi1:2.deviceType = "disk"
scsi1:2.redo = ""

修改添加好后,就可以正常打开虚拟机了,这时候就可以看到挂载好了共享磁盘

image

 请作者喝咖啡
 评论
评论插件加载失败
正在加载评论插件