[Bug 616064] Re: Broken networking in kvm guests

Anthony O. 616064 at bugs.launchpad.net
Tue Dec 20 09:23:14 UTC 2011


OK, here it is. I'm running 6 VM currently.

admin at vs-master:~$ sudo ifconfig -a
br0       Link encap:Ethernet  HWaddr 00:22:19:35:22:71  
          inet adr:192.168.1.200  Bcast:192.168.1.255  Masque:255.255.255.0
          adr inet6: fe80::222:19ff:fe35:2271/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:95710 erreurs:0 :0 overruns:0 frame:0
          TX packets:67249 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0 
          Octets reçus:51492467 (51.4 MB) Octets transmis:55864935 (55.8 MB)

br1       Link encap:Ethernet  HWaddr 00:22:19:35:22:6f  
          inet adr:192.168.2.21  Bcast:192.168.2.255  Masque:255.255.255.0
          BROADCAST MULTICAST  MTU:1500  Metric:1
          Packets reçus:22299 erreurs:0 :0 overruns:0 frame:0
          TX packets:6481 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0 
          Octets reçus:1537273 (1.5 MB) Octets transmis:40531900 (40.5 MB)


eth0      Link encap:Ethernet  HWaddr 00:22:19:35:22:6b  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          Octets reçus:0 (0.0 B) Octets transmis:0 (0.0 B)
          Interruption:36 Mémoire:d6000000-d6012800 

eth1      Link encap:Ethernet  HWaddr 00:22:19:35:22:6d  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          Octets reçus:0 (0.0 B) Octets transmis:0 (0.0 B)
          Interruption:48 Mémoire:d8000000-d8012800 

eth2      Link encap:Ethernet  HWaddr 00:22:19:35:22:6f  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          Packets reçus:24586 erreurs:0 :0 overruns:0 frame:0
          TX packets:30777 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          Octets reçus:2203691 (2.2 MB) Octets transmis:42258310 (42.2 MB)
          Interruption:32 Mémoire:da000000-da012800 

eth3      Link encap:Ethernet  HWaddr 00:22:19:35:22:71  
          adr inet6: fe80::222:19ff:fe35:2271/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:197822 erreurs:0 :0 overruns:0 frame:0
          TX packets:213737 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          Octets reçus:98213440 (98.2 MB) Octets transmis:109634754 (109.6 MB)
          Interruption:42 Mémoire:dc000000-dc012800 

lo        Link encap:Boucle locale  
          inet adr:127.0.0.1  Masque:255.0.0.0
          adr inet6: ::1/128 Scope:Hôte
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          Packets reçus:8506746 erreurs:0 :0 overruns:0 frame:0
          TX packets:8506746 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0 
          Octets reçus:1436414752 (1.4 GB) Octets transmis:1436414752 (1.4 GB)

virbr1    Link encap:Ethernet  HWaddr fe:54:00:0f:30:ea  
          inet adr:192.168.122.1  Bcast:192.168.122.255  Masque:255.255.255.0
          adr inet6: fe80::e4d6:60ff:feef:da37/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:942 erreurs:0 :0 overruns:0 frame:0
          TX packets:6616 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0 
          Octets reçus:107593 (107.5 KB) Octets transmis:311979 (311.9 KB)

vnet0     Link encap:Ethernet  HWaddr fe:54:00:e1:15:e3  
          adr inet6: fe80::fc54:ff:fee1:15e3/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:833 erreurs:0 :0 overruns:0 frame:0
          TX packets:115303 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:500 
          Octets reçus:522334 (522.3 KB) Octets transmis:6320774 (6.3 MB)

vnet1     Link encap:Ethernet  HWaddr fe:54:00:3c:1c:83  
          adr inet6: fe80::fc54:ff:fe3c:1c83/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:24437 erreurs:0 :0 overruns:0 frame:0
          TX packets:143771 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:500 
          Octets reçus:2493295 (2.4 MB) Octets transmis:39947808 (39.9 MB)

vnet2     Link encap:Ethernet  HWaddr fe:54:00:12:e3:be  
          adr inet6: fe80::fc54:ff:fe12:e3be/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:4524 erreurs:0 :0 overruns:0 frame:0
          TX packets:116971 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:500 
          Octets reçus:282843 (282.8 KB) Octets transmis:9219200 (9.2 MB)

vnet3     Link encap:Ethernet  HWaddr fe:54:00:5e:bc:08  
          adr inet6: fe80::fc54:ff:fe5e:bc08/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:4653 erreurs:0 :0 overruns:0 frame:0
          TX packets:116981 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:500 
          Octets reçus:266574 (266.5 KB) Octets transmis:9337139 (9.3 MB)

vnet4     Link encap:Ethernet  HWaddr fe:16:3e:4b:87:ad  
          adr inet6: fe80::fc16:3eff:fe4b:87ad/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:149850 erreurs:0 :0 overruns:0 frame:0
          TX packets:156434 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:500 
          Octets reçus:81969378 (81.9 MB) Octets transmis:48685476 (48.6 MB)

vnet5     Link encap:Ethernet  HWaddr fe:54:00:0f:30:ea  
          adr inet6: fe80::fc54:ff:fe0f:30ea/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:942 erreurs:0 :0 overruns:0 frame:0
          TX packets:182770 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:500 
          Octets reçus:120781 (120.7 KB) Octets transmis:9351306 (9.3 MB)

