Create a shared disk for VMware ESX guests

To create a shared disk between two or more VMs, login into one of your ESX hosts and create a disk image.

cd /vmfs/volumes/#volume-name#/#vm-name#/;
vmkfstools -d thick -a lsilogic -c 50G shareddisk.vmdk;

Add the new hardrive to the guest(s) and select a new SCSI bus (like SCSI 2:0). VMware create a new SCSI controller. Set SCSI Bus Sharing = Physical or Virtual and have fun 🙂

One thought on “Create a shared disk for VMware ESX guests”

  1. Quick question, I’ve been toying with this myself and found your article while trying to solve another problem.

    I have a VDMK set-up between 2 machines, each machine is connecting it on SCSI 1:0 with main VDMK on 0:1. The SCSI Bus is set to Physical on both VMs and the machines boot without any problems.

    I can see the disk on both VMs if I use fdisk and I can happily mount it to both machines as well.

    The problem comes when I try to write to it, if VM1 writes to the disk, VM2 does not see the changes until I remount, same applies if VM2 writes to the disk I have to remount the disk on VM1.

    Any ideas? Is this how it’s supposed to work? Do you know of a way of both mounting and being able to write?

Leave a Reply

Your email address will not be published. Required fields are marked *