Re: [libvirt] virsh hangs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 23, 2009 at 09:39:25PM +0100, Daniel P. Berrange wrote:
> On Tue, Jun 23, 2009 at 06:22:34AM -0700, Garry Dolley wrote:
> > My system:
> > 
> > Ubuntu Jaunty 9.04
> > 
> > libvirt 0.6.4
> > kvm 0.8.4
> > qemu 0.10.0
> > 
> > I'm not sure what triggered this, I was working with several VMs,
> > and then found that virsh decided to hang:
> > 
> > garry@kvr02:~$ virsh list
> > Connecting to uri: qemu:///system
> > <hang>
> > 
> > I have to ^C out of it.
> > 
> > If I 'force-stop' and then 'start' libvirt-bin:
> > 
> > garry@kvr02:~$ sudo /etc/init.d/libvirt-bin force-stop
> >  * Forcefully stopping libvirt management daemon libvirtd
> >    ...done.
> > garry@kvr02:~$ sudo /etc/init.d/libvirt-bin start
> >  * Starting libvirt management daemon libvirtd
> >    ...done.
> > 
> > I can then get something:
> > 
> > garry@kvr02:~$ virsh list
> > Connecting to uri: qemu:///system
> >  Id Name                 State
> > ----------------------------------
> >   1 vm1                  running
> >   4 s3-lax               running
> >  14 freebsd-test         running
> >  19 freebsd-2            running
> > <hang>
> > 
> > But it hangs after that 4th one.  I must ^C it again.
> > 
> > If I do 'virsh list' again, it'll then show nothing (hangs like it
> > does above).
> > 
> > Any suggestions?
> 
> Install the -debug packages for libvirt, and get a trace
> of all its threads under GDB, eg
> 
>   (gdb) thread apply all backtrace
> 
> 
> Also, capture traces of the client & server, by setting LIBVIRT_DEBUG=1
> before running each.

I solved the problem, but thanks for this info.  I'll use it next
time.

How do I attach gdb to a running process? (I'm a gdb noob)

-- 
Garry Dolley
ARP Networks, Inc. | http://www.arpnetworks.com | (818) 206-0181
Data center, VPS, and IP Transit solutions
Member Los Angeles County REACT, Unit 336 | WQGK336
Blog http://scie.nti.st

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]