ezjail
Table of contents
Homepage
This is the author's official homepage:http://erdgeist.org/arts/software/ezjail/
Updating basejail from new world
After installing world on the base FreeBSD system, you want to update the basejail, too:ezjail-admin update -i
Adding a new jail
ezjail-admin create -f default [-r jail root] [jail name/hostname] [ip address]
Fields
Name in fs: give this something close to the jail name/hostname for easy understanding (i.e. DOMAIN or service name)Jail name/hostname: name this after the primary use of the domain (i.e. mail/db/www.DOMAIN.TLD)
IP address: this should be self expanatory
Deleting a jail
ezjail-admin delete [jail name/hostname]
Re-adding a jail
ezjail-admin create -x -r [existing dirname in fs] [new or same jail name/hostname] [new or same ip address]
Fields
Option x: This flag means the jail is already existing, and should be re-created with the given options.Starting/stopping a jail
ezjail start|stop [jail name]
If you leave out jail name you will start/stop all jails.
Installing and updating ports (incl. portupgrade)
The dir /usr/ports is read only due to the nature of ezjail. This saves a LOT of space, so use it and embrace it ;)If your ports or portupgrade do not install/update make sure you have these 3 lines in your /etc/make.conf file:
WRKDIRPREFIX= /var/ports DISTDIR= /var/ports/distfiles PACKAGES= /var/ports/packages
