You are not logged in.

#1 2018-06-09 06:08:15

brettgilio
Member
Registered: 2018-06-09
Posts: 3

[Solved] Libvirtd service is failing to start

Hi all,

I am attempting to run libvirtd so I may run my virtual machines. I have enabled and started the service, but it is failing.

● libvirtd.service - Virtualization daemon
   Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sat 2018-06-09 01:00:20 CDT; 44s ago
     Docs: man:libvirtd(8)
           https://libvirt.org
  Process: 611 ExecStart=/usr/bin/libvirtd $LIBVIRTD_ARGS (code=exited, status=6)
 Main PID: 611 (code=exited, status=6)

I attempted to look at some logs but it produced nothing. My next step was to run it in the console, which gave me some alerts about missing libraries, librbd.so.1. I installed ceph-libs and that took care of that. Next I was prompted with an error that I was missing masqdns in /usr/bin. From there I installed that, and now I am out of ideas.

libvirtd is still not starting.

I am sorry to take up your time, and I hope somebody knows how to proceed from here.

Best,
Brett Gilio

Edit #1: I am additionally getting this

$libvirtd -v    
2018-06-09 06:50:26.943+0000: 5622: info : libvirt version: 4.4.0
2018-06-09 06:50:26.943+0000: 5622: info : hostname: oryxpro
2018-06-09 06:50:26.943+0000: 5622: info : virObjectNew:248 : OBJECT_NEW: obj=0x5645c8a4c060 classname=virAccessManager
2018-06-09 06:50:26.943+0000: 5622: info : virObjectNew:248 : OBJECT_NEW: obj=0x5645c8a3f190 classname=virAccessManager
2018-06-09 06:50:26.943+0000: 5622: info : virObjectRef:382 : OBJECT_REF: obj=0x5645c8a4c060
2018-06-09 06:50:26.943+0000: 5622: info : virObjectUnref:344 : OBJECT_UNREF: obj=0x5645c8a4c060
2018-06-09 06:50:26.943+0000: 5622: error : virPidFileAcquirePath:422 : Failed to acquire pid file '/run/user/1000/libvirt/libvirtd.pid': Resource temporarily unavailable
2018-06-09 06:50:26.943+0000: 5622: info : virNetlinkEventServiceStopAll:865 : stopping all netlink event services

I am guessing it has to do with the location of the pid in 1000, but If I am correct I am not sure how it ended up there or how to fix it.

Edit #2:

 $ journalctl -b -u libvirtd.service
-- Logs begin at Fri 2018-06-08 19:17:58 CDT, end at Sat 2018-06-09 02:19:18 CDT. --
Jun 09 02:16:56 oryxpro systemd[1]: Started Virtualization daemon.
Jun 09 02:16:57 oryxpro libvirtd[415]: 2018-06-09 07:16:57.084+0000: 415: info : libvirt version: 4.4.0
Jun 09 02:16:57 oryxpro libvirtd[415]: 2018-06-09 07:16:57.084+0000: 415: info : hostname: oryxpro
Jun 09 02:16:57 oryxpro libvirtd[415]: 2018-06-09 07:16:57.084+0000: 415: error : virNetTLSContextCheckCertFile:112 : Cannot read CA certificate >
Jun 09 02:16:57 oryxpro systemd[1]: libvirtd.service: Main process exited, code=exited, status=6/NOTCONFIGURED
Jun 09 02:16:57 oryxpro systemd[1]: libvirtd.service: Failed with result 'exit-code'.
Jun 09 02:16:57 oryxpro systemd[1]: libvirtd.service: Service hold-off time over, scheduling restart.
Jun 09 02:16:57 oryxpro systemd[1]: libvirtd.service: Scheduled restart job, restart counter is at 1.
Jun 09 02:16:57 oryxpro systemd[1]: Stopped Virtualization daemon.

Last edited by brettgilio (2018-06-11 00:15:18)

Offline

#2 2018-06-09 11:22:23

lo1
Member
Registered: 2017-09-25
Posts: 584

Re: [Solved] Libvirtd service is failing to start

Jun 09 02:16:57 oryxpro libvirtd[415]: 2018-06-09 07:16:57.084+0000: 415: error : virNetTLSContextCheckCertFile:112 : Cannot read CA certificate >
Jun 09 02:16:57 oryxpro systemd[1]: libvirtd.service: Main process exited, code=exited, status=6/NOTCONFIGURED

Seems that the logs may be suggesting some missing configuration? Start over from Libvirt wiki page, useful to check also this one, don't miss the authentication setup, then come back when you know exactly where you got stuck.

Offline

#3 2018-06-10 23:54:38

brettgilio
Member
Registered: 2018-06-09
Posts: 3

Re: [Solved] Libvirtd service is failing to start

lo1 wrote:
Jun 09 02:16:57 oryxpro libvirtd[415]: 2018-06-09 07:16:57.084+0000: 415: error : virNetTLSContextCheckCertFile:112 : Cannot read CA certificate >
Jun 09 02:16:57 oryxpro systemd[1]: libvirtd.service: Main process exited, code=exited, status=6/NOTCONFIGURED

Seems that the logs may be suggesting some missing configuration? Start over from Libvirt wiki page, useful to check also this one, don't miss the authentication setup, then come back when you know exactly where you got stuck.


I have confirmed it is actually a dependency issue with the newer package. I downgraded the package, was notified of the missing dependencies, and reupgraded and it works.

ceph-libs-13.2.0-1 leveldb-1.20-1 oath-toolkit-2.6.2-3

I will mark this solved when I have received word from an arch admin or TTM about the state of the package.

Last edited by brettgilio (2018-06-10 23:57:27)

Offline

#4 2018-06-11 00:06:02

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [Solved] Libvirtd service is failing to start

Offline

#5 2018-06-11 00:14:54

brettgilio
Member
Registered: 2018-06-09
Posts: 3

Re: [Solved] Libvirtd service is failing to start

Offline

Board footer

Powered by FluxBB