From: Robin Cook Subject: issue with network on debian jessie with kvm/qemu Date: Tue, 2 Sep 2014 19:57:15 -0500 Message-ID: <20140902195715.79f152e2@pheuri.wyrms.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT To: kvm@vger.kernel.org Return-path: Received: from phlare.wyrms.net ([104.4.82.173]:60115 "EHLO phlare.wyrms.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754323AbaICBFl convert rfc822-to-8bit (ORCPT ); Tue, 2 Sep 2014 21:05:41 -0400 Received: from pheuri.wyrms.net (pheuri.wyrms.net [104.4.82.161]) by phlare.wyrms.net (Postfix) with ESMTPS id CE0264DAE9 for ; Tue, 2 Sep 2014 19:57:57 -0500 (CDT) Sender: kvm-owner@vger.kernel.org List-ID: Hey all, >From all the manuals, faqs, howtos, etc. It looks like I have everything configured correctly and everything but the networking is working. Can anyone suggest what I might have wrong? On the network the host and anything on the actual network can ping the guest VM. But the guest VM can't ping the host or anything on the network nor can it connect to anything on the network. There is no firewall running on the host or the guest VM. Form all the reading I have tried setting the below. net.bridge.bridge-nf-call-ip6tables = 0 net.bridge.bridge-nf-call-iptables = 0 net.bridge.bridge-nf-call-arptables = 0 /proc/sys/net/ipv4/ip_forward=1 /proc/sys/net/ipv4/conf/all/send_redirects=0 Below are all the outputs that I could think of getting. The host is 64bit and the guest is a window 7 64 bit. I don't have the ipconfig from the windows but it is set to 172.16.0.205/24 on local connection 1 shows the same mac address as vnet0. ps aux: libvirt+ 3188 45.1 3.1 13490892 8224256 ? Rl 12:17 1:31 qemu-system-x86_64 -enable-kvm -name TestCenter01 -S -machine pc-i440fx-2.1,accel=kvm -m 8192 -smp 2,sockets=1,cores=2,threads=1 -uuid bc91b12b-f737-2945-9821-04c518086be8 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/TestCenter01.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime -no-shutdown -boot c -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 -usb -drive file=/var/lib/libvirt/images/testcenter01.qcow2,if=none,id=drive-virtio-disk0,format=qcow2 -device virtio-blk-pci,bus=pci.0,addr=0x6,drive=drive-virtio-disk0,id=virtio-disk0 -drive file=/root/win-guest-drivers.iso,if=none,media=cdrom,id=drive-ide0-0-0,readonly=on,format=raw -d evice ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -drive file=/root/testcenter-4.43.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=24,id=hostnet0,vhost=on,vhostfd=25 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:79:12:3d,bus=pci.0,addr=0x3 -netdev tap,fd=26,id=hostnet1,vhost=on,vhostfd=27 -device virtio-net-pci,netdev=hostnet1,id=net1,mac=52:54:00:2c:5e:d5,bus=pci.0,addr=0x4 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev spicevmc,id=charchannel0,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 -device usb-tablet,id=input0 -spice port=5900,addr=0.0.0.0 ,disable-ticketing,seamless-migration=on -vga qxl -global qxl.ram_size=67108864 -global qxl.vram_size=67108864 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 qemu xml config file:
ifconfig: br0 Link encap:Ethernet HWaddr ec:f4:bb:c4:66:e0 inet addr:172.16.0.220 Bcast:172.16.0.255 Mask:255.255.255.0 inet6 addr: fe80::eef4:bbff:fec4:66e0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1865 errors:0 dropped:84 overruns:0 frame:0 TX packets:142 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:161772 (157.9 KiB) TX bytes:13480 (13.1 KiB) br1 Link encap:Ethernet HWaddr ec:f4:bb:c4:66:e2 inet addr:192.168.0.220 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::eef4:bbff:fec4:66e2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1843 errors:0 dropped:84 overruns:0 frame:0 TX packets:68 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:159632 (155.8 KiB) TX bytes:9042 (8.8 KiB) eth0 Link encap:Ethernet HWaddr ec:f4:bb:c4:66:e0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1991 errors:0 dropped:0 overruns:0 frame:0 TX packets:186 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:219674 (214.5 KiB) TX bytes:18508 (18.0 KiB) eth1 Link encap:Ethernet HWaddr ec:f4:bb:c4:66:e2 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1951 errors:0 dropped:0 overruns:0 frame:0 TX packets:101 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:211856 (206.8 KiB) TX bytes:12776 (12.4 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:102 errors:0 dropped:0 overruns:0 frame:0 TX packets:102 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:7450 (7.2 KiB) TX bytes:7450 (7.2 KiB) vnet0 Link encap:Ethernet HWaddr fe:54:00:79:12:3d inet6 addr: fe80::fc54:ff:fe79:123d/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:156 errors:0 dropped:0 overruns:0 frame:0 TX packets:349 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:18830 (18.3 KiB) TX bytes:38147 (37.2 KiB) vnet1 Link encap:Ethernet HWaddr fe:54:00:2c:5e:d5 inet6 addr: fe80::fc54:ff:fe2c:5ed5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:156 errors:0 dropped:0 overruns:0 frame:0 TX packets:349 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:18830 (18.3 KiB) TX bytes:38165 (37.2 KiB) brctl show: bridge name bridge id STP enabled interfaces br0 8000.ecf4bbc466e0 no eth0 vnet0 br1 8000.ecf4bbc466e2 no eth1 vnet1 brctl showmacs br0: port no mac addr is local? ageing timer 1 00:0c:29:84:a4:da no 58.87 1 00:0c:29:c6:ca:c7 no 0.64 1 00:0c:29:c6:ca:d1 no 0.64 1 00:0c:29:c8:c7:13 no 163.66 1 00:0c:29:e7:d3:dd no 159.84 1 00:0c:29:e7:d3:e7 no 159.84 1 00:15:c6:f2:01:d1 no 161.83 1 00:1d:ff:01:09:49 no 0.40 1 00:20:4a:8c:9a:6e no 172.56 1 00:23:ea:c0:74:c1 no 25.64 1 00:e0:b8:a0:77:6d no 86.77 1 00:e0:b8:a0:7e:9f no 259.70 1 84:2b:2b:47:3c:2e no 7.87 1 cc:ef:48:cd:fa:16 no 0.13 1 ec:f4:bb:c4:66:e0 yes 0.00 1 f0:4d:a2:39:f5:77 no 0.42 2 fe:54:00:79:12:3d yes 0.00 brctl showmacs br1: port no mac addr is local? ageing timer 1 00:0c:29:84:a4:da no 119.70 1 00:0c:29:c6:ca:c7 no 56.12 1 00:0c:29:c6:ca:d1 no 6.18 1 00:0c:29:c8:c7:09 no 6.19 1 00:0c:29:c8:c7:13 no 6.19 1 00:0c:29:e7:d3:dd no 220.67 1 00:0c:29:e7:d3:e7 no 17.88 1 00:15:c6:f2:01:d1 no 222.66 1 00:1d:ff:01:09:49 no 1.19 1 00:20:4a:8c:9a:6e no 53.22 1 00:23:ea:c0:74:c1 no 22.48 1 00:e0:b8:a0:77:6d no 147.60 1 36:00:06:00:00:00 no 0.28 1 84:2b:2b:47:3c:2e no 7.19 1 cc:ef:48:cd:fa:17 no 0.92 1 ec:f4:bb:c4:66:e2 yes 0.00 1 f0:4d:a2:39:f5:77 no 30.22 2 fe:54:00:2c:5e:d5 yes 0.00 ip route: default via 172.16.0.1 dev br-lan 172.16.0.0/24 dev br0 proto kernel scope link src 172.16.0.220 192.168.0.0/24 dev br1 proto kernel scope link src 192.168.0.220