Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 325209 - app-emulation/qemu-kvm-0.12.4 - guest crash when using virtio for network
Summary: app-emulation/qemu-kvm-0.12.4 - guest crash when using virtio for network
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo QEMU Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-23 11:42 UTC by Vitoriung
Modified: 2010-11-03 14:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitoriung 2010-06-23 11:42:30 UTC
After installing Gentoo and migrating qemu-kvm domains from another server, found those guests using virtio network shuts down after very short while.

Only what can be found is following line in libvirt logs:
"virtio-net truncating packet"

This would be similar to Red Hat bug https://bugzilla.redhat.com/show_bug.cgi?id=591494


Reproducible: Always

Steps to Reproduce:
1. Assign virtio network interface for guest
2. Run the guest


Actual Results:  
Guest crashes after a while (few seconds or minutes)

Expected Results:  
Guest should be running without crash.

# emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r7-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-1.12.13
Timestamp of tree: Tue, 15 Jun 2010 01:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -msse4 -mcx16 -mpopcnt -msahf -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -msse4 -mcx16 -mpopcnt -msahf -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi amd64 berkdb bzip2 cli cracklib crypt cups cxx dbus dri fortran gdbm gpm hal iconv kvm ldap mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python qemu readline reflection session spl sse sse2 ssl sysfs tcpd unicode xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2010-06-28 21:53:07 UTC
I believe the fix for this is: http://git.kernel.org/?p=virt/kvm/qemu-kvm.git;a=commit;h=992cc816c433332f2e93db033919a9ddbfcd1da4

If you're willing, can you give it a shot and let me know how it works?
Comment 2 Vitoriung 2010-06-28 22:58:02 UTC
(In reply to comment #1)
> I believe the fix for this is:
> http://git.kernel.org/?p=virt/kvm/qemu-kvm.git;a=commit;h=992cc816c433332f2e93db033919a9ddbfcd1da4
> 
> If you're willing, can you give it a shot and let me know how it works?
> 

OK I can try, however I don't know how to apply it, I've never patched the kernel before or is this a patch for actual qemu-kvm ebuild? :o)
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2010-06-29 03:13:24 UTC
It's actually for the qemu-kvm ebuild, I can attach a diff sometime tomorrow.
Comment 4 Vitoriung 2010-07-14 08:27:17 UTC
(In reply to comment #3)
> It's actually for the qemu-kvm ebuild, I can attach a diff sometime tomorrow.
> 

It doesn't look like that patch works unless I did something wrong. I got some help here - http://forums.gentoo.org/viewtopic-p-6350631.html#6350631
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2010-07-21 01:51:38 UTC
Should be fixed in 0.12.4-r3.
Comment 6 Vitoriung 2010-08-24 14:37:11 UTC
(In reply to comment #5)
> Should be fixed in 0.12.4-r3.
> 

It has not or it is a different bug, I am currently on 0.12.5 and issue still exist:

libvirt log:
LC_ALL=C PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin HOME=/ QEMU_AUDIO_DRV=none /usr/bin/qemu-system-x86_64 -S -M pc-0.11 -enable-kvm -m 2048 -smp 2,sockets=2,cores=1,threads=1 -name BES501_32 -uuid 7f6392cf-9242-0872-6a5a-98e792c36ee3 -nodefaults -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/BES501_32.monitor,server,nowait -mon chardev=monitor,mode=readline -rtc base=localtime -boot c -drive file=/var/lib/libvirt/images/BESG501_32.img,if=none,id=drive-ide0-0-0,format=raw,cache=none -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -drive 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 -device virtio-net-pci,vlan=0,id=net0,mac=52:54:00:35:e6:2f,bus=pci.0,addr=0x4 -net tap,fd=50,vlan=0,name=hostnet0 -chardev pty,id=serial0 -device isa-serial,chardev=serial0 -usb -vnc 127.0.0.1:0 -k en-us -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 
char device redirected to /dev/pts/2
virtio-net truncating packet

Comment 7 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2010-11-03 14:48:30 UTC
Can you please test with qemu-kvm-0.13.0-r2 in the tree?
Comment 8 Vitoriung 2010-11-03 14:54:06 UTC
(In reply to comment #7)
> Can you please test with qemu-kvm-0.13.0-r2 in the tree?
> 

It has been resolved actually, I found that my guests were using old version of virtio net driver. Ubuntu guests had to be upgraded, so it can be expected that this bug will appear on Ubuntu 9.10 or older.