Am Mittwoch, 13. September 2006 20:33 schrieb Herbert Poetzl:
> On Wed, Sep 13, 2006 at 10:22:21AM +0200, Wilhelm Meier wrote:
> > Hi,
> >
> > I googled for a while but I didn't find a solution for nfs-mounting
> > inside the guest from a remote nfs-server.
> >
> > I had to export the dirs on the nfs-server to the guest AND to the
> > host (why?). After that the host answers to the mount request.
>
> as usual, what tools, what host/guest distro?
In the previous posting I forgot to include this as info (guest vs01 has ctxid
1001):
gs ~ # cat /proc/virtual/1001/status
UseCnt: 20
Tasks: 6
Flags: 0000000402020110
BCaps: 00000000344c04ff
CCaps: 0000000000070101
>
> > I gave the guest ccap secure_mount AND binary_mount. But a
> >
> > mount 192.168.39.1:/home /home -o nolock,tcp
> >
> > gives a "permission denied".
>
> should be sufficient with recent kernels to do an nfs mount
> if the portmapper is reachable and working as expected
>
> > If I add CAP_SYS_ADMIN to bcap, it works fine. But that's not what I
> > want.
>
> that's at least interesting, but could be an already fixed
> bug in older kernels
>
> > If I setup fstab.remote, it works (well, I don't know why!). What is
> > the difference?
>
> main difference is that the fstab.remote is executed on the
> host but within the network context, which solves certain
> issues you see, like requiring host and guest ip to be allowed
>
> > I'm using 2.6.17-vs2.1.1-rc26-gentoo.
> >
> > Any ideas?
>
> well, let's do an strace of the actual mount, to see where
> it fails, and check with rpcinfo and showmounts
>
> HTH,
> Herbert
>
> > --
> > Wilhelm
> > _______________________________________________
> > Vserver mailing list
> > Vserver@list.linux-vserver.org
> > http://list.linux-vserver.org/mailman/listinfo/vserver
-- Wilhelm Meier email: wilhelm.meier@fh-kl.de _______________________________________________ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserverReceived on Thu Sep 14 06:45:08 2006