Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Oct 2003 07:08:42 -0800 (PST)
From:      Prashant Sarma <prash_sarma@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   Unable to start NFS server from FreeBSD Jail environment.
Message-ID:  <20031031150842.83258.qmail@web11702.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help

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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031031150842.83258.qmail>