Hi,
I'm having issues with VNET on my FreeBSD 13.0-RELEASE-p11 host running on a cloud VPS.
After some other problems previously discussed in this thread, I'm now stuck with the following issue:
I have a very simple VNET jail setup (config see below) and tried to manually assign it an epair interface with the following steps:
This is where I get stuck now. The console just hangs up, the
This even keeps me from rebooting the host, so the only way to clean this up right now is to power off the host and reboot.
Here's my configuration:
/etc/rc.conf
/etc/jail.conf
I'm having issues with VNET on my FreeBSD 13.0-RELEASE-p11 host running on a cloud VPS.
After some other problems previously discussed in this thread, I'm now stuck with the following issue:
I have a very simple VNET jail setup (config see below) and tried to manually assign it an epair interface with the following steps:
Code:
~ # ifconfig bridge create
bridge0
~ # ifconfig epair create
epair0a
~ # ifconfig bridge0 addm jailether
~ # ifconfig epair0a mtu 1450
~ # ifconfig bridge0 addm epair0a
~ # ifconfig
jailether: flags=8963<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1450
options=c00b9<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO,LINKSTATE>
ether 96:00:01:37:d7:61
inet ###.###.###.### netmask 0xffffffff broadcast ###.###.###.###
media: Ethernet autoselect (10Gbase-T <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
bridge0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1450
ether 58:9c:fc:10:38:5e
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id 00:00:00:00:00:00 priority 0 ifcost 0 port 0
member: epair0a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 4 priority 128 path cost 2000
member: jailether flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 2000
groups: bridge
nd6 options=9<PERFORMNUD,IFDISABLED>
epair0a: flags=8942<BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1450
options=8<VLAN_MTU>
ether 02:0a:db:3f:dc:0a
groups: epair
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
epair0b: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 02:0a:db:3f:dc:0b
groups: epair
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
~ # ifconfig epair0b mtu 1450
~ # ifconfig epair0b vnet webserver
epair0b
interface disappears from the host but doesn't appear in the jail. I'm also not able to destroy epair0a
(console hangs up again) and when stopping the jail via service jail stop webserver
or even jail -R webserver
it's stuck as dying.This even keeps me from rebooting the host, so the only way to clean this up right now is to power off the host and reboot.
Here's my configuration:
/etc/rc.conf
Code:
## Basic network settings
hostname="xxx"
ifconfig_vtnet0_name="jailether"
ifconfig_jailether="inet a.b.c.d/32 mtu 1450 up"
defaultrouter="e.f.g.h"
static_routes="defgw"
route_defgw="-host e.f.g.h -iface jailether"
## Enable system services
pf_enable="NO"
## Enable user services
jail_enable="YES"
jail_list=""
/etc/jail.conf
Code:
exec.timeout=90;
stop.timeout=30;
host.hostname="$name";
path="/jail/jails/$name/root";
mount.fstab="/jail/jails/$name/fstab";
mount.devfs;
exec.clean;
exec.start="sh /etc/rc";
exec.stop="sh /etc/rc.shutdown";
exec.consolelog="/var/tmp/jail_$name.log";
webserver {
vnet;
devfs_ruleset=5;
}
Last edited by a moderator: