Re: Kernel panic on jail start
On Tue, Apr 04, 2023 at 02:31:20AM +0200, Goran Mekić wrote: > > > > > 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/ > > > > > > You are correct, that was the problem. Sorry for long delay, but I'm not > > > the only user of this machine, swap is too little for core dump, I > > > couldn't > > > make dumping to ZVOL work nor using USB key as a swap device. I don't > > > know what I'm doing wrong with the code dumps as it works like a charm > > > on a laptop. Thank you for looking into this. > > > > > > > Hi, could you please try 7ae0972c7b ? > > Hello, > > I confirm it works on my machine. Thank you very much for working on > this with little info I could provide! Thank you! > > Regards, > meka
Re: Kernel panic on jail start
> > > > 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/ > > > > You are correct, that was the problem. Sorry for long delay, but I'm not > > the only user of this machine, swap is too little for core dump, I couldn't > > make dumping to ZVOL work nor using USB key as a swap device. I don't > > know what I'm doing wrong with the code dumps as it works like a charm > > on a laptop. Thank you for looking into this. > > > > Hi, could you please try 7ae0972c7b ? Hello, I confirm it works on my machine. Thank you very much for working on this with little info I could provide! Regards, meka signature.asc Description: PGP signature
Re: Kernel panic on jail start
On Mon, Apr 03, 2023 at 02:08:09PM +0200, Goran Mekić wrote: > On Fri, Mar 31, 2023 at 12:20:47PM +0300, Dmitry Chagin wrote: > > On Thu, Mar 30, 2023 at 07:08:28PM +0200, Goran Mekić wrote: > > > 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/ > > You are correct, that was the problem. Sorry for long delay, but I'm not > the only user of this machine, swap is too little for core dump, I couldn't > make dumping to ZVOL work nor using USB key as a swap device. I don't > know what I'm doing wrong with the code dumps as it works like a charm > on a laptop. Thank you for looking into this. > Hi, could you please try 7ae0972c7b ? > Regards, > meka
Re: Kernel panic on jail start
On Fri, Mar 31, 2023 at 12:20:47PM +0300, Dmitry Chagin wrote: > On Thu, Mar 30, 2023 at 07:08:28PM +0200, Goran Mekić wrote: > > 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/ You are correct, that was the problem. Sorry for long delay, but I'm not the only user of this machine, swap is too little for core dump, I couldn't make dumping to ZVOL work nor using USB key as a swap device. I don't know what I'm doing wrong with the code dumps as it works like a charm on a laptop. Thank you for looking into this. Regards, meka signature.asc Description: PGP signature
Re: Kernel panic on jail start
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
Re: Kernel panic on jail start
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: > it would be better to see backtrace at least, thanks > 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"; > 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