Re: [CentOS] NFS mount problem

2010-04-27 Thread kalinix
On Tue, 2010-04-27 at 10:32 +0800, sync wrote:

 
 Yeah ~
  When I change that line in the /etc/exports on the guest system which
 installed the NFS server  like that :
 /home/test  *(rw)
 
 then I run the mount -t nfs 192.168.56.101:/home/test /media on the
 host system  , it will be ok ~
 
 But when I change these message:
 /home/test  192.167.7.67(rw)
 
 The result is not ok ~
 
 So what is the problem with it ?
 
 
 
 
 James Pearson
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
 
 
 
 
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


The problem was, as I said in my previous post, that you use one subnet
for you guest machine and another for your host machine.

I don't see how you could reach your guest machine (192.168.56.0/24)
using your real interface, which is on 192.168.7.0/24 subnet, once you
already put in your routes that 192.168.56.0/24 should be accessed using
vnetbox0.

Pretty obvious.


Calin

Key fingerprint = 37B8 0DA5 9B2A 8554 FB2B 4145 5DC1 15DD A3EF E857

=
Nothing is impossible for the man who doesn't have to do it himself. --
A.H. Weiler
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] NFS mount problem

2010-04-27 Thread Joseph L. Casale
Hey I did appologise! We do use that feature of outlook internally, and
if I reply to a html post, outlook will do that by default.

I already know the fix - To use my gmail account instead of my work
email account for this mailing list.

Dan,
You can force outlook to txt mode if you want, you needn't let it stick
to its default. Look under Options/Format...
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] NFS mount problem

2010-04-26 Thread James Pearson
sync 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 guest
 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 system
 ip address is 192.168.7.67
 
 When I mount the directory from the guest system via NFS, the result is the
 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 continue
 my efforts.

What is the contents of /etc/exports on the server?

James Pearson
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] NFS mount problem

2010-04-26 Thread sync
The contents of  /etc/exports on the server is the following :

/home/test   192.168.7.67(rw)

Is there anything error ?


On Mon, Apr 26, 2010 at 6:21 PM, James Pearson
jame...@moving-picture.comwrote:

 sync 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
 guest
  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
 system
  ip address is 192.168.7.67
 
  When I mount the directory from the guest system via NFS, the result is
 the
  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
 continue
  my efforts.

 What is the contents of /etc/exports on the server?

 James Pearson
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] NFS mount problem

2010-04-26 Thread Marcelo M. Garcia
sync wrote:
 The contents of  /etc/exports on the server is the following :
 
 /home/test   192.168.7.67(rw)
 
 Is there anything error ?
 
Hi

First, do not top-post[1].

In general you can find more information in /var/log/messages.

You watch with
  # (as root) tail -f /var/log/messages
and from another window, try to mount.

Regards

mg.





[1]
Please do not top post to the mailing list when replying to a post. (See 
the Quoting Style link above, and use the Interleaved text method, 
deleting non-applicable text as required. If you need to reply to a 
message, and you do not need to post in interleaved mode, please bottom 
post instead of top posting.
http://www.centos.org/modules/tinycontent/index.php?id=16

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] NFS mount problem

2010-04-26 Thread James Pearson
sync wrote:
 The contents of  /etc/exports on the server is the following :
 
 /home/test   192.168.7.67(rw)
 
 Is there anything error ?

I assume you have run something 'export -avr' since changing this file - 
or restarted the nfs server processes on the server?

You could try changing that line to:

/home/test  *(rw)

then re-run 'export -avr' and try the mount again

James Pearson
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] NFS mount problem

2010-04-26 Thread kalinix
On Mon, 2010-04-26 at 18:37 +0800, sync wrote:

 The contents of  /etc/exports on the server is the following :
 
 /home/test   192.168.7.67(rw)
 
 Is there anything error ?
 
 
 

Not very familiar with virtual box (I prefer vmware or kvm) but shouldn't you 
export to your vboxnet0 ip, which I presume is either 192.168.56.1 or 
192.168.56.2?



Also, your iptables rule on the virtual machine is right now:


iptables -A INPUT  -i eth0  tcp -s 192.168.7.67  --dport 111 -j ACCEPT

and I think it should be

iptables -A INPUT  -i eth0  tcp -s 192.168.56.X  --dport 111 -j ACCEPT


where 192.168.56.X is your vboxnet0 ip.


But again, I am not familiar with VirtualBox and it might have settings
different than vmware or kvm.


Calin

Key fingerprint = 37B8 0DA5 9B2A 8554 FB2B 4145 5DC1 15DD A3EF E857

=
As he had feared, his orders had been forgotten and everyone had brought
the potato salad.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] NFS mount problem

2010-04-26 Thread Jason Brown
You need to edit the ports in /etc/sysconfig/nfs to make them static before
enabling IPTABLES.  Once that is done you need to open not only those ports
but also tcp:udp 111 and tcp:udp 2049.

