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:
- Log in as root through ssh or just go to the console terminal (refer Enable SSH at ESX Host)
- Now you need to find out the physical disk path that you will be doing RDM, using either the following commands:
ls -al /vmfs/devices/disks
- 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
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:
- At the console, hit Alt+F1
- You will enter into console terminal, but you won’t see any prompt. Just key in “unsupported” (without quote) and press enter.
- Now you can see the prompt, edit
/etc/inetd.conf using any editor (vi or nano)
- Look for the line with ssh, uncomment it.
- Exit from editor, then you need to stop the inetd process by killing it.
- Find out the inetd process id and kill it using
kill <process id>
- Start the inetd daemon by issuing the command
Now you should able to connect the ESX host through SSH.
Reference: Get full control over your ESXi Server