TrueNAS network is ok, but Jail VNET + DHCP fails

sjean233

Cadet
Joined
Jan 25, 2022
Messages
1
Hi,

I'm really stumped. I'm running TrueNAS-12.0-STABLE (core)

I have a 10 GbE NIC add-in card that is correctly detected by TrueNAS Core. All services, tasks and sharing are ok.

Jails configured with VNET + DHCP + Berkeley Packet Filter report this error when starting.

Error: [EFAULT] + Acquiring DHCP address: FAILED, address received: 0.0.0.0/8 Stopped Jail-Net-Test due to DHCP failure


If I switch the jail to VNET + NAT and forward the ports used by the application, then the jail boots correctly and I can access the application.

How can I get VNET + DHCP to work with my 10 GbE NIC?
 

Usul

Cadet
Joined
Sep 22, 2022
Messages
6
Ok I have the same issue on 13 -U2 (ain't sure , the one I downloaded Two days ago). Here is what I have :
1663947364894.png


The newtwork config from truenas:
root@truenas[~]# ifconfig -a
igc0: flags=8963<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=4e123bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,WOL_MAGIC,VLAN_HWFILTER,RXCSUM_IPV6,TXCSUM_IPV6,NOMAP>
ether 6c:bf:b5:02:5b:e8
inet6 fe80::6ebf:b5ff:fe02:5be8%igc0 prefixlen 64 scopeid 0x1
inet6 2a01:e0a:abd:8a90:6ebf:b5ff:fe02:5be8 prefixlen 64
inet 192.168.0.15 netmask 0xffffff00 broadcast 192.168.0.255
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
igc1: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=4e527bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6,NOMAP>
ether 6c:bf:b5:02:5b:e9
media: Ethernet autoselect
status: no carrier
nd6 options=9<PERFORMNUD,IFDISABLED>
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 0x3
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
pflog0: flags=0<> metric 0 mtu 33160
groups: pflog
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 58:9c:fc:00:03:78
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 32768 ifcost 0 port 0
member: igc0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 20000
groups: bridge
nd6 options=9<PERFORMNUD,IFDISABLED>
vnet0.5: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
description: associated with jail: nextcloud as nic: epair0b
options=8<VLAN_MTU>
ether 6e:bf:b5:ba:b5:81
hwaddr 02:a0:66:6f:74:0a
inet 172.16.0.1 netmask 0xfffffffc broadcast 172.16.0.3
groups: epair
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active
nd6 options=9<PERFORMNUD,IFDISABLED>
root@truenas[~]#
This is what I get when I try to start the Jail:
1663947669862.png


Logs don't tell me much unless I'm not looking at the right place :
root@truenas[~]# iocage start TOR
* Starting TOR
+ Started OK
+ Using devfs_ruleset: 1001 (iocage generated default)
+ Configuring VNET OK
+ Using IP options: vnet
+ Starting services OK
+ Executing poststart OK
+ Acquiring DHCP address: FAILED, address received: ERROR, check jail logs

Stopped TOR due to DHCP failure
root@truenas[~]# cd /mnt/My\ Pool/iocage/jails/TOR/root/var/log
root@truenas[...My Pool/iocage/jails/TOR/root/var/log]# ls -ltr
total 79
-rw-r--r-- 1 root wheel 0 Sep 23 15:38 utx.lastlogin
-rw------- 1 root wheel 59 Sep 23 15:38 auth.log
-rw------- 1 root wheel 59 Sep 23 15:38 debug.log
-rw-r----- 1 root wheel 59 Sep 23 15:38 maillog
-rw-r--r-- 1 root wheel 59 Sep 23 15:38 devd.log
-rw------- 1 root wheel 59 Sep 23 15:38 security
-rw-r--r-- 1 root wheel 59 Sep 23 15:38 daemon.log
-rw------- 1 root wheel 59 Sep 23 15:38 xferlog
-rw-r--r-- 1 root wheel 59 Sep 23 15:38 lpd-errs
-rw-r----- 1 root network 59 Sep 23 15:38 ppp.log
-rw-r--r-- 1 root wheel 22 Sep 23 17:29 utx.log
-rw------- 1 root wheel 212 Sep 23 17:29 cron
-rw-r--r-- 1 root wheel 297 Sep 23 17:29 messages
root@truenas[...My Pool/iocage/jails/TOR/root/var/log]# less messages
Sep 23 15:38:06 TOR newsyslog[8142]: logfile first created
Sep 23 15:38:06 TOR syslogd: kernel boot file is /boot/kernel/kernel
Sep 23 15:38:07 TOR syslogd: exiting on signal 15
Sep 23 17:29:15 TOR syslogd: kernel boot file is /boot/kernel/kernel
Sep 23 17:29:15 TOR syslogd: exiting on signal 15
 

CROWN ME

Dabbler
Joined
Mar 29, 2015
Messages
16
Hey guys, I am not a very technical person with BSD, etc... But I have been trying to install the PlexMediaServer plugin on my own TrueNAS machine (version 13.0-U3) and am getting the same "FAILED, address received: 0.0.0.0/8 Stopped Jail..." error. Has anyone figured anything out one way or another? I followed the threads mentioned but am not sure what a definite answer to this issue was. Is this a problem with DHCP and having a 10g network card/switch? Note: I also have 10g switch and nics between TrueNAS and my workstation. Or do I indeed need to create at least ONE bridge interface first? Again, I am not very well versed w/ networking and BSD internals, so reaching out for some guidance here if possible.

Another question... if I DO have to create a bridge... my current adapter is configured w/ DHCP. If I create a bridge and define my CURRENT physical NIC to be a "member" of the bridge, do I need to enable "DHCP" on the bridge interface itself? Will the current DHCP IP assignments of the physical interface go away? Will I loose connectivity to the TrueNAS machine on my network? I am accessing everything with the Web GUI and want to be sure I do not loose connectivity as I have a lot of important data on this machine. Finally... I notice in your screenshots above, you have the option for "VNET" and "Berkley Packet Filter", I have NEITHER of those available when I am trying to add the plugin. Is the DHCP expected to come from my router? Or does it come from some internal VNET within BSD?

Thanks to all. I look forward to your response. Thanks in advance for your time.
 
Top