FreeBSD Jails

From Wiki³
Revision as of 12:29, 1 February 2012 by Kyau (talk | contribs)


IconUNDER CONSTRUCTION: The document is currently being modified!
:: install a jail
cd /usr/src
buildjail
installjail /usr/jail/10_dev/
sudo /etc/rc.d/jail restart

:: upgrade a jail
cd /usr/src
buildjail
sudo mergemaster -piU -D /usr/jail/10_dev/
installjail /usr/jail/10_dev/
sudo mergemaster -iU -D /usr/jail/10_dev/
sudo /etc/rc.d/jail restart

## .cshrc aliases ##
alias buildjail         '/usr/bin/time -a -h -o ~/buildjail.benchmark make buildworld SRCCONF=/home/k/dotfiles/etc/jail-src.conf'
alias installjail       'sudo make installworld DESTDIR=\!:1 SRCCONF=/home/k/dotfiles/etc/jail-src.conf'