Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Aug 2020 20:19:05 +0200
From:      Peter Libassi <peter@libassi.se>
To:        Ronald Klop <ronald-lists@klop.ws>
Cc:        freebsd-current@freebsd.org
Subject:   Re: vnet/jail crashdump
Message-ID:  <0D73201E-8956-4085-81E0-C50FA96C6657@libassi.se>
In-Reply-To: <op.0osa6w1ckndu52@sjakie>
References:  <op.0osa6w1ckndu52@sjakie>

next in thread | previous in thread | raw e-mail | index | archive | help
Looks like bug:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234985 =
<https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234985>; =
<https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234985 =
<https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234985>>; and=20
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238326 =
<https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238326>; =
<https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238326 =
<https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238326>>;

The workaround in Bug 238326 comment 7 worked for me.


/Peter

> 3 aug. 2020 kl. 19:36 skrev Ronald Klop <ronald-lists@klop.ws>:
>=20
> Hi,
>=20
> After stopping a jail I get a crashdump.
> core.txt: =
https://www.klop.ws/core_2eef39c581f90f2f0c4921e43f1998c1/core.txt.0
>=20
> Jail.conf:
> ----------
> exec.stop =3D "/bin/sh /etc/rc.shutdown";
> exec.clean;
>=20
> exec.prestart =3D "ifconfig bridge0 > /dev/null 2> /dev/null || ( =
ifconfig bridge0 create && ifconfig bridge0 addm vtnet0 && ifconfig =
bridge0 up)";
>=20
> exec.consolelog =3D "/var/log/jail_${name}_console.log";
>=20
> mount.devfs;
> path =3D "/data/jails/$name";
> host.hostname =3D "$name";
> mount.fstab =3D "/data/jails/fstab.$name";
> vnet;
> allow.mlock;
> devfs_ruleset=3D"110";
>=20
> freebsd12 {
> 	osrelease =3D 12.1-RELEASE-p4;
> 	osreldate =3D 1201000;
> 	vnet.interface =3D "epair0b";
> 	# make sure the exec.prestart has a "+=3D" as we de it in the =
global definition
> 	# when checking for the bridge
> 	exec.prestart +=3D "ifconfig epair0 create up";
> 	exec.prestart +=3D "ifconfig bridge0 addm epair0a";
> 	exec.prestart +=3D "ifconfig epair0b link 02:xxxxxx:0c";
> 	exec.start =3D "dhclient epair0b";
> 	exec.start +=3D "/bin/sh /etc/rc";
> 	exec.poststop  =3D "ifconfig bridge0 deletem epair0a";
> 	exec.poststop +=3D "ifconfig epair0a destroy";
>=20
> }
> freebsd13 {
> 	vnet.interface =3D "epair1b";
> 	# make sure the exec.prestart has a "+=3D" as we de it in the =
global definition
> 	# when checking for the bridge
> 	exec.prestart +=3D "ifconfig epair1 create up";
> 	exec.prestart +=3D "ifconfig bridge0 addm epair1a";
> 	exec.prestart +=3D "ifconfig epair1b link 02:xxxxxx:0d";
> 	exec.start =3D "dhclient epair1b";
> 	exec.start +=3D "/bin/sh /etc/rc";
> 	exec.poststop  =3D "ifconfig bridge0 deletem epair1a";
> 	exec.poststop +=3D "ifconfig epair1a destroy";
> }
> ----------
>=20
> What can I do to help debug?
>=20
> Regards,
> Ronald.
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to =
"freebsd-current-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0D73201E-8956-4085-81E0-C50FA96C6657>