Skip to content

HOWTO: Create FreeBSD 9 node for jails and config jails

June 12, 2012

Assuming fresh FreeBSD 9.0 Release installation:

In my case I have to install sources first, so it’s done by :

#csup -g -L 2 /usr/share/examples/cvsup/standard-supfile

then:

Make your world a.k.a. buildworld and your jail and you start it!

# cd /usr/src; make buildworld

……………..

# mkdir /jails/jailname
# make installworld DESTDIR=/jail/jailname
# make distribution DESTDIR=/jails/smtp201
# mount -t devfs devfs /jails/smtp201/dev

#cat /etc/rc.conf|grep jail

jail_enable=”YES”
jail_sysvipc_allow=”YES”
jail_list=”jailname”

jail_jailname_rootdir=”/jails/jailname”
jail_jailname_hostname=”jailname”
jail_jailname_ip=”ip_address”
jail_jailname_devfs_enable=”YES”
jail_jailname_ruleset=”jailname_ruleset”

that’s all

#/etc/rc.d/jail start jailname

Advertisements

From → FreeBSD, Jails

One Comment
  1. Follow the UP-TO-DATE Post, Creating Jails under FreeBSD10.2 with little newjail-create.sh script included: http://sto.blog.remote-admins.com/2016/03/31/howto-create-freebsd-10-2-for-serving-jails-and-jails-configurations-shell-script/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: