ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

How-to connect ESXi, vSphere to Openfiler iSCSI NAS

By Vladan SEGET | Last Updated: March 1, 2015

Shares

How-to connect ESX Server to Openfiler iSCSI NAS. Now that we are in the ESXi 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 ESXi. 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,  or vSphere 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 Openfiler and configure NFS share which can be presented to your ESXi host, you can follow this link to my article about Installation and configuration Openfiller 2.99 as a shared storage for VMware vSphere Lab.

Shares
Vote !

| Filed Under: Server Virtualization Tagged With: connection ESX Openfiler, Connection vSphere Openfiler, vSphere iSCSI Openfiler

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. Ingenitec says

    June 26, 2009 at 6:28 am

    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 says

      April 15, 2010 at 2:32 pm

      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.

  2. Vladan SEGET says

    June 26, 2009 at 9:06 am

    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 says

    July 27, 2009 at 1:29 am

    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 says

      July 27, 2009 at 6:43 am

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

  4. SH says

    August 23, 2009 at 4:24 am

    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…

    • Vladan says

      August 23, 2009 at 6:27 am

      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…

  5. nic says

    August 23, 2009 at 11:09 pm

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

    • Vladan says

      August 24, 2009 at 4:03 am

      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 says

      August 24, 2009 at 7:19 pm

      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 ?

      • Vladan says

        August 25, 2009 at 7:36 am

        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-…

  6. Multi says

    November 4, 2009 at 9:12 pm

    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.

    • Vladan says

      November 4, 2009 at 9:22 pm

      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 says

        November 4, 2009 at 10:41 pm

        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?

  7. JCS says

    July 24, 2010 at 9:03 pm

    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

    • Vladan SEGET says

      August 4, 2010 at 5:59 am

      Did you tried to ping ?

    • landog says

      August 27, 2010 at 9:34 am

      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.

      • Vladan SEGET says

        August 29, 2010 at 1:20 am

        Thanks for helping out landog. -:)

  8. LeonG says

    August 18, 2010 at 11:48 am

    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.

    • Vladan SEGET says

      August 18, 2010 at 12:19 pm

      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 says

        August 18, 2010 at 1:04 pm

        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 says

          August 27, 2010 at 9:42 am

          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 says

        November 5, 2011 at 2:49 pm

        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

  9. Labuser says

    September 26, 2010 at 5:28 pm

    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.

    • Vladan SEGET says

      September 26, 2010 at 10:35 pm

      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 says

        September 30, 2010 at 8:55 am

        Thank you for the tutorials.

  10. Vladan SEGET says

    October 10, 2010 at 11:52 am

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

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Nakivo Backup and Replication v11.1 BETA adds more Proxmox friendly features
  • Vulnerability in your VMs – VMware Tools Update
  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!
  • Installation of StarWind VSAN Plugin for vSphere
  • Protect Mixed environments with Nakivo Physical Machine recovery (bare metal)
  • No more FREE licenses of VMware vSphere for vExperts – What’s your options?
  • Tails – Your Private OS on USB Stick
  • StarWind V2V Converter Now has CLI

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in