FreeBSD Jails: Difference between revisions
From DWIKI
m (→Documentation) |
m (→Documentation) |
||
Line 1: | Line 1: | ||
==Documentation== | ==Documentation== | ||
JAIL=/jails/jail1 | |||
mkdir $ | mkdir $JAIL | ||
cd /usr/src | cd /usr/src | ||
DESTDIR=$ | DESTDIR=$JAIL make installworld | ||
DESTDIR=$JAIL make distribution | |||
Set up /etc/fstab to mount ports in your jail: | |||
/usr/ports /jails/jail1/usr/ports nullfs ro,auto 0 0 | |||
Set up /jails/jail1/etc/make.conf for ports: | |||
WRKDIRPREFIX=/var/wrkdir | |||
DISTFILES=/var/distfiles | |||
===Links=== | ===Links=== |
Revision as of 09:33, 30 August 2010
Documentation
JAIL=/jails/jail1 mkdir $JAIL cd /usr/src DESTDIR=$JAIL make installworld DESTDIR=$JAIL make distribution
Set up /etc/fstab to mount ports in your jail:
/usr/ports /jails/jail1/usr/ports nullfs ro,auto 0 0
Set up /jails/jail1/etc/make.conf for ports:
WRKDIRPREFIX=/var/wrkdir DISTFILES=/var/distfiles
Links
FAQ
ln: /dev/log: Operation not permitted
How to see which jails are active?
jls
(dis) allow icmp
sysctl security.jail.allow_raw_sockets
enter a jail
Get the JID of the jail to enter
jls
Then enter jail 2 with your shell of choice
jexec 2 csh
# For PostgreSQL #http://www.freebsddiary.org/jail-multiple.php jail_sysvipc_allow="YES"
non-existent system call invoked
compat options? COMPAT_* in kernel?
jls shows stopped jail
something is still in use.
Notes
sysinstall _ftpPath=ftp://ftp.FreeBSD.org/pub/FreeBSD/ nonInteractive=yes mediaSetFTP
releaseName=7.1-RELEASE dists=base distSetCustom installRoot=<JAILDIR> installCommit