Virtual machines lost external network after upgrade to Core 13

Anio

Dabbler
Joined
Dec 3, 2015
Messages
11
Hello,
i have TrueNas Core 12.8 with two Linux virtual machines. Today upgraded to 13U3 and they lost connection to everything outside Truenas. I can connect to another VM and to any Jail but cant pass out the NAS IP address. In the Tunables i have the following settings:
firewall_enable=yes RC
firewall_type=open RC
gateway_enable=yes RC
iohyve_enable=yes RC
iohyve_flags=kmod=1 net=bge0 RC
natd_enable=yes RC
natd_flags=-dynamic -m RC
natd_interface=bge0 RC
net.inet.ip.forwarding=1 SYSCTL

After i fell back to 12 everything is working again.
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
I'm guessing you need a static route setup on your router.

Please post your network settings/subnets for your VM's, jails, and LAN.
 

Anio

Dabbler
Joined
Dec 3, 2015
Messages
11
All jails and VM's are using my home 192.168.100.0 network. This is the jails config:
1672907859634.png


The jails are using static IP addresses, where the VM is using DHCP from my home router and has attached e1000 NIC interface. Upgrading to v.13 only brakes the VM networking, everything else is working. Does anything change in the new version for the settings i pasted in my first post?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
If you're interested in doing it properly, you'll insert a bridge between the NIC and the VMs (and jails). (and move the host IP address from the NIC to the Bridge also)

I would also start by removing (or at least disabling) all those tunables and seeing if it works fine on 13 without them.
 
Last edited:

Anio

Dabbler
Joined
Dec 3, 2015
Messages
11
If you're interested in doing it properly, you'll insert a bridge between the NIC and the VMs (and jails). (and move the host IP address from the NIC to the Bridge also)

I would also start by removing (or at least disabling) all those tunables and seeing if it works fine on 13 without them.
Thank you. I didnt know i can create such bridge. And yes, i want to do it properly. This configuration is at least 5 years old and i havent touch it since i originally installed FreeNas(10 or 11).
Could you please point me to an article how to properly do it?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703

That post covers it... you'll only need one interface, but the process is the same.

You then also attach your VM NIC to the Bridge you create.
 
Last edited:

Anio

Dabbler
Joined
Dec 3, 2015
Messages
11

That post covers it... you'll only need one interface, but the process is the same.

You then also attach your VM NIC to the Bridge you create.
Thanks! I actually have 2 interfaces(im using HP microserver gen8) but havent used the second one.
 

Anio

Dabbler
Joined
Dec 3, 2015
Messages
11
I sort of did it but there are some problems with the VM's. I created bridge only for the second Physical NIC and dedicated it only for VM's and Jails.
Then disabled almost all tunables and assigned the bridge to all VM's and jails. The Jails are working fine but the VM's are very unstable, they boot but after some time one of them just loosing the network. The Ubuntu VM which under 12U8.1 uses Intel e82585 (e1000) interface now cannot start the network manager if its not VirtIO and the networking disappears after some time the entire VM freezes and have to be rebooted.

P.S.Do you know what fundamentally is changed between 12U8 and 13 so the VM cannot bring up its network interface and freezes?
 
Last edited:

Anio

Dabbler
Joined
Dec 3, 2015
Messages
11
Hi all,
im still stuck in this problem :/ VM's dont have networking on v.13 but work on v12. Exactly the same network configuration using bridge interfaces.
 
Top