FreeBSD Jails

From Wiki³
Revision as of 12:18, 1 February 2012 by Kyau (talk | contribs) (Created page with "{{DISPLAYTITLE:FreeBSD Jails}} <pre><nowiki> :: install a jail cd /usr/src buildjail installjail /usr/jail/10_dev/ sudo /etc/rc.d/jail restart :: upgrade a jail cd /usr/src b...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
:: 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'