ezjail - A jail administration framework
2009-05-13 15:18:37来源:未知 阅读 ()
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
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
- Freebsd oracle 10g 2009-05-13
- KDE/FreeBSD 测试 QT-4.5.1. 2009-05-13
- OpenBSD 4.5下安装Gnome 2.24成功! 2009-05-13
- OpenBSD 4.5 2009-05-13
- DragonFly BSD 2.2.1发布 2009-05-13
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash