How do I create a shared disk between VMware virtual machines?

Source: Internet
Author: User
Tags file permissions

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.