Hello Falk,

I also fiddled around with that and ended up with the bind-mount solution.
I would like to see the mount from within a guest and Bertl confirmed
that is was possible, it looks like no one tested it with a current
2..6.16.x.  I used 2.1.1-rc16 on Debian Sid at the time testing. I tried
to give the guest binary mount ccaps - which *should* ot the work, but
didn't.

rgds,
Andreas

P.S. Hint: Take NFSV3 (not 4) and preferrably NFS over TCP. I dunno why,
but Bertl told me to do so.

Falk Hamann wrote:
> I want to use a nfs-share in a guest. 
> I recognise there are 3 ways.
> 
> 1. mount --bind from vserver to the guest-directory
> 2. entry in /etc/vservers/v01/fstab
> 3. mount nfs-share directly in the guest
> 
> I prefer the last one. Because the admin of the guest has the
> possibility to mount and unmount what he want.
> 
> 1. I use chbind portmap on the vserver.
> chbind --ip eth0 /etc/rc.d/portmap start
> Mount from vserver works fine.
> 
> 2. entry in /etc/vservers/*/fstab works also fine. But has the
> disadvantage that the guest-admin is not able to handle ro/rw-mounts.
> 
> 3. DOESN'T work !!!
> portmap is started without errors within guest
> 
> time mount -tnfs backup:/backup/v01 /mnt/
> mount: unknown filesystem type 'nfs'
> real    3m30.126s
> user    0m0.000s
> sys     0m0.020s
> 
> Samba-mount also failed:
> mount -tsmbfs //backup/backup/v01 /mnt/ -o username=falk
> mount error: Invalid argument
> Please refer to the smbmnt(8) manual page
> smbmnt failed: 255
> 
> vserver-log says:
> smbfs: failed to start smbiod
> 
> What is going wrong ? Any help are welcome.
> 
> Bye, Falk
> 
> 
> 
> # cat /proc/filesystems 
> ...
> nodev   nfs
> nodev   rpc_pipefs
> 
> Logfile on nfs-server says always: rpc.mountd: authenticated mount
> request
> 
> Logfile on vserver (host):
> May 29 11:45:36 vserver kernel: portmap: server localhost not
> responding, timed out May 29 11:45:36 vserver kernel: RPC: failed to
> contact portmap (errno -5). May 29 11:46:11 vserver kernel: portmap:
> server localhost not responding, timed out May 29 11:46:11 vserver
> kernel: RPC: failed to contact portmap (errno -5). May 29 11:46:46
> vserver kernel: portmap: server localhost not responding, timed out May
> 29 11:46:46 vserver kernel: RPC: failed to contact portmap (errno -5).
> May 29 11:46:46 vserver kernel: net/sunrpc/rpc_pipe.c:
> rpc_lookup_parent failed to mount pseudofilesystem May 29 11:46:46
> vserver kernel: RPC: Couldn't create pipefs entry /nfs/clnt30, error -19
> 
> # cat /etc/vservers/v01/ccapabilities
> SECURE_MOUNT
> SECURE_REMOUNT
> BINARY_MOUNT
> 
> # cat /proc/virtual/181/status
> UseCnt: 23
> Tasks:  8
> Flags:  0000000002020010
> BCaps:  00000000344c04ff
> CCaps:  0000000000070101
> 
> # cat /etc/exports
> /backup/v01     *(ro,sync,no_root_squash)
> 
> 
> # vserver-info 
> Versions:
>                    Kernel: 2.6.16.16-vs2.1.1-rc20
>                    VS-API: 0x00020101
>              util-vserver: 0.30.210; May  9 2006, 11:20:12
> 
> Features:
>                        CC: gcc, gcc (GCC) 4.0.3 (CRUX)
>                       CXX: g++, g++ (GCC) 4.0.3 (CRUX)
>                  CPPFLAGS: ''
>                    CFLAGS: '-O2 -march=i686 -pipe -std=c99 -Wall
> -pedantic -W -funit-at-a-time' CXXFLAGS: '-O2 -march=i686 -pipe -ansi
> -Wall -pedantic -W -fmessage-length=0 -funit-at-a-time' build/host:
> i686-pc-linux-gnu/i686-pc-linux-gnu Use dietlibc: yes
>        Build C++ programs: yes
>        Build C99 programs: yes
>            Available APIs: v13,net
>             ext2fs Source: e2fsprogs
>     syscall(2) invocation: alternative
>       vserver(2) syscall#: 273/glibc
> 
> Paths:
>                    prefix: /usr
>         sysconf-Directory: /etc
>             cfg-Directory: /etc/vservers
>          initrd-Directory: /etc/rc.d
>        pkgstate-Directory: /var/run/vservers
>           vserver-Rootdir: /vservers
> 
> 
> Assumed 'SYSINFO' as no other option given; try '--help' for more
> information.
> _______________________________________________
> Vserver mailing list
> [email protected]
> http://list.linux-vserver.org/mailman/listinfo/vserver
> 


-- 
Andreas John
net-lab GmbH
Luisenstrasse 30b
63067 Offenbach
Tel: +49 69 85700331

http://www.net-lab.net
_______________________________________________
Vserver mailing list
[email protected]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to