Date: Tue, 6 Nov 2012 13:14:08 +0100 From: Milan Obuch <freebsd-jail@dino.sk> To: freebsd-jail@freebsd.org Subject: Jails not starting for me after recent update (fix found) Message-ID: <20121106131408.7c6628b3@zeta.dino.sk>
next in thread | raw e-mail | index | archive | help
Hi, after updating a server to fresh 9.1-PRERELEASE jails are not starting for me. I have following in rc.conf (somewhat sanitized): jail_enable="YES" jail_list="jail1 jail2 jail3 jail4" jail_jail1_rootdir="/data/jail1" jail_jail1_hostname="jail1" jail_jail1_interface="bge0" jail_jail1_ip="IP1" jail_jail1_devfs_enable="YES" jail_jail1_procfs_enable="YES" jail_jail2_rootdir="/data/jail2" jail_jail2_hostname="jail2" jail_jail2_interface="bge0" jail_jail2_ip="IP2" jail_jail2_devfs_enable="YES" jail_jail2_procfs_enable="YES" jail_jail2_mount_enable="YES" jail_jail2_fstab="/etc/fstab.jail2" jail_jail3_rootdir="/data/jail3" jail_jail3_hostname="jail3" jail_jail3_interface="bge0" jail_jail3_ip="IP3" jail_jail3_devfs_enable="YES" jail_jail3_procfs_enable="YES" jail_jail3_mount_enable="YES" jail_jail3_fstab="/etc/fstab.jail3" jail_jail4_rootdir="/data/jail4" jail_jail4_hostname="jail4" jail_jail4_interface="bge0" jail_jail4_ip="IP4" jail_jail4_devfs_enable="YES" jail_jail4_procfs_enable="YES" jail_jail4_mount_enable="YES" jail_jail4_fstab="/etc/fstab.jail4" /etc/rc.d/jail version is # $FreeBSD: src/etc/rc.d/jail,v 1.47.2.6 2012/10/26 18:06:49 obrien Exp It worked before flawlessly, now it simply does not start, whole error message is 'cannot start jail <jailname>'. I found jail comman is not successfull, in script it is called this way: eval ${_setfib} jail -n ${_jail} ${_flags} -i -c path=${_rootdir} host.hostname=${_hostname} \ ip4.addr=\"${_addrl}\" ip6.addr=\"${_addr6l}\" ${_parameters} command=${_exec_start} > ${_tmp_jail} 2>&1 \ </dev/null In my case, I have WITHOUT_INET6=YES WITHOUT_INET6_SUPPORT=YES in /etc/src.conf, and found everything works if I erase ip6.addr=\"${_addr6l}\" from jail arg list, so it looks this way eval ${_setfib} jail -n ${_jail} ${_flags} -i -c path=${_rootdir} host.hostname=${_hostname} \ ip4.addr=\"${_addrl}\" ${_parameters} command=${_exec_start} > ${_tmp_jail} 2>&1 \ </dev/null (lines wrapped by mail program). I commented out options INET6 and SCTP from kernel configuration file, if that matters. Maybe this helps some one... Regards, Milan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121106131408.7c6628b3>