iocage create -n "yourjailname" -r 11.1-RELEASE ip4_addr="vnet0|192.XXX.X.X/XX" defaultrouter="192.XXX.X.X" vnet="on" allow_raw_sockets="1" boot="on"
Thanks @Celena your fix saved me a lot of time and headaches trying to figure out why none of my jails worked after a reboot.Hello,
i had the same problem but after a few research i have added 2 tunable in the rc.conf :
Code:Variable : cloned_interfaces ; Value : bridge0 Variable : ifconfig_bridge0 ; Value : addm igb0 up
Yep, looks like they have: https://redmine.ixsystems.com/issues/33054Thanks @Celena your fix saved me a lot of time and headaches trying to figure out why none of my jails worked after a reboot.
Has anyone filed a bug report on this?
Hello,
i had the same problem but after a few research i have added 2 tunable in the rc.conf :
Code:Variable : cloned_interfaces ; Value : bridge0 Variable : ifconfig_bridge0 ; Value : addm igb0 up
So best i can tell, bridge1 is the bridge for my functioning Warden jail, with epair1a and lagg0 as members. In that jail, the interface is epair1b.
In the iocage jail, the interface is epair0b. The bridge for this iocage is bridge0, which only has the member vnet0:4. When i try to add the lagg0 to bridge0, i get:
root@freenas:~ # ifconfig bridge0 addm lagg0
ifconfig: BRDGADD lagg0: Device busy
Is it possible to have lagg0 as a member of 2 different bridges?
No, that's not possible. However, your issue has a different cause, which I've run into as I have almost the the same configuration.
In the end I stopped using bridges, and used a feature of the underlying jail system (the vnet.interface jail property) which allows the jail to steal an interface from the host at startup, and then return it at shutdown. No need for a bridge at all, then, if you have dedicated interfaces (physical or VLAN) for the jails to use.
Can anyone tell me what my tunables should look like if my network connection is an aggregation? The interface is named "lagg0". The problem is am finding is that if I replace the "igb0" above with "lagg0", I am unable to access the entire freenas system after reboot (until i reconfigure the interface from the local kb/monitor).
ifconfig -a
. Notice your iocage jail's interface and a bridge interface. The bridge interface will have your iocage interface in it; however, lagg0 won't be in it, so... sudo ifconfig bridge0 addm lagg0
(at this point your iocage jail will work.) ifconfig -a
. Notice that all the jail interfaces are in bridge0 along with lagg0.@Patrick M. Hausen Just to make sure I understand: This is used as a post init-scrip in default freeenas userspace?Code:root@freenas-pmh:~ # cat /mnt/zfs/scripts/bridge0.sh #! /bin/sh PAUSE="10" BRIDGE="bridge0" INTERFACES="igb1 igb2 igb3" ( until /sbin/ifconfig | /usr/bin/grep -q "^${BRIDGE}:"; do sleep 2; done sleep ${PAUSE} for if in ${INTERFACES} do /sbin/ifconfig ${if} up /sbin/ifconfig ${BRIDGE} addm ${if} done ) & exit 0
@Patrick M. Hausen Just to make sure I understand: This is used as a post init-scrip in default freeenas userspace?
What does the first line (starting with cat) do?
Try Beta 2 to see if that helps, it just dropped.I am running 11.2-BETA1 and my iocage jails are wrecking havok on my NAS connectivity and my network as a whole.
Yes it is - put it anywhere on your ZFS and use the Web UI to set is as a post-init task.@Patrick M. Hausen Just to make sure I understand: This is used as a post init-scrip in default freeenas userspace?
Thanks Nathan for answering that one - see above.What does the first line (starting with cat) do?
Used to do it via the command line, but since B2 have used the web interface - it's much more slick. Still prefer to create a blank jail then add my own packages in manually, that's just me liking to know how things go together though.how do you guys create your jails at the moment, in terms of network settings (Beta2)?