Package: qemu-kvm Version: 0.11.1+dfsg-1 Severity: normal
Hello, networking does not come up on my machine. I changed the script /etc/kvm/kvm-ifup to include two logging statements: --------------------------------------- cut #! /bin/sh # Script to bring a network (tap) device for qemu-kvm up # The idea is to add the tap device to the same bridge # as we have default routing to. switch=$(ip route ls | \ awk '/^default / { for(i=0;i<NF;i++) { if ($i == "dev") { print $(i+1); exit; } } }' ) /sbin/ifconfig $1 0.0.0.0 up logger -p daemon.info "kvm: found switch $switch" # only add the interface to default-route bridge if we # have such interface (with default route) and if that # interface is actually a bridge. if [ -n "$switch" -a -d /sys/class/net/$switch/bridge/. ]; then /usr/sbin/brctl addif $switch $1 || : logger -p daemon.info "kvm: added interface $1 to $switch" fi --------------------------------------- cut My "normal" routing table looks like this: $ netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 217.0.118.194 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 br0 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0 After starting a VM, I found this in my /var/log/daemon.log: Mar 6 16:12:22 debian logger: kvm: found switch ppp0 This is obviously wrong. I suggest to check for bridge interfaces instead of interfaces with a default route, and add the tapN interface to that. Kind regards, --Toni++ -- Package-specific info: selected information from lshal(1): /proc/cpuinfo: processor : 0 vendor_id : AuthenticAMD cpu family : 16 model : 4 model name : AMD Phenom(tm) II X4 945 Processor stepping : 2 cpu MHz : 800.000 cache size : 512 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 4 apicid : 0 initial apicid : 0 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt bogomips : 6026.58 clflush size : 64 cache_alignment : 64 address sizes : 48 bits physical, 48 bits virtual power management: ts ttp tm stc 100mhzsteps hwpstate processor : 1 vendor_id : AuthenticAMD cpu family : 16 model : 4 model name : AMD Phenom(tm) II X4 945 Processor stepping : 2 cpu MHz : 800.000 cache size : 512 KB physical id : 0 siblings : 4 core id : 1 cpu cores : 4 apicid : 1 initial apicid : 1 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt bogomips : 6026.90 clflush size : 64 cache_alignment : 64 address sizes : 48 bits physical, 48 bits virtual power management: ts ttp tm stc 100mhzsteps hwpstate processor : 2 vendor_id : AuthenticAMD cpu family : 16 model : 4 model name : AMD Phenom(tm) II X4 945 Processor stepping : 2 cpu MHz : 800.000 cache size : 512 KB physical id : 0 siblings : 4 core id : 2 cpu cores : 4 apicid : 2 initial apicid : 2 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt bogomips : 6026.91 clflush size : 64 cache_alignment : 64 address sizes : 48 bits physical, 48 bits virtual power management: ts ttp tm stc 100mhzsteps hwpstate processor : 3 vendor_id : AuthenticAMD cpu family : 16 model : 4 model name : AMD Phenom(tm) II X4 945 Processor stepping : 2 cpu MHz : 800.000 cache size : 512 KB physical id : 0 siblings : 4 core id : 3 cpu cores : 4 apicid : 3 initial apicid : 3 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt bogomips : 6026.91 clflush size : 64 cache_alignment : 64 address sizes : 48 bits physical, 48 bits virtual power management: ts ttp tm stc 100mhzsteps hwpstate -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (990, 'testing'), (500, 'proposed-updates'), (500, 'stable'), (250, 'unstable'), (50, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.32-trunk-686-bigmem (SMP w/4 CPU cores) Locale: LANG=de_DE.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages qemu-kvm depends on: ii adduser 3.112 add and remove users and groups ii bridge-utils 1.4-5 Utilities for configuring the Linu ii iproute 20091226-1 networking and traffic control too ii libasound2 1.0.22-2 shared library for ALSA applicatio ii libbluetooth3 4.60-1 Library to use the BlueZ Linux Blu ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib ii libcurl3-gnutls 7.19.7-1 Multi-protocol file transfer libra ii libgnutls26 2.8.5-2 the GNU TLS library - runtime libr ii libncurses5 5.7+20090803-2 shared libraries for terminal hand ii libpci3 1:3.1.6-1 Linux PCI Utilities (shared librar ii libpulse0 0.9.21-1 PulseAudio client libraries ii libsasl2-2 2.1.23.dfsg1-5 Cyrus SASL - authentication abstra ii libsdl1.2debian 1.2.13-5 Simple DirectMedia Layer ii libvdeplug2 2.2.3-3 Virtual Distributed Ethernet - Plu ii libx11-6 2:1.3.3-1 X11 client-side library ii python 2.5.4-9 An interactive high-level object-o ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime Versions of packages qemu-kvm recommends: ii linux-image-2.6.26-1-xe 2.6.26-13lenny2 Linux 2.6.26 image on i686, oldsty ii linux-image-2.6.26-2-68 2.6.26-21lenny3 Linux 2.6.26 image on PPro/Celeron ii linux-image-2.6.26-2-68 2.6.26-21lenny3 Linux 2.6.26 image on PPro/Celeron ii linux-image-2.6.30-bpo. 2.6.30-6~bpo50+1 Linux 2.6.30 image on PPro/Celeron ii linux-image-2.6.30-bpo. 2.6.30-6~bpo50+1 Linux 2.6.30 image on PPro/Celeron ii linux-image-2.6.32-trun 2.6.32-5 Linux 2.6.32 for modern PCs ii linux-image-2.6.32-trun 2.6.32-5 Linux 2.6.32 for PCs with 4GB+ RAM Versions of packages qemu-kvm suggests: ii debootstrap 1.0.22 Bootstrap a basic Debian system ii hal 0.5.14-2 Hardware Abstraction Layer pn samba <none> (no description available) ii vde2 2.2.3-3 Virtual Distributed Ethernet -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org