vnet6     Link encap:Ethernet  HWaddr fe:54:00:49:34:30  
          adr inet6: fe80::fc54:ff:fe49:3430/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:54970 erreurs:0 :0 overruns:0 frame:0
          TX packets:160868 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:500 
          Octets reçus:43593053 (43.5 MB) Octets transmis:17125087 (17.1 MB)

Don't take into account br1 and eth2 which are now disabled, I used them
to try to connect my server directly from the same network as my client
machine in network 192.168.2.0 but didn't manage to (routing
configuration problem I think). I had my stick download problem before
that test.

admin at vs-master:~$ sudo netstat -nr
Table de routage IP du noyau
Destination     Passerelle      Genmask         Indic   MSS Fenêtre irtt Iface
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 br0
192.168.122.0   0.0.0.0         255.255.255.0   U         0 0          0 virbr1
0.0.0.0         192.168.1.254   0.0.0.0         UG        0 0          0 br0

As I said in a previous post, I've got a VM which is used for a small
production software, will the instructions in comment #33 (+#35) will
make that VM unreachable during a time ?

Thanks

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bridge-utils in Ubuntu.
https://bugs.launchpad.net/bugs/616064

Title:
  Broken networking in kvm guests

Status in “bridge-utils” package in Ubuntu:
  Confirmed
Status in “linux” package in Ubuntu:
  Confirmed
Status in “qemu-kvm” package in Ubuntu:
  Incomplete

Bug description:
  Binary package hint: qemu-kvm

  
  Some TCP operations receive unexpected reset (RST) packets when executed on the guest.  I can see these RST packets via
  Wireshark but can't explain their source.  This breaks certain (most) networking on the guest.

  I uncovered this when some 'git clone' operations failed with "Broken
  Pipe" in the guests.  I've been able to reproduce the same failures
  using scp and 'svn checkout'.  The failure occurs 80-90% of the time
  and 'svn checkout' seems to be the quickest to fail.  The same
  operations on the host are always successful.

  My setup is a Lucid amd64 host with two guests (Lucid and Hardy, both
  i386, using kvm).  Networking seems to mostly work.  I can maintain
  persistent ssh connections to the guest and some networking operations
  from the guest (ie. ping) never fail.  However, the git-clone/scp/svn-
  checkout operations fail almost all the time.  I've tried this with
  both virtio and e1000 drivers with no difference.

  This may be similar to some of the behavior reported in bug 584048 but
  not the final patch referenced in comment 27.  I built a custon deb
  including the upstream patch for testing and it had no effect.

  $ lsb_release -rd
  Description:	Ubuntu 10.04.1 LTS
  Release:	10.04

  $ apt-cache policy qemu-kvm
  qemu-kvm:
    Installed: 0.12.3+noroms-0ubuntu9.2
    Candidate: 0.12.3+noroms-0ubuntu9.2
    Version table:
   *** 0.12.3+noroms-0ubuntu9.2 0
          500 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
          100 /var/lib/dpkg/status
       0.12.3+noroms-0ubuntu9 0
          500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: kvm 1:84+dfsg-0ubuntu16+0.12.3+noroms+0ubuntu9.2
  ProcVersionSignature: Ubuntu 2.6.32-24.39-server 2.6.32.15+drm33.5
  Uname: Linux 2.6.32-24-server x86_64
  Architecture: amd64
  Date: Tue Aug 10 16:39:24 2010
  InstallationMedia: Ubuntu-Server 10.04 "Lucid Lynx" - Beta amd64 (20100406.1)
  KvmCmdLine:
   UID        PID  PPID  C    SZ   RSS PSR STIME TTY          TIME CMD
   root     17641     1  1 2174883 1087144 1 15:42 ?      00:00:59 /usr/bin/kvm -S -M pc-0.12 -cpu qemu32 -enable-kvm -m 8192 -smp 8 -name hound-lucid -uuid 0e32438c-cb4d-1eb9-a560-f25c89c1dbf6 -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/hound-lucid.monitor,server,nowait -monitor chardev:monitor -boot c -drive file=/opt/hound-lucid,if=virtio,index=0,boot=on -drive if=ide,media=cdrom,index=2 -net nic,macaddr=52:54:00:61:7e:c0,vlan=0,model=virtio,name=virtio.0 -net tap,fd=59,vlan=0,name=tap.0 -chardev pty,id=serial0 -serial chardev:serial0 -parallel none -usb -vnc 127.0.0.1:0 -k en-us -vga cirrus
  MachineType: IBM IBM System x3400 M2 Server -[7836AC1]-
  ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-24-server root=UUID=7d9adc6b-cfec-42fa-b469-bc09ccd24478 ro quiet
  ProcEnviron:
   PATH=(custom, user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: qemu-kvm
  dmi.bios.date: 11/20/2009
  dmi.bios.vendor: IBM Corp.
  dmi.bios.version: -[Y4E131BUS-1.02]-
  dmi.board.name: 49Y6715
  dmi.board.vendor: IBM
  dmi.board.version: GA
  dmi.chassis.type: 23
  dmi.chassis.vendor: IBM
  dmi.chassis.version: GA
  dmi.modalias: dmi:bvnIBMCorp.:bvr-[Y4E131BUS-1.02]-:bd11/20/2009:svnIBM:pnIBMSystemx3400M2Server-[7836AC1]-:pvr06:rvnIBM:rn49Y6715:rvrGA:cvnIBM:ct23:cvrGA:
  dmi.product.name: IBM System x3400 M2 Server -[7836AC1]-
  dmi.product.version: 06
  dmi.sys.vendor: IBM

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bridge-utils/+bug/616064/+subscriptions




More information about the foundations-bugs mailing list