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.

 

How can I fix this problem. There is a .pid file in the /var/run/ directory. I already deleted it and used the command libvirtd –daemon –listen but it won’t start. It doesn’t show any output but when I use the ps –ef command, I see that the service is not running.

 

Can you please help me?

 

With kind regards,

Wouter.