VMware ESX(i) 4.0 (vSphere) -Connecting to an iSCSI Storage Target.

# VMware

With a complete re-write of the iSCSI portion of the code, ESX 4(vSphere) provides better performance and useful features such as Jumbo Frame support and TCP Segmentation Offload (TSO).  There is more reason than ever to consider iSCSI based share storage to house your VMs.

There are many low cost iSCSI storage solutions available such as OpenFiler of which I have written a configuration article here.

Here is a quick guide to assist you on your way to connecting your ESX(i) 4.0 host to an iSCSI source.  Many of these screenshots are self explanatory so I will keep my descriptions to a minimum.

Initially you will most likely only have a ‘Management’ and a ‘Virtual Machine Network’ as you’ll need to have a dedicated network connection for the iSCSI traffic (between the ESX host and the iSCSI target) then…

VMware ESX 4 vSphere iSCSI 

… from the ‘Configuration’ –> ‘Networking’ screen select ‘Add Networking’.

VMware ESX 4 vSphere iSCSI

Select ‘VMkernel’ as the ‘Connection Type’.

VMware ESX 4 vSphere iSCSI

Select the NIC(s) you want to use for your iSCSI VMKernel connection (ensure that it has network connectivity through to your iSCSI target ideally on its own separate network segment – this is strongly advised).

VMware ESX 4 vSphere iSCSI

Type in a meaningful ‘Network Label’ none of the other options are required so leave them unchecked.

VMware ESX 4 vSphere iSCSI

Give your new iSCSI network connection a IP address.  As a dedicated network is strongly recommended for iSCSI traffic ensure that it is given a unique IP address on the same subnet as your iSCSI target.  As this traffic will not be leaving this dedicated network then there no need in this example to specify a new gateway.

VMware ESX 4 vSphere iSCSI

After configuring this new iSCSI VMKernel port you will now see it displayed in the ‘Networking’ area of the ‘Configuration’ section.  As you can see I am only using a single NIC meaning that this is potentially a single point of failure.  If you are considering using iSCSI in a production environment then you would ideally want to use multiple NICs for extra resilience.

 VMware ESX 4 vSphere iSCSI 

Now select ‘Storage Adapters’ from the ‘Configuration’ menu.

VMWare ESX vSphere Configuration

Storage Adapters VMWare ESX 4 vSphere

As outlined in the screen shot below select the ‘iSCSI Software Adapter’ and then click on ‘Properties’.

VMWare ESX 4 vSphere iSCSI Storage Adapters

You’ll notice that by default the status of the ESX iSCSI software initiator is set to ‘Disabled’.  We want to change this.. (see steps below)

VMWare ESX 4 vSphere iSCSI initiator

You’ll notice that when you enable the iSCSI initiator a rather long name will be auto generated in the ‘iSCSI Name’ field.  This is a unique name that only your ESX host will have.  It can be changed to something else of your choosing though just make sure that it is unique.  I personally always leave them with the auto generated iSCSI name.

VMWare ESX 4 vSphere iSCSI Properties

Now select the ‘Dynamic Discovery’ tab and press the ‘Add’ button as we now want to tell our ESX host where to find the iSCSI target.  In the ‘iSCSI Server’ field enter in the IP address of your iSCSI target – you shouldn’t have to change the default port number.

Depending on the level of security set on your iSCSI target you may have to enter in the ‘CHAP’ authentication details.  Talk to the person who configured your iSCSI target to see if you need to do this..

VMWare ESX 4 vSphere iSCSI Target

Once you’ve added in the details of your iSCSI target you’ll see it’s IP address appear in the ‘Send Targets’ list.

VMWare ESX 4 vSphere iSCSI Send Targets

You’ll also be prompted to rescan the Host Bus Adapter (HBA).  Select ‘Yes’ as you want your ESX host to go and try to connect to your specified iSCSI target.

VMWare ESX 4 vSphere Rescan the Adapter

Everything going to plan and you should now see your iSCSI target (in this case my OpenFiler) appear in the ‘Storage Adapters’ configuration screen.  This means that it has connected through successfully.

VMWare ESX 4 vSphere iSCSI

This next step will vary depending on whether your iSCSI storage has VMFS applied to it already or not.  If it hasn’t and this is fresh new disk presented to the ESX host then you’ll want to format it with VMFS to allow VMs to be stored on it.  Else if it has already been configured with VMFS then this iSCSI storage will automatically appear for use to your ESX host (see below).

 VMWare ESX 4 vSphere iSCSI

You will now be all set to go. Enjoy!

Cool - You've Finished!

Technorati Tags: ,,,,,,,,,
VN:F [1.8.4_1055]
Rating: 5.0/5 (1 vote cast)
VN:F [1.8.4_1055]
Rating: +1 (from 1 vote)
VMware ESX(i) 4.0 (vSphere) -Connecting to an iSCSI Storage Target.5.051

Related posts:

  1. How to configure OpenFiler v2.3 iSCSI Storage for use with VMware ESX. Until recently I had been running my ESX VM’s...
  2. Link – Running MS Exchange on VMware vSphere over Fibre Channel, iSCSI or NFS The VMware performance team have released a white paper...
  3. Link – Good Tips for using iSCSI with VMware ESX Not sure where the last week has gone.  Things...
  4. What is an HP LeftHand iSCSI SAN? There have been some great IT technologies and products...
  5. How to Provide Management and General VM Network Resilience with only 2 Physical NIC’s on vSphere ESXi 4.0 Wow, that was quite a lengthy title for this...

You can leave a response, or trackback from your own site.

4 Responses to “VMware ESX(i) 4.0 (vSphere) -Connecting to an iSCSI Storage Target.”

  1. [...] has this covered here. If your ESX VM is not finding the iSCSI targets, [...]

  2. A Mikkelsen says:

    Keep up the good work.
    Nice and simple guides :-)

    UN:F [1.8.4_1055]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.8.4_1055]
    Rating: 0 (from 0 votes)

    [Reply]

  3. [...] up iSCSI on vSphere (ESX 4.x) you might want to take a look at this guide from teachhead.co.uk http://www.techhead.co.uk/vmware-esxi-4-0-vsphere-connecting-to-an-iscsi-storage-target ESX, ESXi esx, esx 4, iscsi, [...]

  4. [...] reading the bible on getting ESXi and Openfiler talking, decided to turn those babies into Openfiler NAS devices. [...]

Leave a Reply

You can add images to your comment by clicking here.

TrainSignal - vSphere Pro
PHD Virtual - esXpress
StarWind Software
Virtu-Al.net
Virtualization Pro Summit 2010
Veeam - Backup & Replication