Re: Kernel panic on jail start
- Reply: Goran Mekić : "Re: Kernel panic on jail start"
- In reply to: Goran Mekić : "Kernel panic on jail start"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 31 Mar 2023 09:20:47 UTC
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