Страница 1 из 1

ezjail и пара вопросов.

Добавлено: 2010-04-12 11:55:29
InventoR
Поставил ezjail, теперь возникают вопросы.
Хочу к примеру во все клетки сделать sshd_enable="YES"

Код: Выделить всё

в flavours создал папку default
в default сделал etc
и дальше в ezjail.conf

Код: Выделить всё

# This is the flavour used by default when setting up a new jail
ezjail_default_flavour="/usr/jails/flavours/default"
Но после создания клетки, в etc не появляется rc.conf с sshd_enable

Re: ezjail и пара вопросов.

Добавлено: 2010-04-12 12:26:51
skeletor
У меня в папке flavours есть папка example, а в ней уже папки etc, usr. А в них уже файл rc.conf с нужными параметрами.

Re: ezjail и пара вопросов.

Добавлено: 2010-04-12 12:50:14
InventoR
в файле конфигурации что написано если не тайна?

Re: ezjail и пара вопросов.

Добавлено: 2010-04-12 13:35:53
skeletor
это rc.conf

Код: Выделить всё

# Pretuned by German Engineers

# No network interfaces in jails
network_interfaces=""

# Prevent rpc
rpcbind_enable="NO"

# Prevent loads of jails doing their cron jobs at the same time
cron_flags="$cron_flags -J 15"

# Prevent syslog to open sockets
syslogd_flags="-ss"

# Prevent sendmail to try to connect to localhost
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"

# Bring up sshd, it takes some time and uses some entropy on first startup
sshd_enable="YES"

Re: ezjail и пара вопросов.

Добавлено: 2010-04-12 15:47:33
InventoR
тогда еще маленькая просьба.
что в ezjail.conf
?

Re: ezjail и пара вопросов.

Добавлено: 2010-04-12 16:21:14
skeletor

Код: Выделить всё

ezjail_jaildir=/usr/jails
ezjail_jailtemplate=${ezjail_jaildir}/newjail
ezjail_jailbase=${ezjail_jaildir}/basejail
ezjail_sourcetree=/usr/src
ezjail_ftphost=ftp.freebsd.org
ezjail_default_execute="/usr/bin/login -f root"
ezjail_default_flavour=""
ezjail_mount_enable="YES"
ezjail_devfs_enable="YES"
ezjail_devfs_ruleset="devfsrules_jail"
ezjail_procfs_enable="YES"
ezjail_fdescfs_enable="YES"

Re: ezjail и пара вопросов.

Добавлено: 2010-04-12 16:48:39
gonzo111
skeletor +1000
gonzo111 добавил skeletor.org.ua в закладки :roll:

Re: ezjail и пара вопросов.

Добавлено: 2010-04-13 9:06:01
InventoR
Возможно ли при использовании ezjail сделать для всех общей /usr/ports/distfiles ?

Re: ezjail и пара вопросов.

Добавлено: 2010-04-13 9:12:21
gonzo111
дык я так понял он и так общий и дерево портов тоже и мир и сырцы

Re: ezjail и пара вопросов.

Добавлено: 2010-04-13 9:32:32
InventoR
не общий, для скачанных исходников у каждого своя папка.
Тут попал на еще одну проблему.
Захотел убрать zabbix в клетку и как итог получил ошибку при сборке net-snmp

Код: Выделить всё

checking for getaddrinfo... yes
checking for gawk... (cached) nawk
checking for curl-config... /usr/local/bin/curl-config
checking for the version of libcurl... 7.20.0
checking for libcurl >= version 7.13.1... yes
checking for main in -lcurl... yes
checking whether libcurl is usable... yes
checking for curl_free... yes
checking for net-snmp-config... /usr/local/bin/net-snmp-config
checking for main in -lnetsnmp ... no
configure: error: Not found NET-SNMP library
===>  Script "configure" failed unexpectedly.
Please report the problem to ports@christianserving.org [maintainer] and
attach the
"/var/ports/basejail/usr/ports/net-mgmt/zabbix-server/work/zabbix-1.8.2/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. an `ls /var/db/pkg`).
*** Error code 1

Stop in /basejail/usr/ports/net-mgmt/zabbix-server.
*** Error code 1

Stop in /basejail/usr/ports/net-mgmt/zabbix-server.
Лог сборки в атаче.

Re: ezjail и пара вопросов.

Добавлено: 2010-04-13 10:57:40
x6e6564
Прописать в /etc/fstab.jail_name

Код: Выделить всё

cat /etc/fstab.x11_home_local 

/home/jails/basejail /home/jails/x11.home.local/basejail nullfs ro 0 0
/home/ftp/pub/FreeBSD/ports/amd64/packages-8-stable /home/jails/x11.home.local/var/ports/packages nullfs ro 0 0
/home/ftp/pub/FreeBSD/ports/distfiles /home/jails/x11.home.local/var/ports/distfiles nullfs rw 0 0

Код: Выделить всё

cat /home/jails/x11.home.local/etc/make.conf

WRKDIRPREFIX=           /var/ports
DISTDIR=                /var/ports/distfiles
PACKAGES=               /var/ports/packages

Re: ezjail и пара вопросов.

Добавлено: 2010-04-18 14:51:23
InventoR
Сделал все, поправил переменные.
Собрал спокойно другие пакеты.
Но при сборке zabbix-server снова вылет с ошибкой.

Код: Выделить всё

checking for gawk... (cached) nawk
checking for curl-config... /usr/local/bin/curl-config
checking for the version of libcurl... 7.20.0
checking for libcurl >= version 7.13.1... yes
checking for main in -lcurl... yes
checking whether libcurl is usable... yes
checking for curl_free... yes
checking for net-snmp-config... /usr/local/bin/net-snmp-config
checking for main in -lnetsnmp ... no
configure: error: Not found NET-SNMP library
===>  Script "configure" failed unexpectedly.
Please report the problem to ports@christianserving.org [maintainer] and
attach the
"/usr/ports/basejail/usr/ports/net-mgmt/zabbix-server/work/zabbix-1.8.2/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. an `ls /var/db/pkg`).
*** Error code 1

Stop in /basejail/usr/ports/net-mgmt/zabbix-server.
*** Error code 1

Stop in /basejail/usr/ports/net-mgmt/zabbix-server.
zabbix# exit
mount

Код: Выделить всё

jail# /usr/jails/basejail on /usr/jails/zabbix.123.ua/basejail (nullfs, local)
devfs on /usr/jails/zabbix.123.ua/dev (devfs, local, multilabel)
fdescfs on /usr/jails/zabbix.123.ua/dev/fd (fdescfs)
procfs on /usr/jails/zabbix.123.ua/proc (procfs, local)
jail#

Re: ezjail и пара вопросов.

Добавлено: 2011-11-08 20:29:48
wilful
UP


/usr/local/etc/ezjail.conf

Код: Выделить всё

ls -l /usr/jails/flavours/example/etc/resolv.conf 
-rw-r--r--  1 root  wheel  94 30 окт 15:55 /usr/jails/flavours/example/etc/resolv.conf

ezjail-admin create test 0.0.0.0 
...
2607 blocks
Warning: IP 0.0.0.0 not configured on a local interface.
Warning: Some services already seem to be listening on all IP, (including 0.0.0.0)

ls -l /usr/jails/test/etc/resolv.conf
ls: /usr/jails/test/etc/resolv.conf: No such file or directory
Похоже что сейчас с пустым значением не подхватывает с EXAMPLE