From nobody Fri Mar 31 09:20:47 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Pnvsb5f3pz42CDY for ; Fri, 31 Mar 2023 09:20:51 +0000 (UTC) (envelope-from dchagin@heemeyer.club) Received: from heemeyer.club (heemeyer.club [195.93.173.158]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Pnvsb1gXVz4QKd for ; Fri, 31 Mar 2023 09:20:50 +0000 (UTC) (envelope-from dchagin@heemeyer.club) Authentication-Results: mx1.freebsd.org; none Received: from heemeyer.club (localhost [127.0.0.1]) by heemeyer.club (8.17.1/8.16.1) with ESMTP id 32V9KljR094999; Fri, 31 Mar 2023 12:20:47 +0300 (MSK) (envelope-from dchagin@heemeyer.club) Received: (from dchagin@localhost) by heemeyer.club (8.17.1/8.16.1/Submit) id 32V9Klam094998; Fri, 31 Mar 2023 12:20:47 +0300 (MSK) (envelope-from dchagin) Date: Fri, 31 Mar 2023 12:20:47 +0300 From: Dmitry Chagin To: Goran =?utf-8?B?TWVracSH?= Cc: freebsd-current@freebsd.org Subject: Re: Kernel panic on jail start Message-ID: References: <20230330170828.442jpwilq3q47lis@tilda.center> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230330170828.442jpwilq3q47lis@tilda.center> X-Rspamd-Queue-Id: 4Pnvsb1gXVz4QKd X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:61400, ipnet:195.93.173.0/24, country:RU] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N 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