On the same computer, sometimes it is inevitable to install more than one virtual machine, storage space is the biggest problem, then how to solve the virtual machine hard disk problem, VMware's own tools can be a good solution to this problem, let's take a look at how to build a shared disk between VMware virtual machines.
1, first in your local VMware installation directory to find Vmware-vdiskmanager.exe execution files.
My directory is (D:\Program Files (x86) \vmware Workstation\vmware-vdiskmanager.exe)
Then use the CMD terminal (with administrator body execution, Windows logo key +x, and then select Admin Run) to execute the file create disk and specify the stored directory, as shown below:
Can Paste Code supplement: (Directory is D:\vmware\vmware-vdiskmanager.exe)
C:\WINDOWS\SYSTEM32>CD/D D:\
D:\>CD VMware
D:\vmware>vmware-vdiskmanager.exe-c-S 4gb-a lsilogic-t 2 "D:\VMWARE\SHAREDDISKOCR.VMDK"
Creating Disk ' D:\VMWARE\SHAREDDISKOCR.VMDK '
create:100% done.
Virtual disk creation successful.
D:\vmware>vmware-vdiskmanager.exe-c-S 4gb-a lsilogic-t 2 "d:\vmware\SharedDiskVoting disk.vmdk"
Creating disk ' D:\vmware\SharedDiskVoting disk.vmdk '
create:100% done.
Virtual disk creation successful.
D:\vmware>vmware-vdiskmanager.exe-c-S 50gb-a lsilogic-t 2 "D:\VMWARE\SHAREDDISKDATA.VMDK"
Creating Disk ' D:\VMWARE\SHAREDDISKDATA.VMDK '
create:100% done.
Virtual disk creation successful.
D:\vmware>vmware-vdiskmanager.exe-c-S 20gb-a lsilogic-t 2 "D:\VMWARE\SHAREDDISKFLASH.VMDK"
Creating Disk ' D:\VMWARE\SHAREDDISKFLASH.VMDK '
create:100% done.
Virtual disk creation successful.
2, open the virtual machine, add the disk just created the following figure: and modify the shared disk all the generated file permissions, set to everyone can operate, modify the permissions in this does not demonstrate.
This hard drive has been added successfully, but you will need to configure one more step to boot:
Locate the directory of your two virtual machine hosts find the. vmx file, my file directory in (D:\VMware\Redhat Cluster 5.8\cluster Node1\rhel Cluster)
Right-click-> with text open to add two lines at the end
Disk.locking= "FALSE" (remember that this is just one line)
scsi1:0. Sharedbus= "Virtual"
Scsi1:1.sharedbus= "Virtual"
scsi2:0. Sharedbus= "Virtual" (one row corresponds to a disk, here are 4 shared disks)
Scsi2:1.sharedbus= "Virtual"
Save, then you can turn on the computer, then you have realized the dual-machine sharing the capacity of the same disk.