Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Mar 2023 12:20:47 +0300
From:      Dmitry Chagin <dchagin@freebsd.org>
To:        Goran =?utf-8?B?TWVracSH?= <meka@tilda.center>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Kernel panic on jail start
Message-ID:  <ZCal70NXEMzLG9je@heemeyer.club>
In-Reply-To: <20230330170828.442jpwilq3q47lis@tilda.center>
References:  <20230330170828.442jpwilq3q47lis@tilda.center>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 30, 2023 at 07:08:28PM +0200, Goran Mekić wrote:
> Hello,
> 
> I get the kernel panic when starting jail. With git bisect I found out
> the offending commit is 0b56641cfcda30d06243223f37781ccc18455bef. After
> reverting it, everything is back to normal. For completeness, this is my
> jail.conf:
> 
> network {
>   $id = 1;
>   $base = /var/jails;
>   persist;
>   vnet;
>   path = "${base}/${name}";
>   mount.devfs;
>   host.domainname = "example.com";
>   host.hostname = "${name}.${host.domainname}";
>   vnet.interface = "epair${id}b";
>   devfs_ruleset = 8;
>   allow.raw_sockets;
> 
>   mount += "/var/run/reggae ${path}/var/run/reggae nullfs ro 0 0";
> 
>   exec.prepare  = "[ ! -e ${path}/var/run/reggae ] && mkdir ${path}/var/run/reggae || true";
>   exec.prepare += "ifconfig epair${id}a && ifconfig epair${id}a destroy || true";
>   exec.prestart  = "ifconfig epair${id} create up group $(echo ${name} | cut -b 1-15) || (ifconfig epair${id}a destroy && false)";
>   exec.prestart += "ifconfig jails addm epair${id}a";
>   exec.start  = "echo ifconfig_${vnet.interface}_name=\\"eth0\\" >/etc/rc.conf.d/network";

ah, I see where the problem is,				^^^^^^^^
until its fixed you can try to set compat.linux.use_real_ifnames to 1, or
s/eth0/to some oyhe if name/

>   exec.start += "/bin/sh /etc/rc";
>   exec.stop = "/bin/sh /etc/rc.shutdown";
>   exec.poststop = "ifconfig epair${id}a destroy";
>   exec.clean;
>   exec.consolelog = "/var/log/jails/${host.hostname}";
> }
> 
> The jail root is created with bsdinstall disinstall/distfetch and
> 14-CURRENT.
> 
> Regards,
> meka





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