Create a Jail

Create a Jail
Replace with the Name of your Jail

Create ZFS Pool
zfs create zfs0/ zfs set mountpoint=/export/jails/ zfs0/ zfs mount -a
 * Create a new zfs pool
 * Set the mountpoint option for the new zfs pool
 * Mount the new Pool

If You're not using ZFS, creat a new Folder
mkdir /export/jails/

Install the Jail
cd /export/jails/ bsdinstall jail /
 * Follow the steps on the screen until the installation is finished

/etc/jail.conf
vi /etc/jail.conf {        host.hostname = " .hateotu.de"; ip4.addr = ; } allow.raw_sockets = 0; exec.clean; exec.system_user = "root"; exec.jail_user = "root"; exec.start += "/bin/sh /etc/rc"; exec.stop = "/bin/sh /etc/rc.shutdown"; exec.consolelog = "/var/log/jail_${name}_console.log"; interface="bge0"; mount.devfs; mount.fstab = "/etc/fstab.$name"; allow.mount; allow.set_hostname = 0; allow.sysvipc = 0; path = "/export/jails/${name}"; {        host.hostname = " .hateotu.de"; ip4.addr = ; } {        host.hostname = " .hateotu.de"; ip4.addr = ; = }
 * If there are already Jails installed at the host, create a new section for your Jail at the End of the file
 * If there are no Jails installed, and so, the file is empty, paste the following content into the file
 * If the Jail needs special options to be set, you should enter them into the section of the Jail under the IP Adress:

Get things ready
touch /etc/fstab.
 * Create a fstab file for the Jail

Work with the Jail
service jail start service jail stop service jail restart jexec
 * To start the Jail, type
 * To stop the Jail, type
 * To restart the Jail, type
 * To open a shell on your Jail, type: