jail

0 visningar
Hoppa till det första olästa meddelandet

Igor

oläst,
24 maj 2006 04:06:292006-05-24
till
Hello, All!

в /etc/rc.conf
ifconfig_rl0="inet 10.10.0.1 netmask 255.255.255.0"
ifconfig_rl0_alias0="inet 10.10.0.2 netmask 255.255.255.255"

jail_ns_hostname="probe"
jail_ns_ip="10.10.0.2"
jail_ns_rootdir="/jail/probe"
jail_ns_procfs_enable="YES"

# /etc/rc.d/jail start probe
Configuring jails:.
Starting jails:ifconfig: interface alias does not exist
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


# /etc/rc.d/jail stop probe
Stopping jails: probe ifconfig: illegal option -- i
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
usage: ifconfig [-L] [-C] interface address_family [address [dest_address]]
[parameters]
ifconfig interface create
ifconfig -a [-L] [-C] [-d] [-m] [-u] [-v] [address_family]
ifconfig -l [-d] [-u] [address_family]
ifconfig [-L] [-C] [-d] [-m] [-u] [-v]

# jail /jail/probe probe 10.10.0.2 /bin/sh /etc/rc
ps: empty file: Invalid argument
~~~~~~~~~~~~~~~~~~~~~
Loading configuration files.
probe
Setting hostname: probe.
Creating and/or trimming log files:.
Starting syslogd.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout
Starting local daemons:.
Updating motd.
Starting sshd.
Starting cron.
Local package initialization:.
ps: empty file: Invalid argument
~~~~~~~~~~~~~~~~~~~~~

Как побороть. Что недонастроил?

With best regards, Igor.


sergey belov

oläst,
24 maj 2006 03:41:182006-05-24
till
hi, Igor!

24 May 06 12:06, you wrote to All:

I> From: "Igor" <tr...@duma.bryansk.ru>

I> Hello, All!

I> в /etc/rc.conf
I> ifconfig_rl0="inet 10.10.0.1 netmask 255.255.255.0"
I> ifconfig_rl0_alias0="inet 10.10.0.2 netmask 255.255.255.255"

I> jail_ns_hostname="probe"
I> jail_ns_ip="10.10.0.2"
I> jail_ns_rootdir="/jail/probe"
I> jail_ns_procfs_enable="YES"

devfs где?

devd_enable="YES"
sysvipc_allow="YES"

#############[ JAILS ]###############

jail_enable="YES"
jail_list="master slave"
jail_set_hostname_allow="NO"
jail_socket_unixiproute_only="YES"

jail_master_rootdir="/usr/jails/mysql-master"
jail_master_hostname="master.bla.ru"
jail_master_ip="172.16.0.111"
jail_master_exec_start="/bin/sh /etc/rc"
jail_master_devfs_enable="YES"
jail_master_devfs_ruleset="devfsrules_jail"

jail_slave_rootdir="/usr/jails/mysql-slave"
jail_slave_hostname="slave.bla.ru"
jail_slave_ip="172.16.0.222"
jail_slave_exec_start="/bin/sh /etc/rc"
jail_slave_devfs_enable="YES"
jail_slave_devfs_ruleset="devfsrules_jail"

#############[ JAILS ]###############

sergey belov

oläst,
24 maj 2006 03:41:182006-05-24
till

Igor

oläst,
24 maj 2006 06:40:042006-05-24
till
Hello, sergey!
You wrote to Igor on Wed, 24 May 2006 11:41:18 +0400:

sb> jail_master_devfs_enable="YES"
sb> jail_master_devfs_ruleset="devfsrules_jail"

В /etc/rc.d/jail по ходу дела надо ещё вот эту правочку внести:

@@ -164,7 +164,7 @@
echo -n " [${jail_hostname} already running
(/var/run/jail_${_jail}.id exists)]"
continue;
fi
- if [ -n ${jail_interface} ]; then
+ if [ -n "${jail_interface}" ]; then
ifconfig ${jail_interface} alias ${jail_ip} netmask
255.255.255.255
fi
if checkyesno jail_mount; then
@@ -239,7 +239,7 @@
jail_umount_fs
echo -n " $jail_hostname"
fi
- if [ -n ${jail_interface} ]; then
+ if [ -n "${jail_interface}" ]; then
ifconfig ${jail_interface} -alias ${jail_ip}
fi
rm /var/run/jail_${_jail}.id

With best regards, Igor.


Svara alla
Svara författaren
Vidarebefordra
0 nya meddelanden