Jail setup

From wikinotes

Overview

There are generally two styles of jails.

  • Thin jails share a base install with other jails (to decrease their size)
  • Thick jails are entirely independent (you can for example freebsd-upgrade within a thick jail)

Configuration:

  • jails are defined in /etc/jail.conf
  • jails can have their own fstabs
  • jails that start with system are defined in /etc/rc.conf


Notes:

Thick jails are generally less problematic than thin jails.
(ex: you easily can copy/test freebsd-upgrade within a thick jail)
An empty thick jail is 2G (quite small). Consider that carefully before deciding to create a thin jail.

Notes

Thick Jails
freebsd jail setup: thick jail
Thin Jails
freebsd jail setup: base jail
freebsd jail setup: thin jail
Misc
freebsd jail setup: networking
freebsd jail setup: deleting jails