How to connect ESX to CentOS NFS

Posted on 2009-05-01
Last Modified: 2013-12-02
Hello all,
I am working with my first ESX install that needs a share. I have installed CentOS 5 and it seems to be running fine. I have done the following on the CentOS box (VM box is
Make directory that you want to use.
# mkdir /home/vm

Edit /etc/exports, insert the client machine's ip

# vi /etc/exports
Add this line:

Edit /etc/hosts.allow
# vi /etc/hosts.allow
Add this line:
Start nfs and portmap (I stopped both first)
# /etc/init.d /./nfs start
# /etc/init.d/./portmap start
On the ESX box I created the VM kernel and then used the IP of the Cent Box ( and then in the path put /home/vm.

Any ideas on why this does not connect?  I have doubled checked what I have typed. Is there a way to see if the share is being published? We windows only except for just a couple of linux flavored boxes.

Question by:damewoodr
    LVL 21

    Expert Comment

    Can your VMKernel port ping the Cent box . Try vmkping from the local ESX console to see if there is reply.  That could be a problem..

    Author Comment

    Yes I can. I have done some research with this issue. I am thinking that there might be a firewall issue or something like that. This is my first time that I have built an NFS and CentOS box.
    LVL 19

    Accepted Solution

    I suggest that you try stopping the iptables running in your CentOS Box and try reconnecting to the NFS Share.

    The command to stop iptables - "service iptables stop"

    Check this for more info about iptables -

    Author Comment

    That Did it, thanks Arunraju. Now, is there any concern about turning that off?

    Author Closing Comment

    Worked like a charm? (It aslo fixed my VNC issue)
    LVL 19

    Expert Comment

    by:vmwarun - Arun
    iptables is the equivalent of your Windows Firewall.
    If the CentOS Box is hosting something critical other than NFS, then I suggest that you open the specific ports on iptables and do not totally turn it off.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Using a software based iSCSI solution, there is no requirement to purchase a hardware iSCSI initiator or TOE (TCP/IP Offload Engine) interface card. A standard network interface card can be used to connect an existing ESXi server to a remote iSCSI t…
    In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
    Teach the user how to install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …
    Teach the user how to install log collectors and how to configure ESXi 5.5 for remote logging Open console session and mount vCenter Server installer: Install vSphere Core Dump Collector: Install vSphere Syslog Collector: Open vSphere Client: Config…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now