vicker313 tech blog

February 24, 2013

Add Local Storage as Raw Disk Mapping in ESX

Filed under: VMWare — Tags: , , , — vicker313 @ 7:39 am

In newer version of VMWare (example version 5), you can only Raw Disk Mapping (RDM) a SAN storage, and not the local storage or harddisk. However there is a trick to do this:

  1. Log in as root through ssh or just go to the console terminal (refer Enable SSH at ESX Host)
  2. Now you need to find out the physical disk path that you will be doing RDM, using either the following commands:
    • esxcfg-mpath -l
    • ls -al /vmfs/devices/disks
  3. Then you need to map the disk as a virtual disk using following command:
    vmkfstools -r /vmfs/devices/disks/<physical disk path> /vmfs/volumes/<vmfs datastore name>/<folder name>/<virtual disk name>.vmdk

Now you can view the physical disk as virtual disk and add it to VM.

Reference: Add Local Storage (e.g. a SATA disk) as a Raw Disk Mapping (RDM) or Mapped RAW LUN to a virtual machine hosted on ESXi


Enable SSH at ESX Host

Filed under: VMWare — Tags: , , — vicker313 @ 7:22 am

In newer version of ESX such as version 5, you have the option to enable the SSH daemon from the console menu (console directly from the host). However for older version like version 3, you need to do some tricks for it to happen:

  1. At the console, hit Alt+F1
  2. You will enter into console terminal, but you won’t see any prompt. Just key in “unsupported” (without quote) and press enter.
  3. Now you can see the prompt, edit /etc/inetd.conf using any editor (vi or nano)
  4. Look for the line with ssh, uncomment it.
  5. Exit from editor, then you need to stop the inetd process by killing it.
    1. Issue ps|grep inetd
    2. Find out the inetd process id and kill it using kill <process id>
  6. Start the inetd daemon by issuing the command inetd

Now you should able to connect the ESX host through SSH.

Reference: Get full control over your ESXi Server

Blog at