I'm currently setting up a KVM with several VM guests. I created the first one but I ran into the first problem already:
root@vm1:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 88.140.40.50: icmp_seq=2 Redirect Host(New nexthop: 88.140.40.1)
From 88.140.40.50: icmp_seq=3 Redirect Host(New nexthop: 88.140.40.1)
So apparently the host machine is not configured correctly?
HOST - /etc/network/interfaces:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
auto br0
iface br0 inet static
address 88.140.40.50
netmask 255.255.0.0
gateway 88.140.40.1
pointopoint 88.140.40.1
bridge_ports eth0
bridge_stp off
bridge_fd 0
bridge_hello 2
bridge_maxage 12
bridge_maxwait 0
up route add -host 192.168.0.1 dev br0
192.168.0.1 is the ip from the guest vm.
HOST - iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT udp -- anywhere anywhere udp dpt:bootps
ACCEPT tcp -- anywhere anywhere tcp dpt:bootps
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- 192.168.0.1 anywhere
ACCEPT all -- anywhere 192.168.0.1
ACCEPT all -- anywhere anywhere
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
GUEST - /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.255
gateway 88.140.40.50
pointopoint 88.140.40.50
GUEST - /etc/resolv.conf
nameserver 88.140.40.50
nameserver 88.140.40.1