zizzithefox
Dabbler
- Joined
- Dec 18, 2017
- Messages
- 41
I am posting this before sending a bug report because I would like to know if somebody else has recently had this problem. I searched the forum but found nothing recent, so.
Currently running TrueNAS Core 12-U3.1 but tested same behaviour with U4.1 here. Situation is a bunch of iocage jails (7) configured with these settings:
If I set autostart to OFF for the virtual machines, everything is fine, the jails get their interface on bridge0, the IP address I want, networking inside the jails works and they are reachable. I can then start the virtual machines, which get their own interfaces on bridge0 and everything works fine.
If I set autostart to ON for any of the virtual machines, the VMs themselves are always working fine but once every two reboots my jails are unreachable on the network because bridge0 does not work anymore and VMs are on another bridge1 that is created automatically (while the jails are on bridge0 because it's in their settings). I have to switch the jails manually to use either bridge1. If I restart, everything is still on bridge0 and jails are working and so on.
To clarify, suppose I leave the configuration for the jails to bridge0 and it is working now because I have VM autostart off and I started them manually. Now I turn autostart on for a VM.
Reboot - jails not working (but work if I set bridge1 on jails)
Reboot - jails working (on bridge0)
Reboot - jails not working (but work if I set bridge1 on jails)
Reboot - working (on bridge0)
...
As a workaround I am currently using an init script to automatically start the virtual machines… but it is odd. It started probably around 12 U2 or maybe with U3 but I am not sure since I don't restart the server that much so I didn't detect the problem before U3.
I tried to put an RC tunable with iohyve_flags to (net=igb2 kmod=1) as stated in a previous (older) post, but to no avail.
Currently running TrueNAS Core 12-U3.1 but tested same behaviour with U4.1 here. Situation is a bunch of iocage jails (7) configured with these settings:
- VNET on
- Autoconfigure IPv6
- vnet_default_interface : igb2:casa
- IPv4 interface: vnet0
- IPv4 Address: set manually for all the jails to some LAN address
- network/interfaces: vnet0:bridge0
- IPv6: autoconfigure
- Autostart: on
If I set autostart to OFF for the virtual machines, everything is fine, the jails get their interface on bridge0, the IP address I want, networking inside the jails works and they are reachable. I can then start the virtual machines, which get their own interfaces on bridge0 and everything works fine.
If I set autostart to ON for any of the virtual machines, the VMs themselves are always working fine but once every two reboots my jails are unreachable on the network because bridge0 does not work anymore and VMs are on another bridge1 that is created automatically (while the jails are on bridge0 because it's in their settings). I have to switch the jails manually to use either bridge1. If I restart, everything is still on bridge0 and jails are working and so on.
To clarify, suppose I leave the configuration for the jails to bridge0 and it is working now because I have VM autostart off and I started them manually. Now I turn autostart on for a VM.
Reboot - jails not working (but work if I set bridge1 on jails)
Reboot - jails working (on bridge0)
Reboot - jails not working (but work if I set bridge1 on jails)
Reboot - working (on bridge0)
...
As a workaround I am currently using an init script to automatically start the virtual machines… but it is odd. It started probably around 12 U2 or maybe with U3 but I am not sure since I don't restart the server that much so I didn't detect the problem before U3.
I tried to put an RC tunable with iohyve_flags to (net=igb2 kmod=1) as stated in a previous (older) post, but to no avail.