Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294646 - qemu-kvm-0.11.0 endless loop starting win7rc2
Summary: qemu-kvm-0.11.0 endless loop starting win7rc2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Thomas Sachau
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-25 21:51 UTC by Mario Bachmann
Modified: 2009-12-20 15:38 UTC (History)
5 users (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 Mario Bachmann 2009-11-25 21:51:25 UTC
app-emulation/qemu-kvm-0.11.0
do not start my win7rc2. 

Reproducible: Always

Steps to Reproduce:
1. qemu -enable-kvm -hda win7rc2.qcow -boot c -m 2048
2. looking at the loop

Actual Results:  
endless loop while the boot process of win7rc2: 
qemu-screen -> win7 -> qemu-screen -> win7 ...

Expected Results:  
win7rc2 should start

app-emulation/kvm-88-r2 worked.
Comment 1 Ewoud Kohl van Wijngaarden 2009-11-26 23:42:52 UTC
I have the same issue with windows 7  final. It comes up to 'windows is loading files' and when that's done, it reboots. It worked before with kvm-88-r2 as well.

Using qemu-system-x86_64 instead of just qemu does allow me to start windows 7.

Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r5 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.30-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-1.12.13
Timestamp of tree: Thu, 26 Nov 2009 06:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p28
dev-lang/python:     2.6.2-r1
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=core2"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS=" 	http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo 	http://ftp.snt.utwente.nl/pub/linux/gentoo         http://gentoo.osuosl.org         http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
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"
PORTDIR_OVERLAY="/usr/local/portage/layman/akoya /usr/local/portage/layman/samba4 /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 avahi berkdb bzip2 cli cracklib crypt dbus dri fam fortran gdbm gpm iconv ipv6 java6 jpeg mmx modules mudflap multilib ncurses nls nptl nptlonly nsplugin opengl openmp pam pcre perl png pppd pulseaudio python readline reflection session spl sse sse2 ssl ssse3 sysfs tcpd unicode xinerama 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" USERLAND="GNU" VIDEO_CARDS="vga nvidia vmware"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

app-emulation/qemu-kvm-0.11.0 was built with the following:
USE="alsa (multilib) ncurses pulseaudio sdl -bluetooth -esd -gnutls -sasl -vde" QEMU_SOFTMMU_TARGETS="(arm) cris i386 (m68k) (mips) mips64 mips64el mipsel (ppc) (ppc64) ppcemb sh4 sh4eb (sparc) x86_64" QEMU_USER_TARGETS="(alpha) (arm) armeb cris i386 (m68k) (mips) mips64 mips64el mipsel (ppc) (ppc64) ppc64abi32 sh4 sh4eb (sparc) sparc32plus sparc64 x86_64"
Comment 2 Mario Bachmann 2009-11-27 09:50:35 UTC
it works again with this command:
qemu-system-x86_64 -hda win7rc2.qcow -boot c -m 2048

no loop any more.

(i only tried qemu-x86_64 instead of qemu-system-x86_64.)
Comment 3 Harry Holt 2009-12-02 05:44:53 UTC
Is this new package supposed to be a replacement for KVM?  Because it's not compatible at all.  Why was KVM deleted?  None of my VMs work anymore, they all segfault with this new package.  

[185939.586495] qemu[2832]: segfault at 84 ip 00000000005430be sp 00007f85618c8e10 error 4 in qemu[400000+202000]

Tried running qemu-x86_64 as suggested here, but the command doesn't take any of the qemu or kvm options.  It looks like just a debugger interface (which I guess I need now, because I have no idea why I'm getting the above segfault).

Is the kvm-88-r2 still in an overlay somewhere?  
Comment 4 Harry Holt 2009-12-02 23:20:46 UTC
I managed to get a couple of them working with qemu-system-x86_64.  But the CPU or virtualized hardware change is different enough that the MS GA deactivated windows images.  I haven't explored whether this causes other issues with those, or checked all of the images.

I also tried qemu -cpu qemu32, pentium, pentium2, pentium3, athlon, coreduo, 486 and n270.  ALL caused a segmentation fault.

[250337.146963] qemu[23643]: segfault at 84 ip 00000000005430be sp 00007fbcd887de10 error 4 in qemu[400000+202000]
[250426.922546] qemu[23647]: segfault at c ip 0000000000462842 sp 00007f48b9ca50d0 error 4 in qemu[400000+202000]
[250429.755846] qemu[23650]: segfault at c ip 0000000000462842 sp 00007f0710d840d0 error 4 in qemu[400000+202000]
[250440.569651] qemu[23653]: segfault at c ip 0000000000462842 sp 00007f79127e10d0 error 4 in qemu[400000+202000]
[250469.825659] qemu[23656]: segfault at c ip 0000000000462842 sp 00007f900b9d00d0 error 4 in qemu[400000+202000]
[250511.149568] qemu[23661]: segfault at 84 ip 00000000005430be sp 00007fdf1ebfae10 error 4 in qemu[400000+202000]
[250549.099517] qemu[23668]: segfault at 84 ip 00000000005430be sp 00007fbc695abe10 error 4 in qemu[400000+202000]
[250583.240958] qemu[23671]: segfault at 84 ip 00000000005430be sp 00007f93e5c34e10 error 4 in qemu[400000+202000]
[250784.906761] qemu[23687]: segfault at c ip 0000000000462842 sp 00007f8e583620d0 error 4 in qemu[400000+202000]
[250836.257557] qemu[23690]: segfault at 84 ip 00000000005430be sp 00007f60c35f0e10 error 4 in qemu[400000+202000]
Comment 5 Mario Bachmann 2009-12-03 00:14:57 UTC
some information of my installation (which works here with 2k/xp/7rc2/2008r2rc). perhaps it helps Harry.

# emerge -pv qemu-kvm
[ebuild   R   ] app-emulation/qemu-kvm-0.11.0  USE="alsa gnutls ncurses sdl -bluetooth -esd -pulseaudio -sasl -vde" QEMU_SOFTMMU_TARGETS="arm cris i386 m68k mips mips64 mips64el mipsel ppc ppc64 ppcemb sh4 sh4eb sparc x86_64" QEMU_USER_TARGETS="alpha arm armeb cris i386 m68k mips mips64 mips64el mipsel ppc ppc64 ppc64abi32 sh4 sh4eb sparc sparc32plus sparc64 x86_64"

# gcc --version
gcc (Gentoo 4.4.2 p1.0) 4.4.2

some win found new hardware and needed a reboot which could perhaps annoy the wga. 

answers to your 'why-question' in comment #3 :
http://blog.cardoe.com/archives/2009/11/22/kvm-changes-in-gentoo/
Comment 6 Thomas Sachau gentoo-dev 2009-12-18 23:15:35 UTC
Do you still have problems with "/usr/bin/qemu-system-x86_64 -enable-kvm" or the equivalent for the ARCH and hardware you want to use for your system?
Comment 7 Harry Holt 2009-12-19 00:16:18 UTC
It's working acceptably when compiled with GCC 4.3.4.  Compiling with any prior version causes the segfaulting issue.
Comment 8 Thomas Sachau gentoo-dev 2009-12-20 15:38:06 UTC
Since we cannot to much about the used binary, i will close this one.

If you are, for whatever reason, forced to use some older gcc or still have problems with the qemu-system-* binaries, feel free to add a comment, so we can have a look.