jails

Patrick Hess patrickhess at gmx.net
Mon Jun 8 21:46:41 UTC 2015


Frank Leonhardt wrote:
> In reality you can just copy all the files from a working FreeBSD 
> installation in to the directory of your choice, call it an jail and
> it  will probably run quite happily, assuming its binary compatible.
> This is fantastically useful.

Indeed, that's also one of my favorite features of jails. Just take 
anything that even remotely looks like a base system, make a copy of it,
and there's your brand new jail.

I usually grab myself a base.txz, like those really fresh ones you can 
find on ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/ that still have 
that nice new car smell to them, extract it to a new directory, and then 
create a few basic configuration files (rc.conf, resolv.conf, etc.). 
That's really all there is to it.

But there's definitely more than one way to do it, that's the beauty.
Just pick the method you feel most comfortable with.

Patrick


More information about the freebsd-questions mailing list