Bug 451829 - qemu-kvm hangs/stalls if executed by non-root
Summary: qemu-kvm hangs/stalls if executed by non-root
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: kvm
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Glauber Costa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-06-17 17:34 UTC by Tom London
Modified: 2008-06-20 16:05 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-06-20 16:05:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Output of "strace qemu-kvm -localtime -m 512 -std-vga raw.img" (50.62 KB, text/plain)
2008-06-17 17:34 UTC, Tom London
no flags Details

Description Tom London 2008-06-17 17:34:27 UTC
Description of problem:
"qemu-kvm" stalls/hangs on startup if I execute it as non-root.

Works fine if I run as root.

I have tried this both with SELinux in enforcing and permissive mode: no joy.

I attach the output of "strace qemu-kvm -localtime -m 512 -std-vga raw.img"

Version-Release number of selected component (if applicable):
kvm-69-1.fc10.i386

How reproducible:
Every time

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Tom London 2008-06-17 17:34:27 UTC
Created attachment 309642 [details]
Output of "strace qemu-kvm -localtime -m 512 -std-vga raw.img"

Comment 2 Glauber Costa 2008-06-18 13:37:15 UTC
Yesterday, I've upgraded kvm to kvm-70.
Could you please upgrade and see if this problem got fixed by any of upstream
commit?
By looking at the commit list, I very honestly don't think so. But let us try to
focus on the topmost thing here ;-)

In case the problem persists, can you provide us with some more info, like dmesg
messages, if any suspicious, and host information? 

Comment 3 Tom London 2008-06-18 13:51:15 UTC
Nope.  Fails with the same strace.  Here are the last few lines:

read(6,
"\1\0001\0\5\0\0\0\22\0\320\10\0\0\0\0\10\0\0\0\0\0\0\0\20o\320\10\0\0\0\0"...,
4096) = 52
read(6, 0x9ad3ffc, 4096)                = -1 EAGAIN (Resource temporarily
unavailable)
select(7, [6], [6], NULL, NULL)         = 1 (out [6])
writev(6, [{"\20\1\4\0\7\0\0\0LOCALES\0", 16}], 1) = 16
select(7, [6], [], NULL, NULL)          = 1 (in [6])
read(6, "\1\0002\0\0\0\0\0k\1\0\0\0\0\0\0\20\0\0\0\0\0\0\0\20o\320\10\0\0\0\0",
4096) = 32
read(6, 0x9ad3ffc, 4096)                = -1 EAGAIN (Resource temporarily
unavailable)
select(7, [6], [6], NULL, NULL)         = 1 (out [6])
writev(6, [{"\30\1\6\0\4\0\0\4q\1\0\0k\1\0\0k\1\0\0\0\0\0\0", 24}], 1) = 24
select(7, [6], [], NULL, NULL


This worked as late as last Thursday, so I'm guessing its due to an update since
then.

I'll try to strace qemu-kvm running as root and see if I can see anything in the
"diff".

There is nothing in /var/log/messages that I can see.

Running on Thinkpad X60, latest rawhide, kernel-2.6.26-0.74.rc6.git4.fc10.i686

Comment 4 Tom London 2008-06-18 14:03:59 UTC
Mysterious..... after today's rawhide updates, and some fiddling with nscd, this
started working.

Let me probe on this for a day or so.  If it no longer fails, I'll close this BZ.



Comment 5 Glauber Costa 2008-06-18 14:58:02 UTC
So it's probably related to some other issue, on another package. Last kvm
update (excluding yesterday one), was done much earlier than last tuesday.


Comment 6 Tom London 2008-06-20 16:05:21 UTC
I can no longer reproduce this; must be ghosts ;)

Closing as NOTABUG


Note You need to log in before you can comment on or make changes to this bug.