[ubuntu-za] kvm br0

Charl Wentzel charl.wentzel at vodamail.co.za
Thu Aug 12 10:38:24 BST 2010


-----Original Message-----
From: Morgan Collett <morgan at ubuntu.com>

This is my config on a Dell R710 server running KVM with multiple VMs,
each on their own public IP address:

/etc/network/interfaces:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet manual

# Bridge interface for KVM
auto br0
iface br0 inet static
        address XX.XX.XX.XX
        netmask XX.XX.XX.XX
        network XX.XX.XX.XX
        broadcast XX.XX.XX.XX
        gateway XX.XX.XX.XX
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers XX.XX.XX.XX
        bridge_ports eth0
        bridge_fd 9
        bridge_hello 2
        bridge_maxage 12
        bridge_stp off


Basically, put what you have for eth0 (IP address, netmask, broadcast,
gateway) into the br0 section instead...

------------------------------------------

Thanks Morgan.  This is the instructions I followed, but it failed.  Here's my interfaces:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet manual
#iface eth0 inet dhcp

# Main bridged network interface
auto br0
iface br0 inet static
  address   192.168.1.40
  network   192.168.1.0
  netmask   255.255.255.0
  broadcast 192.168.1.255
  gateway   192.168.1.1
  bridge_port   eth0
  bridge_fd     9
  bridge_hello  2
  bridge_maxage 12
  bridge_stp    off

When I restart networking, it fails to create br0

Charl




More information about the ubuntu-za mailing list