[Bug 286179] Passing a vlan interface to a vnet jail result in a stuck dying state
| Newsgroups | gmane.os.freebsd.devel.net |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286179 Peter Ganzhorn <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #12 from Peter Ganzhorn <[email protected]> --- I think I am also affected by this bug and would like to share my observations and thoughts. My jail configuration file is very similar to Florian Millet's and I observe my vnet-enabled jails root path (zfs dataset) won't unmount after stopping the jail as well as the vnet network interface not being returned to the host. In my case I am not using a vlan interface, but a sr-iov subdevice of an Intel XXV710-DA2 (iavf). However if I use a 'real' network interface (I have a spare Intel i210 which I used for testing) and just use the igb instead of the iavf interface, the jail stops as expected, i.e. the root path can be unmounted and the igb interface is returned to the host. If it matters, I am running a AMD Ryzen 5700x on an AsRock X570 plus a Intel X710-XXVDA2 nic. Additionally I have a bhyve instance running on the host that also uses sr-iov iavf devices passed through. (There is also an open bug #273372 report about issues with concurrent use of jails and bhyve with sr-iov that I seem to be not affected of, but I wanted to mention it for the sake of completeness) For testing purposes I temporarily disabled the passthrough and did not start bhyve, which had no impact on the behavior of the jail regarding iavf vs igb interfaces. The iavf interfaces fail to be returned to the host after stopping the jail, the igb interface is returned as expected. Since the iavf interfaces are virtual interfaces just like the vlan interfaces Florian Millet uses, my best uneducated guess is that virtual network interfaces behave differently than real interfaces when vnet-enabled jails are stopped. Since I have absolutely no knowledge about how vnet jails are implemented nor where to look for that in the sources, I would like to as the following questions as food for further thoughts on this. Does the process of terminating a vnet-enabled jail involve resetting the network interface before returning it to the host? If that is true, is it possible that this process fails, hangs or returns differently for virtual interfaces (like vlan or sr-iov interfaces) and real interfaces? -- You are receiving this mail because: You are on the CC list for the bug.