Unable to start NFS server from FreeBSD Jail environment.

From: Prashant Sarma (prash_sarma_at_yahoo.com)
Date: 10/31/03

  • Next message: Gottfried wilhelm: "x"
    Date: Fri, 31 Oct 2003 07:08:42 -0800 (PST)
    To: freebsd-questions@freebsd.org
    
    

    Hi everybody,

    I am relatively new to FreeBSD, so please pardon me
    if this question is not appropriate for this mailing
    list. My question pertains to FreeBSD jail
    environments.

    I am unable start an NFS server from within a
    FreeBSD jail. I have configured the jail environment
    to allow sshd and telnet, but I am unable to export
    file systems from the jail.

    My logs and configuration are as follows:

    /var/log/messages (Jail Environment):

    Oct 31 09:36:00 emulite2 mountd[210]: can't delete
    exports for /
    Oct 31 09:36:00 emulite2 mountd[210]: can't delete
    exports for /usr/testbed
    Oct 31 09:36:00 emulite2 mountd[210]: can't delete
    exports for /ops-jail
    Oct 31 09:36:00 emulite2 mountd[210]: can't delete
    exports for /var
    Oct 31 09:36:00 emulite2 mountd[210]: can't change
    attributes for /usr
    Oct 31 09:36:00 emulite2 mountd[210]: bad exports list
    line /usr -alldirs leaningtower
    Oct 31 09:36:00 emulite2 nfsd:[230]: nfssvc: Operation
    not permitted
    Oct 31 09:36:00 emulite2 nfsd:[231]: nfssvc: Operation
    not permitted
    Oct 31 09:36:00 emulite2 nfsd:[214]: can't Add UDP
    socket
    Oct 31 09:36:00 emulite2 nfsiod:[237]: nfssvc:
    Operation not permitted
    Oct 31 09:36:00 emulite2 nfsiod:[238]: nfssvc:
    Operation not permitted

    CONFIGURATION:

    Parent Machine: Pentium 1.5 GHz., 3Com (xl0) 10/100
    interface, FreeBSD 4.8-RELEASE

    Jail Environment: Runs on an independent hard disk,
    mounted by the Parent, has network connectivity
    (network interface is aliased from Parent's
    interface),
    successfully runs sshd.

    Here is an 'rpcinfo -p' done on the jail:

        100000 2 tcp 111 portmapper
        100000 2 udp 111 portmapper
        100005 3 udp 1008 mountd
        100005 3 tcp 1021 mountd
        100005 1 udp 1008 mountd
        100005 1 tcp 1021 mountd
        100003 2 udp 2049 nfs
        100003 3 udp 2049 nfs
        100024 1 udp 998 status
        100024 1 tcp 1020 status

    Here is the Jail's /etc/exports file:
    /usr -alldirs leaningtower

    I would would appreciate any advice/pointers in this
    regard.

    Thank you,

    Prashant

    __________________________________
    Do you Yahoo!?
    Exclusive Video Premiere - Britney Spears
    http://launch.yahoo.com/promos/britneyspears/
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Gottfried wilhelm: "x"

    Relevant Pages

    • FreeBSD 7.0-STABLE Jul 23: panic: ffs_blkfree: freeing free frag
      ... test move of a jail from a FreeBSD 6 box to the FreeBSD 7 server, ... jail with the 3GB image file and restore the data from the FreeBSD 6 box ... CPU: IntelXeonCPU 2.40GHz ... <ACPI PCI bus> on pcib0 ...
      (freebsd-stable)
    • Re: Cross platform building best practices (building 6 on 7)
      ... No dice (and I'm still debugging why since this binutils ... need to bootstrap my dev environment for 6.x development on 7.x. ... One thing we always strive for in FreeBSD is an upgrade path. ... a newer system should be able to run a jail ...
      (freebsd-hackers)
    • Re: Cross platform building best practices (building 6 on 7)
      ... I've done a lot of Googling and scouring the lists about this ... No dice (and I'm still debugging why since this binutils ... One thing we always strive for in FreeBSD is an upgrade path. ... a newer system should be able to run a jail ...
      (freebsd-hackers)
    • Re: Stop usage of "who"?
      ... As far as trying to chmod permissions on files I would recomend that you ... Jail can be a little tricky to get going but it's a nice way to limit users ... In FreeBSD *man jail* is a little funky to understand, ... Here's some info on quotas if you never seen it yet.. ...
      (FreeBSD-Security)
    • RE: freebsd-questions Digest, Vol 174, Issue 4
      ... New kernel and jail (Vladimir) ... lost password caused by drunk admin (Ghirai) ... tproxy on freebsd ...
      (freebsd-questions)