I'm setting up an Ubuntu 10.04 server to run KVM.
I need the virtual machines to have bridged networking, since they will be part of my main LAN. In addition,
eth0 (the main network interface on the server) is using DHCP to get a static IP from the DHCP server (that way, I have a central point to change the IPs of my servers).
When trying to add a
br0 interface (as described here http://wiki.libvirt.org/page/Networking#Bridged_networking_.28aka_.22shared_physical_device.22.29) I changed my
/etc/network/interfaces as follows:
# The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet dhcp # The bridge network interface, used by kvm auto br0 iface br0 inet manual bridge_ports eth0 bridge_stp yes bridge_fd 0 bridge_maxwait 0
I also added the following lines to
net.bridge.bridge-nf-call-ip6tables = 0 net.bridge.bridge-nf-call-iptables = 0 net.bridge.bridge-nf-call-arptables = 0
As soon as I reboot the server, I loose connectivity to eth0 (outgoing and ingoing).
What's wrong with this configuration? What's the recommended setup?