[libvirt] Problem with libvirt daemon

Daniel P. Berrange berrange at redhat.com
Thu Nov 10 14:22:55 UTC 2011


On Thu, Nov 10, 2011 at 02:46:42PM +0100, Wouter - Iamotor wrote:
> Hello,
> 
>  
> 
> I have a problem with the libvirt daemon. I have a little php script which
> should connect with libvirt, but it won't.
> 
>  
> 
> When I try to start the libvirt daemon I get this error (using the command
> libvirtd --listen):
> 
> 2011-11-09 19:35:18.095: 3560: info : libvirt version: 0.9.7
> 
> 2011-11-09 19:35:18.095: 3560: error : virPidFileAcquirePath:345 : Failed to
> acquire pid file '/var/run/libvirtd.pid': Resource temporarily unavailable
> 
>  
> 
> So the daemon won't start and isn't started yet. If I check if the service
> is running with ps -ef | grep libvirtd I get this output:
> 
> root      2865     1  0 15:50 ?        00:00:00 /usr/sbin/libvirtd -d
> 
> root      3149     1  0 19:17 ?        00:00:00 libvirtd -d
> 
> root      3206     1  0 19:17 ?        00:00:00 libvirtd -dl
> 
> root      3300     1  0 19:20 ?        00:00:00 libvirtd --listen --daemon
> 
> root      3356     1  0 19:21 ?        00:00:00 libvirtd --listen --daemon
> 
> root      3564  3077  0 19:36 pts/0    00:00:00 grep --color=auto libvirtd
> 
>  
> 
> Here you can see that the service isn't running.

Err, that shows precisely the opposite of what you say. It shows that
you have libvirtd running *5* times, no doubt due to you deleting the
pidfiles.


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list