How-to connect ESX4, vSphere to Openfiler iSCSI NAS


How-to connect ESX Server to Openfiler iSCSI NAS.

Now that we are in the ESX 4 era we can test it in a lab environement with a iSCSI NAS freeware solution Openfiler. Few months ago I wrote an article about how to configure OpenFiler iSCSI Storage for use with VMware ESX. That blogpost was a step-by-step procedure for a new persons coming to learn stuff about ESX Virtual environments and Openfiler is a great Linux distribution to play with as a storage for ESX Server. In the blogpost you’ll learn about the Openfiler configuration.

Now there is the part when you’ll need to configure your freshly installed ESX/ESXi 4,  5or vSphere 4 if you like), to reach the shared storage where the openfiler is.

01.) Fire up the vCenter and go to Inventory > Configuration > Networking and in Networking click on Add Networking. You must add VMkerel to handle features like vMotion and HA.

01-add-VMkernel

02.) Use vSwitch0 for the test connection. If you have more than one NIC you can use another vSwitch. I had only one nic in my lab…

02-connect-iSCSI-Openfiler-ESX-4.0

As you can see there is a warning message saying that it’s Highly recommended to have separate VMKernel Port group and physical NIC…. But nevermind, just go on… For your lab it’s OK.

03-connect-iSCSI-Openfiler-ESX-4.0-WARNING

03.) Check the box “Use this port group for Fault Tolerance logging” and “VMotion”.

04-connect-iSCSI-Openfiler-ESX-4.0-VMotion

04.) Set an IP adress for the VMkernel (Just choose a free IP in the same network) and fill the Default Gateway IP adress.

05-connect-iSCSI-Openfiler-ESX-4.0-IP

05.) Go to Configuration TAB and click on Storage Adapters.

06-connect-iSCSI-Openfiler-ESX-4.0-storage-adapter

06.) When you click on Properties, then you open firs the General TAB and enable the software initiator checkbox.

vSphere iSCSI connection to Openfiler NAS

07.) Then click on Dynamic Discovery TAB and add your Openfiler IP adress. In my case 192.168.0.16

07-connect-iSCSI-Openfiler-ESX-4.0-dynamic-discovery

08.) Then go to Configuration TAB > Storage > Add Disk/LUN.

08-connect-iSCSI-Openfiler-ESX-4.0-add-storage

09.) Your Openfiler NAS should already appear in the list….

09-connect-iSCSI-Openfiler-ESX-4.0-add-storage

10.) Check the box to maximize capacity of this storage.

10-connect-iSCSI-Openfiler-ESX-4.0-add-storage

11.) And you can browse the Datastore, copy paste files to and from… -:)

11-connect-iSCSI-Openfiler-ESX-4.0-browse-datastore

Have fun… -:)

Technorati Tags: , , ,

Related Posts :

Other posts from Server Virtualization

14 Comments

  1. Ingenitec

    Hi,

    I have a problem. I cannot connect openfiler with esx4i. I have a doubt with the configuration about “Network interface configuration” and “Network Access Configuration”. I don’t know what of them is for acces from esxi, and what is for set an ip adress to openfiler. And finally what ip i must set to vmkernel port in esx4i.

    I have installed Openfiler 2.3 x64 and ESXi 4.0.0. 164009.

    Thanks for all.

  2. Vladan SEGET

    You must first configure Openfiler correctly in part1 here: http://www.vladan.fr/how-to-configure-openfiler-iscsi-storage-for-use-with-vmware-esx/

    Then follow the how-to to configure ESXi 4.0 here: http://www.vladan.fr/how-to-connect-esx4-vsphere-to-openfiler-iscsi-nas/

    Can’t really do more detailed… -:)

  3. harsha

    hi Vladan

    I am trying to create fault tolerant VM using ESX HA

    system was prompting me for a fault tolerance logging port, should I b using the same vmkernel i used for iscsi and enable it for fault tolerance logging or should i be using a third VM kernel for that. i used second one for vMotion.

  4. SH

    Good article. People also might want to check out a Best Practice for simple iSCSI hookups with VMware:

    http://itkbcentral.blogspot.com/2009/08/iscsi-s...

  5. Thanks for the link Semir. Good info. I really beleive that with lower price for iSCSI SAN/NAS devices it's possible to penetrate the SMB market more easily… Not everyone has got enough funds to invet into Fibre channel…

  6. nic

    My volume doesn't show up under add storage device. The adapater is configured correctly and the IP addresses are correct.

  7. Nic,

    when you're at the openfiler configuration, you go step-by-step to create partition > create volume group > create volume and follow the rest of the how-to here….. Just try it again, I'm sure you must have missed a point… -:)
    http://www.vladan.fr/how-to-configure-openfiler...

  8. Bob

    I too followed both guides and unfortunatly I am not seeing any devices under my ISCSI Software Adapter and similar when i scan for new storage nothing is displayed. Thoughts ?

  9. Since I do not know exactly in which configuration you're, I can't really help.

    Try one of those… and you might try to do the config in a VMware Workstation. There is a Openfiler Appliance available for download too.

    http://www.vladan.fr/three-guides-on-about-how-...

  10. Multi

    I have followed all the steps as detailed and still cannot see my openfiler volume as in step 9. Can you please suggest what I might have missed? thanks.

  11. Try to ping th iSCSI target first. If Ok, and if iSCSI is enabled and correctly filled in on the ESX part, the trouble could be on the Openfiler side…

  12. Multi

    Thanks vladan. Could you please confirm if the mask is to be set to 255.255.255.255, in the Network Access Configuration part as suggested by the screen shot or to the mask of the Openfiler server?

Trackbacks and Pingbacks

Leave a Reply