Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
<p>
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 [http://www.v-front.de/2013/09/how-to-add-missing-esxi-50-drivers-to.html network drivers bundled with the installer].</p>
<p>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 data store 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.</p>
<p>Some quick points to cover about using Greyhole drive pooling within this setup..
<ul>
<li>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</li>
<li>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.</li>
<li>When the physical drive is added to the VM, it will not show up as a datastore data store inside of the ESXi host. Rather all disk and partition management will be done directly in the Amahi VM.</li>
</ul>
</p>
<h3>PrerequesitsPrerequisites</h3>
This guide is written for the following software configuration:
<ul>
<li>Amahi 7 (express Express CD)</li>
<li>VMware ESXi 5.5</li>
</ul>
<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>
[[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 data store 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> [[File:esxi-ssh-02.png]] In the above screenshot you will see two different devices. One is 750 Gb and the other is 2 Tb. You can see both devices base on the *-rdmp.vmdk files. <h3>Add RDM Device to Amahi VM</h3> <p>After your VM has been created right click on the server in the vSphere Client or the vSphere web interface and go to "Edit Settings".</p> [[File:Vsphere-client-02.png]] <p>On the hardware tab click Add and then select Hard drive from the list of devices to add.</p> [[File:Vsphere-client-03.png]] <p>Click Next and then select the radio button for "Use an existing virtual disk".</p> [[File:Vsphere-client-04.png]] <p>Click browse and navigate to the datastore and then rdms folder you created earlier. Next select the vmdk device associated with the disk you want to map.</p> [[File:Vsphere-client-05.png]] <p>On the next step map sure you select a new SCSI controller for your physical disks. Because my OS is a virtual disk on SCSI 0:0 in the screenshot I use SCSI 1:X for my physical RDM disks</p> [[File:Vsphere-client-06.png]] <p>One the host has been [re]booted you should be able to view the new disks using `fdisk -l` and follow the [https://wiki.amahi.org/index.php/Adding_a_second_hard_drive_to_your_HDA Adding a second hard drive to your HDA] guide to add the storage to greyhole.
<h3>Helpful links</h3>
http://www.vm-help.com/esx40i/SATA_RDMs.php<br />
http://forza-it.co.uk/esxi-5-1-using-raw-device-mappings-rdm-on-an-hp-microserver<br/>http://www.vmware.com/support/developer/vcli/vcli41/doc/reference/vmkfstools.html
[[Category:Virtualization]]