Making multiple jails

c0ldbyte c0ldbyte at myrealbox.com
Mon Apr 18 05:59:00 PDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 17 Apr 2005, Franklin Chef(news) wrote:

> Matt wrote:
>
>> I'd like to create five jails on one machine.  Is it possible to make them 
>> all at the same time?  I'm only familiary with creating them individually 
>> (DESTDIR=/foo/bar).  Thanks much.
>> 
> No problem, you can run multiple jail at the same time. All you have to do is 
> to create different jail directories and edit rc.conf like this:
>
> jail_enable="YES"
> jail_list="jail1 jail2 jail3"
>
> jail_jail1_hostname="jail1.jail.org"
> jail_jail1_ip="192.168.4.100"
> ....
>
> jail_jail2_hostname="jail2.jail.org"
> jail_jail2_ip="192.168.4.101"
> ....
>
> jail_jail3_hostname="jail3.jail.org"
> jail_jail3_ip="192.168.4.102"
> ....


I believe he is asking if it is possible to create them at the same time
not really run them at the same time. But that is good information for
him to know as well anyhow. But the only way to go about that is to do
the (make world DESTDIR=/path/to/jail#) for each jail that you need. Now
after the first initial build of world, if you didnt do a (make clean)
then you should beable to just (make installworld DESTDIR=/path/to/jail#)
and the new jail will apear there with the specified parameters that you
fed DESTDIR.

Hope this all helped you on your quest for knowledge.
 						--c0ldbyte

- -- 
( When in doubt, use brute force. -- Ken Thompson 1998 )
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)
Comment: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xF7DF979F
Comment: Fingerprint = D1DC 0AA4 1C4E EAD4 24EB  7E77 B261 50BA F7DF 979F

iD8DBQFCY68RsmFQuvffl58RAhnMAJ93XIg2Aw/NMxq0x6x4DJ+IGHTN0gCfYoJP
EhVUzcXW/x6mDksaTVLE5Mg=
=VpNt
-----END PGP SIGNATURE-----


More information about the freebsd-hackers mailing list