[libvirt] virsh list hangs

wangxiaojun wangxiaojun at ec.com.cn
Tue Apr 9 08:58:49 UTC 2013


please help me, i just installed libvirt-git and qemu-git to my gentoo os.

when i start libvirtd, then type virsh list ,  it has no response. hangs
forever.


following is my typed cmd:

$>LIBVIRT_DEBUG=1 libvirtd

..................
2013-04-09 08:39:03.649+0000: 17021: debug : virFileClose:72 : Closed fd 19
2013-04-09 08:39:03.649+0000: 17021: debug : virFileClose:72 : Closed fd 21
2013-04-09 08:39:03.649+0000: 17021: debug : virArchFromHost:174 :
Mapped x86_64 to 28 (x86_64)
2013-04-09 08:39:03.649+0000: 17021: debug : virArchFromHost:174 :
Mapped x86_64 to 28 (x86_64)
2013-04-09 08:39:03.649+0000: 17021: debug : virArchFromHost:174 :
Mapped x86_64 to 28 (x86_64)
2013-04-09 08:39:03.649+0000: 17021: debug : virArchFromHost:174 :
Mapped x86_64 to 28 (x86_64)
2013-04-09 08:39:03.649+0000: 17021: debug : virArchFromHost:174 :
Mapped x86_64 to 28 (x86_64)
2013-04-09 08:39:03.649+0000: 17021: debug : virArchFromHost:174 :
Mapped x86_64 to 28 (x86_64)
2013-04-09 08:39:03.649+0000: 17021: debug : virQEMUCapsCacheLookup:2620
: Creating capabilities for /usr/bin/qemu-system-x86_64
2013-04-09 08:39:03.649+0000: 17021: debug : virObjectNew:201 :
OBJECT_NEW: obj=0x7fa398095cd0 classname=virQEMUCaps
2013-04-09 08:39:03.649+0000: 17021: debug : virQEMUCapsInitQMP:2357 :
Try to get caps via QMP qemuCaps=0x7fa398095cd0
2013-04-09 08:39:03.649+0000: 17021: debug : virCommandRunAsync:2205 :
About to run LC_ALL=C
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.7.2:/opt/nvidia-cg-toolkit/bin:/opt/cuda/bin
HOME=/root USER=root LOGNAME=root /usr/bin/qemu-system-x86_64 -S
-no-user-config -nodefaults -nographic -M none -qmp
unix:/var/lib/libvirt/qemu/capabilities.monitor.sock,server,nowait
-pidfile /var/lib/libvirt/qemu/capabilities.pidfile -daemonize
2013-04-09 08:39:03.650+0000: 17021: debug : virFileClose:72 : Closed fd 18
2013-04-09 08:39:03.650+0000: 17021: debug : virFileClose:72 : Closed fd 20
2013-04-09 08:39:03.650+0000: 17021: debug : virFileClose:72 : Closed fd 22
2013-04-09 08:39:03.650+0000: 17021: debug : virCommandRunAsync:2210 :
Command result 0, with PID 17095
2013-04-09 08:39:03.650+0000: 17095: debug : virFileClose:72 : Closed fd 3
2013-04-09 08:39:03.650+0000: 17095: debug : virFileClose:72 : Closed fd 4
2013-04-09 08:39:03.650+0000: 17095: debug : virFileClose:72 : Closed fd 5
2013-04-09 08:39:03.650+0000: 17095: debug : virFileClose:72 : Closed fd 6
2013-04-09 08:39:03.650+0000: 17095: debug : virFileClose:72 : Closed fd 7
2013-04-09 08:39:03.650+0000: 17095: debug : virFileClose:72 : Closed fd 8
2013-04-09 08:39:03.650+0000: 17095: debug : virFileClose:72 : Closed fd 9
2013-04-09 08:39:03.650+0000: 17095: debug : virFileClose:72 : Closed fd 10
2013-04-09 08:39:03.650+0000: 17095: debug : virFileClose:72 : Closed fd 11
2013-04-09 08:39:03.650+0000: 17095: debug : virFileClose:72 : Closed fd 12
2013-04-09 08:39:03.650+0000: 17095: debug : virFileClose:72 : Closed fd 13
2013-04-09 08:39:03.650+0000: 17095: debug : virFileClose:72 : Closed fd 14
2013-04-09 08:39:03.650+0000: 17095: debug : virFileClose:72 : Closed fd 15
2013-04-09 08:39:03.650+0000: 17095: debug : virFileClose:72 : Closed fd 16
2013-04-09 08:39:03.650+0000: 17095: debug : virFileClose:72 : Closed fd 17
2013-04-09 08:39:03.650+0000: 17095: debug : virFileClose:72 : Closed fd 19
2013-04-09 08:39:03.650+0000: 17095: debug : virFileClose:72 : Closed fd 21



