[Bug 273557] Regression preventing bhyve from running inside a jail without IP after f74147e26999838e03a522bf59ea33bef470d356) breaks support for jailing bhyve with IPv4 and IPv6 disabled. Patch included.

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 07 Sep 2023 14:33:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273557

--- Comment #3 from Bjoern A. Zeeb <bz@FreeBSD.org> ---
The patch seems to work more by accident because the kernel side adds an IFF_UP
and IFF_UP is in the TUN_VMIO_FLAG_MASK set:
{{{
               case VMIO_SIOCSIFFLAGS: /* VMware/VMnet SIOCSIFFLAGS */
                        iflags = *(int *)data;
                        iflags &= TUN_VMIO_FLAG_MASK;
                        iflags &= ~IFF_CANTCHANGE;
                        iflags |= IFF_UP;
}}}

What's the actual error you get?  "Could open socket"?

I think the real solution is to make the code "advisory" and not to error out
in case it cannot UP the interface in that case?

-- 
You are receiving this mail because:
You are the assignee for the bug.