<div dir="ltr"><div><span style="color:rgb(153,0,255)">On Tue, Apr 13, 2021 at 15:56:57 +0530, shafnamol N wrote:<br>
>> Hi,<br>
>> <br>
>> I am using *CentOS 8*. I have built *libvirt* with the following method:<span class="gmail-im"><br>
>> <br>
>> $ meson build -Dsystem=true<br>
> >$ ninja -C build<br>
> >$ ninja -C build install<br>
>><br>
> >But the problem is when i started it<br>
> ><br>
>> # systemctl start libvirtd<br>
> .Job for libvirtd.service failed because the control process exited<br>
> .with error code.<br>
> >See "systemctl status libvirtd.service" and "journalctl -xe" for details.<br>
> .><br>
>>i tried to get the status of libvirt<br>
> ><br>
> ># systemctl status libvirtd<br>
> ><br>
> >libvirtd.service - Virtualization daemon<br>
>  >  Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled;<br>
> >vendor preset: enabled)<br>
>  >  Active: failed (Result: exit-code)<br>
> ><br>
>> What will be the problem?<br>
<br></span>
>Well, what does the log say?<br>
<br>
<a href="https://www.libvirt.org/kbase/debuglogs.html" rel="noreferrer" target="_blank">>https://www.libvirt.org/kbase/debuglogs.html</a></span></div><div><span style="color:rgb(153,0,255)"><br></span></div><div><br></div><div><br></div><div>I have edited <span>/etc/libvirt/libvirtd.conf</span> file based on <br></div><div><a href="https://www.libvirt.org/kbase/debuglogs.html" target="_blank">https://www.libvirt.org/kbase/debuglogs.html</a></div><div><br></div><div>Then restarted libvirt</div><div># systemctl restart libvirtd.service<br>Job for libvirtd.service failed because the control process exited with error code.<br>See "systemctl status libvirtd.service" and "journalctl -xe" for details.</div><div><br></div><div><span style="color:rgb(153,0,255)">>There is not enough info to figure out what the problem is. Including<br>
>the output of 'journalctl -xe' as suggested would be useful.</span><font color="#888888"><br></font></div><div><br></div><div># journalctl -xe</div><div>-- Unit libvirtd.service has failed.<br>-- <br>-- The result is failed.<br>Apr 15 09:12:33 csg-dellemcsvr0 systemd[1]: libvirtd-ro.socket: Failed with result 'service-start-limit-hit'.<br>-- Subject: Unit failed<br>-- Defined-By: systemd<br>-- Support: <a href="https://access.redhat.com/support">https://access.redhat.com/support</a><br>-- <br>-- The unit libvirtd-ro.socket has entered the 'failed' state with result 'service-start-limit-hit'.<br>Apr 15 09:12:33 csg-dellemcsvr0 systemd[1]: libvirtd-admin.socket: Failed with result 'service-start-limit-hit'.<br>-- Subject: Unit failed<br>-- Defined-By: systemd<br>-- Support: <a href="https://access.redhat.com/support">https://access.redhat.com/support</a><br>-- <br>-- The unit libvirtd-admin.socket has entered the 'failed' state with result 'service-start-limit-hit'.<br>Apr 15 09:12:33 csg-dellemcsvr0 systemd[1]: libvirtd.socket: Failed with result 'service-start-limit-hit'.<br>-- Subject: Unit failed<br>-- Defined-By: systemd<br>-- Support: <a href="https://access.redhat.com/support">https://access.redhat.com/support</a><br>-- <br>-- The unit libvirtd.socket has entered the 'failed' state with result 'service-start-limit-hit'.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 13, 2021 at 4:29 PM Pavel Hrdina <<a href="mailto:phrdina@redhat.com">phrdina@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Apr 13, 2021 at 03:56:57PM +0530, shafnamol N wrote:<br>
> Hi,<br>
> <br>
> I am using *CentOS 8*. I have built *libvirt* with the following method:<br>
> <br>
> $ meson build -Dsystem=true<br>
> $ ninja -C build<br>
> $ ninja -C build install<br>
<br>
I would recommend to never to this again. In general installing upstream<br>
projects into any distribution like this is asking for a lot of trouble.<br>
The upstream project can change files owned by other packages and break<br>
them and running yum update can override anything the upstream project<br>
installed.<br>
<br>
Ideally you want to create in case of CentOS RPM package and install<br>
that instead. If that's not possible you should install upstream project<br>
into /usr/local/ directory which distribution packages usually don't<br>
touch at all.<br>
<br>
In case of libvirt you can do the following steps:<br>
<br>
    meson build<br>
    ninja -C build dist<br>
    rpmbuild -tb build/meson-dist/libvirt-{version}.tar.xz<br>
<br>
The resulting RPMs will be in ~/rpmbuild/RPMS/{arch}/<br>
<br>
you can install all of them but you can also install only what you are<br>
interested in.<br>
<br>
> But the problem is when i started it<br>
> <br>
> # systemctl start libvirtd<br>
> Job for libvirtd.service failed because the control process exited<br>
> with error code.<br>
> See "systemctl status libvirtd.service" and "journalctl -xe" for details.<br>
> <br>
> i tried to get the status of libvirt<br>
> <br>
> # systemctl status libvirtd<br>
> <br>
> libvirtd.service - Virtualization daemon<br>
>    Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled;<br>
> vendor preset: enabled)<br>
>    Active: failed (Result: exit-code)<br>
> <br>
> What will be the problem?<br>
> <br>
> Thanks for the help in advanc....<br>
<br>
There is not enough info to figure out what the problem is. Including<br>
the output of 'journalctl -xe' as suggested would be useful.<br>
<br>
Pavel<br>
</blockquote></div>