Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Dec 2013 10:34:23 GMT
From:      Stan <sandel@ukr.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/184719: Starting jails: cannot start jail "domain_com":
Message-ID:  <201312121034.rBCAYNmf067406@oldred.freebsd.org>
Resent-Message-ID: <201312121040.rBCAe0sj004915@freefall.freebsd.org>

index | next in thread | raw e-mail


>Number:         184719
>Category:       misc
>Synopsis:       Starting jails: cannot start jail "domain_com":
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 12 10:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Stan
>Release:        8.4-RELEASE-p6
>Organization:
na
>Environment:
FreeBSD dream.animeradio.su 8.4-RELEASE-p6 FreeBSD 8.4-RELEASE-p6 #0 r259238: Thu Dec 12 04:06:08 MSK 2013     root@dream.animeradio.su:/usr/obj/usr/src/sys/DREAM  amd64
>Description:
https://forums.freebsd.org/viewtopic.php?f=3&t=43779&p=243479


>How-To-Repeat:
Rebuild kernel without IPv6 support

..
options         PREEMPTION              # Enable kernel thread preemption
options         INET                    # InterNETworking
#options        INET6                   # IPv6 communications protocols
#options        SCTP                    # Stream Control Transmission Protocol
options         FFS                     # Berkeley Fast Filesyste
..

installkernel && installworld
---
sh /etc/rc.d/jail onestart domain_com

And you will get:
jail: unknown parameter: ip6.addr



>Fix:
Templorary fix:

***************
*** 647,653 ****
                done

                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

                if [ "$?" -eq 0 ] ; then
                        _jail_id=$(head -1 ${_tmp_jail})
--- 647,653 ----
                done

                eval ${_setfib} jail -n ${_jail} ${_flags} -i -c path=${_rootdir} host.hostname=${_hostname} \
!                       ip4.addr=\"${_addrl}\" ${_parameters} command=${_exec_start} > ${_tmp_jail} 2>&1

                if [ "$?" -eq 0 ] ; then
                        _jail_id=$(head -1 ${_tmp_jail})


This section of code doesn't checking version of IP protocol

>Release-Note:
>Audit-Trail:
>Unformatted:


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312121034.rBCAYNmf067406>