On Mon, Apr 26, 2010 at 7:59 AM, kalinix calin.kalinix.co...@gmail.comwrote:

  On Mon, 2010-04-26 at 18:37 +0800, sync wrote:

 The contents of  /etc/exports on the server is the following :

 /home/test   192.168.7.67(rw)

 Is there anything error ?



 Not very familiar with virtual box (I prefer vmware or kvm) but shouldn't you 
 export to your vboxnet0 ip, which I presume is either 192.168.56.1 or 
 192.168.56.2?



 Also, your iptables rule on the virtual machine is right now:



 iptables -A INPUT  -i eth0  tcp -s 192.168.7.67  --dport 111 -j ACCEPT

 and I think it should be

 iptables -A INPUT  -i eth0  tcp -s 192.168.56.X  --dport 111 -j ACCEPT


 where 192.168.56.X is your vboxnet0 ip.


 But again, I am not familiar with VirtualBox and it might have settings
 different than vmware or kvm.


 Calin

 Key fingerprint = 37B8 0DA5 9B2A 8554 FB2B 4145 5DC1 15DD A3EF E857

 =
 As he had feared, his orders had been forgotten and everyone had brought
 the potato salad.

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] NFS mount problem

2010-04-26 Thread sync
On Mon, Apr 26, 2010 at 7:11 PM, James Pearson
jame...@moving-picture.comwrote:

 sync wrote:
  The contents of  /etc/exports on the server is the following :
 
  /home/test   192.168.7.67(rw)
 
  Is there anything error ?

 I assume you have run something 'export -avr' since changing this file -
 or restarted the nfs server processes on the server?

 You could try changing that line to:

 /home/test  *(rw)

 then re-run 'export -avr' and try the mount again


Yeah ~
 When I change that line in the /etc/exports on the guest system which
installed the NFS server  like that :
/home/test  *(rw)

then I run the mount -t nfs 192.168.56.101:/home/test /media on the host
system  , it will be ok ~

But when I change these message:
/home/test  192.167.7.67(rw)

The result is not ok ~

So what is the problem with it ?


 James Pearson
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] NFS mount problem

2010-04-26 Thread Dan Irwin
 

But when I change these message:
/home/test  192.167.7.67(rw)

The result is not ok ~

So what is the problem with it ? 
 
  

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] NFS mount problem

2010-04-26 Thread Dan Irwin
   But when I change these message:
   /home/test  192.167.7.67(rw)

   The result is not ok ~

   So what is the problem with it ?

 Perhaps you need to specify a netmask:
 
/home/test 192.167.7.67/255.255.255.0(rw)
 
 
Appologies in advance for the html post. Bloody outlook.
 
Regards,
 
Dan 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] NFS mount problem

2010-04-26 Thread JohnS

On Tue, 2010-04-27 at 13:23 +1000, Dan Irwin wrote:
  
 Appologies in advance for the html post. Bloody outlook.
  
 Regards,
  
 Dan 
---
Dan can you can the Blue Test Please?

John

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] NFS mount problem

2010-04-26 Thread Dan Irwin

Dan can you can the Blue Test Please?


Hey I did appologise! We do use that feature of outlook internally, and
if I reply to a html post, outlook will do that by default.

I already know the fix - To use my gmail account instead of my work
email account for this mailing list.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] NFS mount problem

2010-04-26 Thread sync
On Tue, Apr 27, 2010 at 11:23 AM, Dan Irwin d...@jackies.com.au wrote:

 But when I change these message:
/home/test  192.167.7.67(rw)

The result is not ok ~

So what is the problem with it ?

  Perhaps you need to specify a netmask:

 /home/test 
 192.167.7.67/255.255.255.0(rw)http://192.167.7.67/255.255.255.0%28rw%29


 Appologies in advance for the html post. Bloody outlook.

Thanks  for you reply ~

I tried that you suggested ,but the result is the same as I said .
Perhaps it is the iptables problem, and I am doing with it  now ~


 Regards,

 Dan

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] NFS mount problem

2010-04-26 Thread sync
On Tue, Apr 27, 2010 at 11:23 AM, Dan Irwin d...@jackies.com.au wrote:

 But when I change these message:
/home/test  192.167.7.67(rw)

The result is not ok ~

So what is the problem with it ?

  Perhaps you need to specify a netmask:

 /home/test 
 192.167.7.67/255.255.255.0(rw)http://192.167.7.67/255.255.255.0%28rw%29


Haha ~
I solved it just now. And the solution is the following :

1. Modify the /etc/exports file and add these:
/home/test   192.168.56.0/24(rw)
/home/test192.168.7.0/24(rw)

2. In the host system , then run the following commands:
/etc/init.d/portmap start
mount -t nfs 192.158.56.101:/home/test  /media

And the result is ok ~





 Appologies in advance for the html post. Bloody outlook.

 Regards,

 Dan

 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] NFS mount problem

2010-04-25 Thread onay
On Mon, Apr 26, 2010 at 10:15 AM, sync jian...@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 guest
 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 system
 ip address is 192.168.7.67

 When I mount the directory from the guest system via NFS, the result is the
 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 continue
 my efforts.

 Thanks in advance,,,

 ___
 CentOS mailing list
 CentOS@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.


CMIIW.

-- 
If knowledge belong to the world,
why don't you give me some?
--
  http://dudulz.wordpress.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] NFS mount problem

2010-04-25 Thread sync
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 :

r...@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
server,

iptables -A INPUT  -i eth0  tcp -s 192.168.7.67  --dport 111 -j ACCEPT


Then :
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
denied

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.sant...@gmail.com wrote:

 On Mon, Apr 26, 2010 at 10:15 AM, sync jian...@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
 guest
  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
 system
  ip address is 192.168.7.67
 
  When I mount the directory from the guest system via NFS, the result is
 the
  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
 continue
  my efforts.
 
  Thanks in advance,,,
 
  ___
  CentOS mailing list
  CentOS@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.


 CMIIW.

 --
 If knowledge belong to the world,
 why don't you give me some?
 --
  http://dudulz.wordpress.com
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos