[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ezjail] what does that one jail lock another?



On 01/14/12 08:45, Dirk Engling wrote:

I've defined some jails, but there is a strange effect that I don't
understand. I'm writting to discover my mistake. In log files I've not
found any error and hint.

Which OS version are you using?

I've experienced that on 8.2 the error appears only if I give two IP addresses to the jail: first one on loopback alias and second on external IP on re0 sharing this IP with other jails.

re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC>
        ether 14:da:e9:b8:54:bf
        inet 176.9.58.15 netmask 0xffffffe0 broadcast 176.9.58.31

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=3<RXCSUM,TXCSUM>
        inet 127.0.0.1 netmask 0xffffff00
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
        inet 127.0.0.2 netmask 0xffffffff
        inet 127.0.0.3 netmask 0xffffffff
        inet 127.0.0.4 netmask 0xffffffff
        inet 127.0.0.5 netmask 0xffffffff
        inet 127.0.0.6 netmask 0xffffffff
        inet 127.0.0.7 netmask 0xffffffff
        inet 127.0.0.8 netmask 0xffffffff
        inet 127.0.0.9 netmask 0xffffffff
        inet 127.0.0.10 netmask 0xffffffff
        inet 127.0.0.11 netmask 0xffffffff

ezjail-admin 3.2 on freebsd 8.2 seems not able to share same IP (re0) between jail.

The config that I want is:

# To specify the start up order of your ezjails, use these lines to
# create a Jail dependency tree. See rcorder(8) for more details.
#
# PROVIDE: standard_ezjail
# REQUIRE:
# BEFORE:
#

export jail_florilegio_dev_hostname="florilegio-dev"
export jail_florilegio_dev_ip="127.0.0.2,176.9.58.15"
export jail_florilegio_dev_rootdir="/tank/jails/florilegio-dev"
export jail_florilegio_dev_exec_start="/bin/sh /etc/rc"
export jail_florilegio_dev_exec_stop=""
export jail_florilegio_dev_mount_enable="YES"
export jail_florilegio_dev_devfs_enable="YES"
export jail_florilegio_dev_devfs_ruleset="devfsrules_jail"
export jail_florilegio_dev_procfs_enable="YES"
export jail_florilegio_dev_fdescfs_enable="YES"
export jail_florilegio_dev_image=""
export jail_florilegio_dev_imagetype="zfs"
export jail_florilegio_dev_attachparams=""
export jail_florilegio_dev_attachblocking=""
export jail_florilegio_dev_forceblocking=""
export jail_florilegio_dev_zfs_datasets=""
export jail_florilegio_dev_cpuset=""
export jail_florilegio_dev_fib=""

# To specify the start up order of your ezjails, use these lines to
# create a Jail dependency tree. See rcorder(8) for more details.
#
# PROVIDE: standard_ezjail
# REQUIRE:
# BEFORE:
#

export jail_florilegio_test_hostname="florilegio-test"
export jail_florilegio_test_ip="127.0.0.4,176.9.58.15"
export jail_florilegio_test_rootdir="/tank/jails/florilegio-test"
export jail_florilegio_test_exec_start="/bin/sh /etc/rc"
export jail_florilegio_test_exec_stop=""
export jail_florilegio_test_mount_enable="YES"
export jail_florilegio_test_devfs_enable="YES"
export jail_florilegio_test_devfs_ruleset="devfsrules_jail"
export jail_florilegio_test_procfs_enable="YES"
export jail_florilegio_test_fdescfs_enable="YES"
export jail_florilegio_test_image=""
export jail_florilegio_test_imagetype="zfs"
export jail_florilegio_test_attachparams=""
export jail_florilegio_test_attachblocking=""
export jail_florilegio_test_forceblocking=""
export jail_florilegio_test_zfs_datasets=""
export jail_florilegio_test_cpuset=""
export jail_florilegio_test_fib=""

But this is gives me error:

merlin# ezjail-admin start florilegio-dev
Configuring jails:.
Starting jails: cannot start jail "florilegio_dev":
.
Error: Could not start florilegio-dev.
  You need to start it by hand.

While I got any error if I have both of them on different lo0 aliases.


Best regards,          \ferz