Qemu Networking Setup
Install qemu and some utilities as following:
sudo apt-get install bridge-utils libvirt-bin virt-manager vde2 qemu qemu-common qemu-kvm qemu-utils
sudo setcap cap_net_admin=ei $(ls /usr/bin/qemu-system-x86_64 /usr/bin/qemu 2>/dev/null)
Modify the file /etc/network/interfaces in such a way (eth0 parameters will be moved into br0):
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet static
address 10.0.0.3
network 10.0.0.0
netmask 255.255.0.0
broadcast 10.0.255.255
dns-search mylan.local
dns-nameservers 10.0.1.2 8.8.8.8
#append domain-name-servers 10.0.1.2 8.8.8.8
#supersede domain-name-servers 10.0.1.2 8.8.8.8
gateway 10.0.1.1
bridge_ports eth0
bridge_stp off
bridge_fd 0
bridge_maxwait 0
Modify (or create) the file /etc/resolvconf/resolv.conf.d/tail as following:
nameserver 10.0.1.2
nameserver 8.8.8.8
page revision: 7, last edited: 03 Sep 2013 16:18