In another terminal  i type :
$>gdb virsh

GNU gdb (Gentoo 7.5.1 vanilla) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/virsh...done.
(gdb) run -c qemu:///system
Starting program: /usr/bin/virsh -c qemu:///system
warning: no loadable sections found in added symbol-file system-supplied
DSO at 0x7ffff7ffa000
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffeffcf700 (LWP 17555)]
Welcome to virsh, the virtualization interactive terminal.

Type:  'help' for help with commands
       'quit' to quit

virsh # list 
^C                                                                  
(hangs there..... )
Program received signal SIGINT, Interrupt.
0x00007ffff428691d in poll () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff428691d in poll () from /lib64/libc.so.6
#1  0x00007ffff7a32918 in virNetClientIOEventLoop
(client=0x55555587a1c0, thiscall=0x55555587a150) at rpc/virnetclient.c:1527
#2  0x00007ffff7a33203 in virNetClientIO (client=0x55555587a1c0,
thiscall=0x55555587a150) at rpc/virnetclient.c:1799
#3  0x00007ffff7a33af7 in virNetClientSendInternal
(client=0x55555587a1c0, msg=0x55555587a9d0, expectReply=true,
nonBlock=false)
    at rpc/virnetclient.c:1975
#4  0x00007ffff7a33b8b in virNetClientSendWithReply
(client=0x55555587a1c0, msg=0x55555587a9d0) at rpc/virnetclient.c:2003
#5  0x00007ffff7a34a86 in virNetClientProgramCall (prog=0x55555587a440,
client=0x55555587a1c0, serial=0, proc=66, noutfds=0, outfds=0x0,
    ninfds=0x0, infds=0x0, args_filter=0x7ffff42be510 <xdr_void>,
args=0x0, ret_filter=0x7ffff7a277ba <xdr_remote_auth_list_ret>,
    ret=0x7fffffffd580) at rpc/virnetclientprogram.c:331
#6  0x00007ffff7a1da27 in callFull (conn=0x555555858610,
priv=0x555555879cb0, flags=0, fdin=0x0, fdinlen=0, fdout=0x0, fdoutlen=0x0,
    proc_nr=66, args_filter=0x7ffff42be510 <xdr_void>, args=0x0,
ret_filter=0x7ffff7a277ba <xdr_remote_auth_list_ret>, ret=0x7fffffffd580 "")
    at remote/remote_driver.c:5604
#7  0x00007ffff7a1daf4 in call (conn=0x555555858610,
priv=0x555555879cb0, flags=0, proc_nr=66, args_filter=0x7ffff42be510
<xdr_void>,
    args=0x0, ret_filter=0x7ffff7a277ba <xdr_remote_auth_list_ret>,
ret=0x7fffffffd580 "") at remote/remote_driver.c:5626
#8  0x00007ffff7a09618 in remoteAuthenticate (conn=0x555555858610,
priv=0x555555879cb0, auth=0x7ffff7dd4640 <virConnectAuthDefault>,
    authtype=0x0) at remote/remote_driver.c:3483
#9  0x00007ffff7a029c2 in doRemoteOpen (conn=0x555555858610,
priv=0x555555879cb0, auth=0x7ffff7dd4640 <virConnectAuthDefault>, flags=0)
    at remote/remote_driver.c:799
#10 0x00007ffff7a03302 in remoteOpen (conn=0x555555858610,
auth=0x7ffff7dd4640 <virConnectAuthDefault>, flags=0)
    at remote/remote_driver.c:997
#11 0x00007ffff79b5a0a in do_open (name=0x555555850780 "qemu:///system",
auth=0x7ffff7dd4640 <virConnectAuthDefault>, flags=0)
    at libvirt.c:1201
#12 0x00007ffff79b648e in virConnectOpenAuth (name=0x555555850780
"qemu:///system", auth=0x7ffff7dd4640 <virConnectAuthDefault>, flags=0)
    at libvirt.c:1441
#13 0x0000555555574975 in vshReconnect (ctl=0x7fffffffd9b0) at virsh.c:338
#14 0x0000555555577d48 in vshCommandRun (ctl=0x7fffffffd9b0,
cmd=0x55555586a400) at virsh.c:1748
#15 0x000055555557b4c6 in main (argc=3, argv=0x7fffffffdb48) at virsh.c:3222
(gdb)




More information about the libvir-list mailing list