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 environment 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,  or 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 VMkernel 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 never mind, 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

If you want to try Openfiller and configure NFS share which can be presented to your ESX host, you can follow this link to my article about Installation and configuration Openfiller 2.99 as a shared storage for VMware vSphere Lab.

Get some Top Free Whitepapers which you can download for free:

Top 5 VM performance problemsTop 5 VM Performance Problems.

In the Whitepaper you’ll first read the explanations where are the usual location of performance issues, and see that the resolution is not always evident in Virtual Infrastructure in general.

There are some caveats to know to find the problem first and then resolve.

Download for Free

 

Continuing to reap the rewards of virtualization - Free e-Book to DownloadContinuing to Reap the Rewards of Virtualization -

Balance and Efficiency. This illustrated e-book tells you more about interesting scenarios for sizing servers. With a clear examples. Also by using the monitoring solution bundled with Veeam One can show you exactly what’s going on in a real time or in what-if scenario.

If your RAM utilization is 4%, you have plenty of room to grow, but if you have no intention of growing that is a lot of expensive RAM going to waste. Bear in mind that more is not always better and the optimal strategy is to instead right-size your virtual environment. Download for Free

 

Analytics Required to Successfully Manage Performance and Capacity in Cloud Environments Analytics Required to Successful Manage Performance and Capacity in Cloud Environments- Managing Virtual Infrastructure instead of just physical servers one by one is challenging. One must make some decisions on where to best place the workloads or how much physical server and storage capacity to provision for new VMs…

What’s the best sizing for new VMs so they’re not oversubscribed with memory, disk or CPU…? Identify the “sleeping VMs” which do nothing, orphaned VMDKs, Snapshots, logfiles…

Download for Free.

You can find more Free Whitepapers to download on my Free Resources page.

Enjoy… -:)
.

Vladan SEGET

Vladan is an Independent consultant, vExpert, VCP and owner of this website. This website ESX Virtualization started as a bookmarking site, but very fast found itself many readers and supporters. Feel free to network via Twitter @vladan

More Posts - Website - Twitter - Facebook - LinkedIn - Google Plus

You may also like:

  1. How to configure OpenFiler iSCSI Storage for use with VMware ESX.
  2. Convert any Windows server in a free SAN for your ESX/vSphere lab
  3. New low cost iSCSI SAN storage VMware Certified
  4. Use StorMagic SvSAN if you do not have SAN or NFS
  5. How to connect Your IT Infrastructure to the Cloud in 2009
  6. How to connect and use VM Explorer from Trilead
  7. Demo VI 3.5 with HA, vMotion and Symantec BE 12.5
  • 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.

    • leogrande

      Something is missing here.
      1. Network Access Configuration, I guess, has to be Network/Host and not IP of OF, Network where initiators reside. 2. Volumes – iSCSI Targets have to be configured. 3. Check out: iSCSI Initiator Properties – Target discovery methods: Send Targets, Static Target. Note that it is only Static Discovery, so add into the Static Discovery name of your OF iSCSI target.

  • 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… -:)

  • 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.

    • Vladan SEGET

      I would create a separate vmkernel, but I’m not VCP…

  • http://itkbcentral.blogspot.com/ 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

    • http://www.vladan.fr Vladan

      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…

  • nic

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

    • http://www.vladan.fr Vladan

      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

    • 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 ?

      • http://www.vladan.fr Vladan

        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-

  • 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.

    • http://www.vladan.fr Vladan

      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…

      • 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?

  • Pingback: Welcome to vSphere-land! » Storage Links

  • JCS

    I’ve tried this at least 5 times now and cant get it to work.. I’ve followed every step exactly and it’s just not working..
    I’m running Windows 7 x64 as my desk os
    VMWare workstation 7.1
    ESX 4.0 Update 2 in one VM
    and the Openfiler appliance.

    Any help is greatly appreciated.. Trying to setup a test area to study for the VCP.
    Thanks

    • http://www.vladan.fr Vladan SEGET

      Did you tried to ping ?

    • landog

      I, too, had the issue where the LUN did not show in step #9. Go back to openfiler – Volumes – iSCSI Targets – LUN Mapping – make sure you have added a LUN.

      • http://www.vladan.fr Vladan SEGET

        Thanks for helping out landog. -:)

  • LeonG

    Hi Vladan, thanks for this blog however there are a lot of steps missing on the Openfiler configuration. Firstly under iSCSI targets you need to map the primary LUN, you also need to ensure that under “System” you have the local network added as a share i.e 192.168.1.0/24. Also under the “Network ACL’s section of “Volumes” -> “iSCSI target” you have allowed those networks to communicate. After a bit of fiddling around and doing the above I now have this working with ESXi4.1.

    • http://www.vladan.fr Vladan SEGET

      Hi Leon, Which version of Openfiler you using, because when I was writing the tutorial, the step-by-step worked… Did you check the first part of the tutorial?

      I had to separate it to 2 blog posts, since it was too heavy….

      • LeonG

        Hi Vladan, it is the latest release of Openfiler (V2.3). I’m guessing in the old version it automapped the LUN and allowed the network by default?
        Anyway excellent tutorial, I have ESXi 4.1, OpenFiler 2.3, vCentre all running in a VMWorkstation 7 environment. Perfect for testing, although I could do with a little more RAM ;-)

        • landog

          I agree. Thanks for the tutorial. Between Vladan and Leon I have it running in VMWorkstation (16 GB ram on my Thinkpad w510 – could use more :) )

      • Mazhar Memon

        Hi

        Though have IT back ground but I am fairly new to vmware and storage stuff. Wanted to build home lab and have so for obtained 2 HP server with SCSI drives in them. I have installed esxi on one of them and have crated windows server vm so for. Second HP box has MS storage server on it which works as NAS(can rebuild it to what ever required). I need guidance to start building my home lab for learning details of vmware technology and storage and also backups using veritas netback software. I have some experience in backing up/restoring ESX server using NDMP but I wanted to present san/nas volumes to system to learn backups using openstorage API. I do have vmware simulator as well. Openfiler seems to be exciting idea but so for I have not learned enough about its capabilities and how it can help me towards my objectives.

        Mazhar, Calgary, Canada

  • Labuser

    For those not being able to connect to the openfiler iscsi share to your esxi4 server, check the following:

    -on the ESXi4 iSCSI initiator properties windows, press the Advanced button
    -set the iSCSI Adapter Option: Header Digest setting to Preferred
    -set the iSCSI Adapter Option: Data Digest setting to Preferred

    Rescan for iSCSI volumes and your openfiler iSCSI shares should be visible.

    • http://www.vladan.fr Vladan SEGET

      Hi,

      That’s a great tip. I hope that it helps to those who are somehow frustrated not being able to see the target…
      Thanks
      Vladan

      • Labuser

        Thank you for the tutorials.

  • http://www.boxeeboxes.net Gerardo Kazemi

    Impressive blog site! This kind of technology can never cease to astound me. Anyways, you need to maintain the fantastic work. If you have the time, I would like to hear your personal views on related things to that. I should say, my curiosity is piqued. Now where exactlyis this subscribe option!

    • http://www.vladan.fr Vladan SEGET

      You can subscribe via RSS… Just go to the RSS page, you’ll find the explanation there.