ezjail - A jail administration framework

2009-05-13 15:18:37来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折


I want to set up some jails. They will each be very similar. They will each be used to test a slightly different configuration of
Bacula
. My tool of choice is
ezjail
, available
in the ports
tree.
With ezjail, I can:

  • create a
    [url=javascript:;]jail[/url]
    flavour, upon which the creation of other jails can be based
  • centrally update the jail's ports tree

The above does not fully describe the neat things you can do with ezjail. Read below to discover more fun and interesting things.
DISCLAIMER: I installed ezjail several months ago. I am only now getting around to documenting and writing about it. I may have omitted some steps. If so, I apologize; please let me know.
While creating my jails I used the following references:


  • Jail administration framework


  • The Quick-N-Dirty Guide to ezjail in FreeBSD


  • AppserverJailsHOWTO


Installation of ezjail
First step installation:cd /usr/ports/sysutils/ezjail
make install clean
Remember to add this to /etc/rc.conf:ezjail_enable="YES"Remember to create an ezjail configuration file:cd /usr/local/etc
cp ezjail.conf.sample ezjail.conf
Create your base jail
This command creates the base jail. The base jail is the one upon which all other jails will be based. Note that this does not create a jail, it creates a base jail, one of the foundation components of your ezjail configuration.ezjail-admin update -ip
This assumes you have already done a build world and that it exists within the standard and default location: /usr/src.
After running this command you should see this:# ls /usr/jails
basejail        flavours        newjail
It also installs a copy of the ports tree into the base jail, using portsnap. I encountered this error while trying to create a new basejail. Upgrading to the latest STABLE fixed this problem.install -o
[url=javascript:;]root[/url]
-g wheel -m 444 dir-tmpl /usr/jails/fulljail/usr/share/info/dir
install:No such file or directory
Creating the IP addresses for the jails
The host system needs to have some IP addresses that will be used exclusively by the jails. That is, one IP address per jail. For ease of use, and personal sanity, I've added the following entries to my private DNS server:; jails for testing Bacula
mysql41 IN A 10.10.10.100
mysql50 IN A 10.10.10.101
mysql51 IN A 10.10.10.102
pg73    IN A 10.10.10.103

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:Find Out If My DNS Server Free From DNS Cache Pois

下一篇:apache之DSO原理