[CentOS] NFS mount problem
jiannma at gmail.com
Mon Apr 26 05:25:40 UTC 2010
Thanks for your reply~
I think my problem could be is how to create the iptables that could let
the NFS server access into the host system.
The guest system is CentOS 5.3 i386 . The ip address is 192.168.56.101
with the eth0 interface
And the host system is CentOS 5.4 x86_64, its ip address is 192.168.7.67 and
its route information is the following :
root at xxx: route -n
192.168.7.0 xx xx xx eth0
192.168.56.0 xx xx xxx vboxnet0
I run this iptable rule in the guest system which configured the NFS
iptables -A INPUT -i eth0 tcp -s 192.168.7.67 --dport 111 -j ACCEPT
when I run "showmount -e 192.168.56.101" and the directory appears,
but run the "mount -t nfs 192.168.56.101:/xxx /media" in the terminal ,
the output is still that message:
"mount : 192.168.56.101:/xx failed , reason given by server:Permission
So is it my iptables rule wrong? Or how to write the correct the rule ?
Thanks in advance~.
On Mon, Apr 26, 2010 at 12:16 PM, onay <ronald.santosa at gmail.com> wrote:
> On Mon, Apr 26, 2010 at 10:15 AM, sync <jiannma at gmail.com> wrote:
> > Hi,guys:
> > I am trying to connect to a NFS-filesystem on a CentOS 5.3 i386 guest
> > system. The host system is CentOS 5.4 x86_64.
> > I set up the NFS server correctly and rpcinfo is also ok inside the
> > system show.
> > The problem is, I can't connect to, or see the open port from the
> outside. I
> > use the Host-Only network setup with VirtualBox 3.1.0,
> > the ip address in the guest system is 192.168.56.101 . and the host
> > ip address is 192.168.7.67
> > When I mount the directory from the guest system via NFS, the result is
> > following :
> > "mount : 192.168.56.101:/xx failed , reason given by server:Permission
> > denied"
> > I hope one of you can give me a hint in which direction I should
> > my efforts.
> > Thanks in advance,,,
> > _______________________________________________
> > CentOS mailing list
> > CentOS at centos.org
> > http://lists.centos.org/mailman/listinfo/centos
> If you already can ping the nfs server, then you should check this:
> 1. nfsd service
> 2. open port on iptables
> 3. /etc/host.allow or /etc/host.deny
> You can check share folder from nfs client with command:
> showmount -e ip.nfs.server
> If the folder appears, then you can start to mount that otherwise you
> should check your /etc/exports again.
> If knowledge belong to the world,
> why don't you give me some?
> CentOS mailing list
> CentOS at centos.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the CentOS