何鑫
2012-Oct-31 01:41 UTC
[libvirt-users] error : virPidFileAcquirePath:345 : Failed to acquire pid file '/home/corey/.libvirt/libvirtd.pid': Resource temporarily unavailable
Hi all, When I try to start libvirtd, using "libvirtd -d", error notification shown below:error : virPidFileAcquirePath:345 : Failed to acquire pid file '/$HOME/.libvirt/libvirtd.pid': Resource temporarily unavailable Using "libvirtd -v", show: "libvirtd: error: Unable to obtain pidfile. Check /var/log/messages or run without --daemon for more info." The file "libvirtd.pid" only contains "2010" without any other infomation. I have checked that libvirtd has been installed in "/libvirt/sbin" with binary format by self-compiled. So how can I solve the problem? Or how to start libvirtd? Meanwhile, virsh can't search "libvirt-sock", because the libvirtd is not started successfully. Thanks a lot! Corey -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20121031/50849c6e/attachment.htm>
Michal Privoznik
2012-Oct-31 07:35 UTC
[libvirt-users] error : virPidFileAcquirePath:345 : Failed to acquire pid file '/home/corey/.libvirt/libvirtd.pid': Resource temporarily unavailable
On 31.10.2012 02:41, ?? wrote:> Hi all, > When I try to start libvirtd, using "libvirtd -d", error > notification shown below: > error : virPidFileAcquirePath:345 : Failed to acquire pid file > '/$HOME/.libvirt/libvirtd.pid': Resource temporarily unavailable > Using "libvirtd -v", show: > "libvirtd: error: Unable to obtain pidfile. Check /var/log/messages > or run without --daemon for more info." > The file "libvirtd.pid" only contains "2010" without any other > infomation.That means either there already is another libvirtd running or the previous one died unexpectedly without removing this PID file. You can distinguish these two via 'pgrep libvirtd' which either gives you the very same PID as the one in the PID file (=libvirtd is running) or nothing and than you should be safe to remove the file and start libvirtd again. However, if libvirtd keeps failing to initialize, there might be a misconfiguration problem (and libvirt bug as well since we ought to remove PID file before quiting). Michal
何鑫
2012-Nov-01 00:56 UTC
[libvirt-users] error : virPidFileAcquirePath:345 : Failed to acquire pid file '/home/corey/.libvirt/libvirtd.pid': Resource temporarily unavailable
I have checked that I removed all distro things, ran self-built virsh, libvirtd. To make sure, I use absolute paths for running. Also I will check process status in time. This is "ps" shown: 2996 1 3 08:48 ? 00:00:00 /usr/local/libvirt/sbin/libvirtd -d Is there some thing wrong? I can't search "libvirt-sock" after runing it. Sorry for top-posting. Thanks a lot!> Date: Wed, 31 Oct 2012 10:25:37 -0600 > From: eblake at redhat.com > To: wherethriving at hotmail.com > Subject: Re: [libvirt-users] error : virPidFileAcquirePath:345 : Failed to acquire pid file '/home/corey/.libvirt/libvirtd.pid': Resource temporarily unavailable > > On 10/31/2012 10:00 AM, ?? wrote: > > Actually I make sure that I build libvirt, using "./configure --prefix="/usr/local/libvrt"". I have checked that all related files are under the directory-"/usr/local/libvirt", additionally, libvirtd's path is "/usr/local/libvirt/sbin/libvirtd". I am confused why I can't search libvirt-sock in my disk after starting libvirtd. > > Could you please give me some advises? > > Thanks a lot! > > Note that '--prefix=/usr/local/libvrt' is a typo. Are you sure you are > installing things where you think you are? Also note that > /usr/local/libvirt is NOT where your distro installed things, so if you > are using your distro's virsh, it won't connect to your self-built > libvirtd. And have you double-checked that you are running your > self-built libvirtd? > > Finally, you are STILL top-posting, and STILL sending mail to just me > instead of the list. It's making it hard to help you when you can't > follow our requests, and for others that might be following this thread > in the archives in the future to learn whatever ends up being your final > solution. > > -- > Eric Blake eblake at redhat.com +1-919-301-3266 > Libvirt virtualization library http://libvirt.org >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20121101/502b73d5/attachment.htm>
Gao Yongwei
2012-Nov-01 13:54 UTC
[libvirt-users] error : virPidFileAcquirePath:345 : Failed to acquire pid file '/home/corey/.libvirt/libvirtd.pid': Resource temporarily unavailable
2012/11/1 ?? <wherethriving at hotmail.com>> I have checked that I removed all distro things, ran self-built virsh, > libvirtd. To make sure, I use absolute paths for running. Also I will check > process status in time. This is "ps" shown: > 2996 1 3 08:48 ? 00:00:00 /usr/local/libvirt/sbin/libvirtd -d > > Is there some thing wrong? I can't search "libvirt-sock" after runing it. >can you see any tips in libvirtd --help ? is there a default sock path in the help content?> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20121101/5669f164/attachment.htm>