Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

brctl addif br0 eth0 kills the networking

$
0
0
Hi there,
I have decided to start asking around after two days of struggling with this matter, and re-installing my whole ubuntu server twice already. Can't seem to get to resolution myself so need help!

The intention is to use libvirt for hosting a number of VMs on a single ubuntu server host. All VMs are intended to share the same eth0 for accessing the network outside the host machine. For that purpose I am setting up br0 to link to eth0... and the moment I do that - the host becomes unreachable from the network.

This is what my /etc/network/interfaces looks like in the failure state:

-----------------------------------------------------------------------
source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface - USED FOR VMs
auto eth0
iface eth0 inet static
address 192.168.1.5
network 192.168.1.0
netmask 255.255.255.0
gateway 192.168.1.1
broadcast 192.168.1.255
dns-nameservers 203.96.123.1 203.96.123.2 8.8.8.8


# The bridge for virtual machines
auto br0
iface br0 inet static
bridge_ports eth0
address 10.0.0.1
network 10.0.0.0
netmask 255.255.255.0
broadcast 10.0.0.255
gateway 192.168.1.1
dns-nameservers 203.96.123.1 203.96.123.2 8.8.8.8
bridge_stp off
bridge_fd 0
bridge_maxwait 0
-----------------------------------------------------------------------

If I comment the line "bridge_ports eth0" and reboot - all goes well, except there is not "br0" appears in ifconfig report, and none of the VMs would be able to start.

I have already tried to do everything I could think of from changing address allocations from static to dhcp, from same network to different. Tried to enable eth1 and use it as additional channel for external traffic. Tried resetting firewall, tried doing "route add" in a number of way - nothing helps.

Strage enough - it used to work before, and it was nothing fancy in terms of getting to working state. Just added "br0" into interfaces, installed libvirt, used "virsh" to deal with VMs - all was hunky dory. Then something happened and now even complete re-install of the entire Ubuntu to latest version (15.10 GNU/Linux 4.2.0-23-generic x86_64) won't make a difference.

Any ideas anyone?

Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>