Difference between revisions of "Amahi in ESXi with greyhole"

From Amahi Wiki
Jump to: navigation, search
Line 31: Line 31:
 
<p>Start by enabling SSH on the ESXi host. From vSphere Client highlight the host and click the Configuration tab. Then under the software section click security profile.</p>
 
<p>Start by enabling SSH on the ESXi host. From vSphere Client highlight the host and click the Configuration tab. Then under the software section click security profile.</p>
  
 +
[[File:Vsphere-client-00.png]]
  
 
<p>Next under services click on properties, scroll down and select SSH and then click on properties. Then click on options and start the service. You also can optionally set the service to start automatically with the host.</p>
 
<p>Next under services click on properties, scroll down and select SSH and then click on properties. Then click on options and start the service. You also can optionally set the service to start automatically with the host.</p>
  
 +
[[File:Vsphere-client-01.png]]
 +
 +
<p>SSH into the ESXi host with your root credentials.</p>
 +
 +
<p>Run the following command to list the disks your ESXi host knows about</p>
 +
<p>TIP: You need to know which hard drive you want mapped to your Amahi server and it helps to know the serial number of the drive to identify it on the list</p>
 +
<code>esxcfg-scsidevs -l</code>
 +
[[File:esxi-ssh-00.png]]
 +
You will want to locate your disk and copy the "Devfs Path" In the screenshot above the disk I am using is /vmfs/devices/disks/t10.ATA_____ST2000DM0012D1CH164__________________________________Z1E57528
 +
 +
<p>Next cd into your /vmfs/volumes folder and run ls to see what datastores are available on your ESXi host.</p>
 +
[[File:esxi-ssh-01.png]]
 +
 +
<p>cd into your datastore folder and make an rdms folder to keep things in one place. Run the following vmkfstools command to create a raw device vmdk file.</p>
 +
<code>vmkfstools -z /vmfs/devices/disks/t10.ATA_____ST2000DM0012D1CH164__________________________________Z1E57528 ./rdms/rdm0.vmdk -a lsilogic</code>
  
<p>SSH into the ESXi host and </p>
 
  
 
<h3>Helpful links</h3>
 
<h3>Helpful links</h3>

Revision as of 07:52, 4 November 2013

Warning.png WARNING
This is recommended only for advanced users, proceed with caution.


Back to 'Amahi Virtualized'

Amahi in VMware ESXi with Greyhole

This tutorial will skip installation of ESXi but note that if you are installing ESXi 5.5 on consumer hardware it is likely network or storage drivers will not be on the default installation disk. You can either add your own or create a custom .iso file with the network drivers bundled with the installer.

When performing the installation of ESXi you will need to have at least one local disk to do the installation and use as a datastore for your VMs. For Amahi with Greyhole we will use all other drives in "Raw Device Mapping" mode and attach them directly to the Amahi VM.

Some quick points to cover about using Greyhole drive pooling within this setup..

  • It is not advisable to use Greyhole pooling with drive images (instead of physical drives) due to the added overhead and I/O delay that can be introduced. It will slow down your Proxmox machine and your Amahi file server
  • This process does work with any Amahi version and installation method, however if Greyhole isn't fully functional with a release of Amahi, it's not advisable to use Greyhole in this case.
  • When the physical drive is added to the VM, it will not show up as a datastore inside of the ESXi host. Rather all disk and partition management will be done directly in the Amahi VM.

Prerequesits

This guide is written for the following software configuration:

  • Amahi 7 (express CD)
  • VMware ESXi 5.5

That does not mean these steps will not work with your setup. Just that your setup may be different and you will need to do troubleshooting on your own.

This guide will also assume you already have ESXi installed on your hardware, VMware vSphere Client on your laptop, and an Amahi VM already running on your hypervisor. If you are not sure how to do any of those above steps, this guide/setup may not be for you as it involves configuring advanced, and unsupported, hard drive setups inside ESXi

Configure ESXi Raw Device Mapping (RDM)

Start by enabling SSH on the ESXi host. From vSphere Client highlight the host and click the Configuration tab. Then under the software section click security profile.

Vsphere-client-00.png

Next under services click on properties, scroll down and select SSH and then click on properties. Then click on options and start the service. You also can optionally set the service to start automatically with the host.

Vsphere-client-01.png

SSH into the ESXi host with your root credentials.

Run the following command to list the disks your ESXi host knows about

TIP: You need to know which hard drive you want mapped to your Amahi server and it helps to know the serial number of the drive to identify it on the list

esxcfg-scsidevs -l Esxi-ssh-00.png You will want to locate your disk and copy the "Devfs Path" In the screenshot above the disk I am using is /vmfs/devices/disks/t10.ATA_____ST2000DM0012D1CH164__________________________________Z1E57528

Next cd into your /vmfs/volumes folder and run ls to see what datastores are available on your ESXi host.

Esxi-ssh-01.png

cd into your datastore folder and make an rdms folder to keep things in one place. Run the following vmkfstools command to create a raw device vmdk file.

vmkfstools -z /vmfs/devices/disks/t10.ATA_____ST2000DM0012D1CH164__________________________________Z1E57528 ./rdms/rdm0.vmdk -a lsilogic


Helpful links

http://www.vm-help.com/esx40i/SATA_RDMs.php
http://forza-it.co.uk/esxi-5-1-using-raw-device-mappings-rdm-on-an-hp-microserver