Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506236 - app-emulation/qemu[gtk]: qemu-kvm fails to start
Summary: app-emulation/qemu[gtk]: qemu-kvm fails to start
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-30 10:19 UTC by Maxim Velesyuk
Modified: 2014-05-31 16:07 UTC (History)
2 users (show)

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


Attachments
full strace log (strace.log,560.41 KB, text/plain)
2014-03-30 10:19 UTC, Maxim Velesyuk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Velesyuk 2014-03-30 10:19:00 UTC
Created attachment 373884 [details]
full strace log

On start qemu has problem with accessing X11 socket /tmp/.X11-unix/X0, and goes into infinitive loop with messages
recvmsg(14, 0x7fff66c42dc0, 0)          = -1 EAGAIN (Resource temporarily unavailable)

Re-emerging without gtk flag removes this bug.

short strace log:

socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC, 0) = 14
connect(14, {sa_family=AF_LOCAL, sun_path=@"/tmp/.X11-unix/X0"}, 20) = 0
getpeername(14, {sa_family=AF_LOCAL, sun_path=@"/tmp/.X11-unix/X0"}, [20]) = 0
getsockname(14, {sa_family=AF_LOCAL, NULL}, [2]) = 0
fcntl(14, F_GETFL)                      = 0x2 (flags O_RDWR)
fcntl(14, F_SETFL, O_RDWR|O_NONBLOCK)   = 0
fcntl(14, F_SETFD, FD_CLOEXEC)          = 0
poll([{fd=14, events=POLLIN|POLLOUT}], 1, 4294967295) = 1 ([{fd=14, revents=POLLOUT}])
writev(14, [{"l\0\v\0\0\0\22\0\20\0\0\0", 12}, {"", 0}, {"MIT-MAGIC-COOKIE-1", 18}, {"\0\0", 2}, {"\224\26}\321g=\215\255\254<\32}\351-\345\312", 16}, {"", 0}], 6) = 48
recvfrom(14, 0x7f2701d73670, 8, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)

Full strace atteched.
Comment 1 Maxim Velesyuk 2014-03-30 10:44:11 UTC
Steps to reproduce:
1. emerge qemu 1.6.1 or 1.7.0 (other versions probably affected too) with gtk flag.
2. download qemu test image linux-0.2 from http://wiki.qemu.org/Testing#QEMU_disk_images
3. run qemu-kvm -hda linux-0.2.img
4. you will not be able to load further then bios version string. (actually you will get randomly filled bios version).

Expected:
4. Load lilo, then boot linux to user shell.
Comment 2 SpanKY gentoo-dev 2014-05-31 16:07:26 UTC
i've tested with qemu-2.0.0 and it works for me
 wget http://wiki.qemu.org/download/linux-0.2.img.bz2
 bunzip2 linux-0.2.img.bz2
 sudo qemu-system-i386 -enable-kvm -hda linux-0.2.img
 sudo qemu-system-x86_64 -enable-kvm -hda linux-0.2.img