FreeBSD Jails: Difference between revisions

From DWIKI
Line 1: Line 1:
==Documentation==
==Documentation==
TARGET=/jails/jail1
mkdir $TARGET
cd /usr/src
make installworld DESTDIR=$TARGET
===Links===
*[http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-application.html Handbook about jails, just follow this :)]
*[http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-application.html Handbook about jails, just follow this :)]
*[http://www.freebsddiary.org/jail-6.php Jails]
*[http://www.freebsddiary.org/jail-6.php Jails]

Revision as of 15:48, 6 August 2010

Documentation

TARGET=/jails/jail1
mkdir $TARGET
cd /usr/src
make installworld DESTDIR=$TARGET

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


(postgresql) FATAL: could not create shared memory segment: Function not implemented

# 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