Shared VMDKs on vSphere ESX and ESXi

by bunchc on April 12, 2010

Got a comment on my share and share alike post that covered setting up shared VMDK files on VI3 / ESX 3.x. Seemingly it didn’t work any longer. Work or not, I figure it’s time to revisit this in a new way, using vCLI(rCLI)! This will require the following steps:

  1. Download & install the vCLI
    First download & install vCLI. I’ll wait… Ready? Fire it up and CD into the bin folder:
     image
  2. Next we use vmkfstools.pl to create the disk:
    vmkfstools.pl –server 192.168.15.8 -c 10G -d eagerzeroedthick /vmfs/volumes/lab/shared.vmdk -a lsilogic
  3. For each VM, walk through the add hardware wizard, selecting the following:

    1. Hard Disk

    2. Use Existing Hard Disk

    3. Browse to the location of the disk you created

    4. Under “Advanced Options” Change the “virtual device node” select a device that is on an unused adaptor (generally something in the 1: or 2: range) here’s a picture to help:
      image
      Note: Use the same on both VMs. Consistency is good. mmmkay?

    5. Back under edit settings for the new VM, change the new disk controller’s “SCSI Bus Sharing” to “Physical”:
       image
  4. Repeat for both VMs
  5. At this point you can power on the VMs & follow your OS vendors setup guideline for shared disks.

Hope you found this informative. Questions, comments, corrections, or requests? Drop a line in the comments!

  • http://vibram4u.com/ moncler outlet store

    Hhe article’s content rich variety which make us move for our mood after reading this article. surprise, here wslmart.net you will find what you want! Recently, I found some wedsites which commodity is colorful of fashion. Such as xxxxxxxx that worth you to see. Believe me these websites won’t let you down.

  • Herschelle

    Does this still allow DRS/VMotion of both VMs?

  • cdickmann

    Appears in vSphere 4.1 the answer is “no”. UI says “Virtual machine is configured to use a device that prevents the operations: Device ‘SCSI controller 1′ is a SCSI controller engaged in bus-sharing.”

Previous post:

Next post: