Hey hey! While back ago I did some work on some jails. I'm just curious if these settings would still work, and if possible, they could be improved somehow?
Big ups to Bjorn for his awesome work! - rc.conf: jail_enable="YES" jail_list="box1 box2" jail_box1_rootdir="/home/jails/box1" jail_box1_hostname="box1.example.net" jail_box1_ip="192.168.1.2" jail_box1_devfs_enable="YES" jail_box1_devfs_ruleset="devfsrules_jail" jail_box2_rootdir="/home/jails/box2" jail_box2_hostname="box2.example.net" jail_box2_ip="192.168.1.3" jail_box2_devfs_enable="YES" jail_box2_devfs_ruleset="devfsrules_jail" - make_jails.sh: #!/usr/bin/env zsh set -e cd /usr/src export D=/home/jails/box1 mkdir -p $D make world distribution DESTDIR=$D mount -t devfs devfs $D/dev export D=/home/jails/box2 mkdir -p $D make world distribution DESTDIR=$D mount -t devfs devfs $D/dev # /etc/rc.d/jail start box1 # /etc/rc.d/jail start box2 # jexec 1 sh # jexec 2 sh # portinstall jailutils - upgrade_jails.sh: #!/usr/bin/env zsh set -e csup /etc/cvsupfile cd /usr/src make buildworld buildkernel mergemaster -p make installworld installkernel delete-old delete-old-libs mergemaster -i -U JAILS=/usr/jails for jail in $JAILS/*; do mergemaster -p -D $jail make installworld delete-old delete-old-libs DESTDIR=$jail mergemaster -i -U -D $jail done chflags -R noschg /usr/obj/* rm -rf /usr/obj/* - Much obliged! Redd http://www.zshare.net/download/552763591f4802ce/ _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-jail To unsubscribe, send any mail to "[email protected]"
