1

I am in the process of playing around with ESX and one of the projects I took on is converting my old NAS to a VM. This was pretty straight forward but now I have some problem with storage.

The NAS had 3 drives, one was OS/Apps only and the rest was Data. Now I need the VM to connect to the 2 drives directly and cant seem to see how to do this in ESX4. When I go to "Add Hardware" and select SCSI Drive I only see my CD Rom Drive. The ESX installation itself see the added drive, but it seems I cant get the VM (Ubuntu) to access it. Can ESX be setup to allow VM access to physical hard drive, and if so how.

Thanks

1 Answer 1

2

If your physical storage hardware is suitable (iSCSI or Fibre Channel SAN LUNs) then you can create a Raw Device Mapping that allows you to add a physical drive (or a partition) directly to the VM - Chapter 10 of the ESX Configuration Guide has some more details on how to work with RDM's. The critical point to note for RDM's is that they are intended for SAN attached storage not local disks and they are the only supported way to map physical volumes as VM drives with vSphere.

It may be possible to add a drive as a generic SCSI device if you have the right drive\controller hardware and aren't too worried about VMware support. There's a discussion on the process in this VMware Communities discussion that used to work with earlier ESX versions. It has gotten more difficult in recent (v3.5 and v4) ESX\ESXi versions and requires a significant amount of VMX file hacking in order to fool ESX into accepting the mapping. This article by Edward Haletky on ITKE outlines a procedure that can work ESX 3.5.

2
  • Thanks for the help, but, I found the solution in this Forum post over at Ars Technica arstechnica.com/civis/viewtopic.php?p=2084653#p2084653
    – Zuhaib
    Oct 12, 2010 at 3:32
  • Nice one - I hadn't considered that vmkfstools would let you do this for non SCSI\SAN drives but it's a solid approach and avoids all the VMX editing.
    – Helvick
    Oct 12, 2010 at 14:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .