[Bug 286179] Passing a vlan interface to a vnet jail result in a stuck dying state

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 25 Mar 2026 18:10:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286179

--- Comment #6 from florian.millet@laposte.net ---
Sure, here it is :

vl2 {
    exec.start = "/bin/sh /etc/rc";
    exec.stop = "/bin/sh /etc/rc.shutdown jail";
    exec.clean;
    host.hostname = "${name}";
    securelevel = "2";
    allow.mlock = "1";
    allow.mount = "1";
    allow.mount.fdescfs = "1";
    allow.mount.zfs = "1";
    allow.nfsd = "1";
    allow.raw_sockets = "1";
    allow.reserved_ports = "1";
    devfs_ruleset = "5";
    enforce_statfs = "1";
    mount.devfs;
    mount.fdescfs;
    mount.procfs;
    zfs.mount_snapshot = "1";
    vnet;
    vnet.interface += "vlan124";
    exec.consolelog = "/var/log/appjail/console_${name}.log";
    exec.created += "zfs jail ${name} zdata/jails-data/${name}";
    exec.prestop += "zfs unjail ${name} zdata/jails-data/${name}";
    exec.prestart += "ifconfig vlan124 create vlan 124 vlandev lagg0";
    exec.prestart += "ifconfig vlan124 description \"VNET vlan interface for
jail ${name}\"";
    exec.created += "appjail limits on ${name}";
    exec.poststop += "appjail limits off ${name}";
    mount.fstab = "/appjail/jails/vl2/conf/fstab";
    path = "/appjail/jails/vl2/jail";
}

Also I tried to destroy the vlan interface inside the jail before stopping it,
it worked (with a simple ifocnfig vlan124 destroy) and the interface was no
longer visible inside the jail but it still left the jail in a dying state
after stopping it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.