You are not logged in.

#1 2016-03-05 00:01:39

thetimmorland
Member
Registered: 2016-03-02
Posts: 3

[SOLVED] libvirt.service fails to start

Hello forum, This is my first post so let me know if anything is formated wrong.

I have been trying to set up libvirt in order to create a windows virtual machine. I am new to libvirt so I followed the wiki's instructions. Whenever I try to start the libvirt deamon it fails with the message, "Job for libvirtd.service failed because a timeout was exceeded. See "systemctl status libvirtd.service" and "journalctl -xe" for details." Any help on solving this issue is much appreciated.

Here is the output of "systemctl status libvirtd.service":

● libvirtd.service - Virtualization daemon
   Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: disabled)
   Active: activating (start) since Fri 2016-03-04 18:53:18 EST; 18s ago
     Docs: man:libvirtd(8)
           [url]http://libvirt.org[/url]
 Main PID: 812 (libvirtd)
    Tasks: 18 (limit: 512)
   CGroup: /system.slice/libvirtd.service
           ├─620 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
           ├─621 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
           └─812 /usr/bin/libvirtd --listen

Mar 04 18:53:18 tims-desktop systemd[1]: Starting Virtualization daemon...
Mar 04 18:53:19 tims-desktop dnsmasq[620]: read /etc/hosts - 2 addresses
Mar 04 18:53:19 tims-desktop dnsmasq[620]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses
Mar 04 18:53:19 tims-desktop dnsmasq-dhcp[620]: read /var/lib/libvirt/dnsmasq/default.hostsfile

Here is the output of "journalctl -xe":

-- Subject: Unit libvirtd.service has failed
-- Defined-By: systemd
-- Support: [url]http://lists.freedesktop.org/mailman/listinfo/systemd-devel[/url]
-- 
-- Unit libvirtd.service has failed.
-- 
-- The result is failed.
Mar 04 18:59:20 tims-desktop systemd[1]: libvirtd.service: Unit entered failed state.
Mar 04 18:59:20 tims-desktop systemd[1]: libvirtd.service: Failed with result 'timeout'.
Mar 04 18:59:20 tims-desktop sudo[1260]: pam_unix(sudo:session): session closed for user root
Mar 04 18:59:20 tims-desktop polkitd[662]: Unregistered Authentication Agent for unix-process:1261:42678 (system bus name :1.27, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, 
Mar 04 18:59:20 tims-desktop systemd[1]: libvirtd.service: Service hold-off time over, scheduling restart.
Mar 04 18:59:20 tims-desktop systemd[1]: Stopped Virtualization daemon.
-- Subject: Unit libvirtd.service has finished shutting down
-- Defined-By: systemd
-- Support: [url]http://lists.freedesktop.org/mailman/listinfo/systemd-devel[/url]
-- 
-- Unit libvirtd.service has finished shutting down.
Mar 04 18:59:20 tims-desktop systemd[1]: Starting Virtualization daemon...
-- Subject: Unit libvirtd.service has begun start-up
-- Defined-By: systemd
-- Support: [url]http://lists.freedesktop.org/mailman/listinfo/systemd-devel[/url]
-- 
-- Unit libvirtd.service has begun starting up.
Mar 04 18:59:20 tims-desktop dnsmasq[620]: read /etc/hosts - 2 addresses
Mar 04 18:59:20 tims-desktop dnsmasq[620]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses
Mar 04 18:59:20 tims-desktop dnsmasq-dhcp[620]: read /var/lib/libvirt/dnsmasq/default.hostsfile
Mar 04 19:00:51 tims-desktop systemd[1]: libvirtd.service: Start operation timed out. Terminating.
Mar 04 19:00:51 tims-desktop systemd[1]: Failed to start Virtualization daemon.
-- Subject: Unit libvirtd.service has failed
-- Defined-By: systemd
-- Support: [url]http://lists.freedesktop.org/mailman/listinfo/systemd-devel[/url]
-- 
-- Unit libvirtd.service has failed.
-- 
-- The result is failed.
Mar 04 19:00:51 tims-desktop systemd[1]: libvirtd.service: Unit entered failed state.
Mar 04 19:00:51 tims-desktop systemd[1]: libvirtd.service: Failed with result 'timeout'.
Mar 04 19:00:51 tims-desktop systemd[1]: libvirtd.service: Service hold-off time over, scheduling restart.
Mar 04 19:00:51 tims-desktop systemd[1]: Stopped Virtualization daemon.
-- Subject: Unit libvirtd.service has finished shutting down
-- Defined-By: systemd
-- Support: [url]http://lists.freedesktop.org/mailman/listinfo/systemd-devel[/url]
-- 
-- Unit libvirtd.service has finished shutting down.
Mar 04 19:00:51 tims-desktop systemd[1]: Starting Virtualization daemon...
-- Subject: Unit libvirtd.service has begun start-up
-- Defined-By: systemd
-- Support: [url]http://lists.freedesktop.org/mailman/listinfo/systemd-devel[/url]
-- 
-- Unit libvirtd.service has begun starting up.
Mar 04 19:00:51 tims-desktop dnsmasq[620]: read /etc/hosts - 2 addresses
Mar 04 19:00:51 tims-desktop dnsmasq[620]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses
Mar 04 19:00:51 tims-desktop dnsmasq-dhcp[620]: read /var/lib/libvirt/dnsmasq/default.hostsfile

Last edited by thetimmorland (2016-03-05 00:57:09)

Offline

#2 2016-03-05 00:31:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] libvirt.service fails to start

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-03-05 00:40:34

smekkleysa
Member
Registered: 2013-11-18
Posts: 15

Re: [SOLVED] libvirt.service fails to start

I am also experiencing the same issue.
I increased the log level in the /etc/libvirt/libvirtd.conf to INFO, but no obvious logs are appearing.
Maybe, it is some other process that is faulty.

Offline

#4 2016-03-05 00:41:23

deusstultus
Member
Registered: 2016-03-04
Posts: 4

Re: [SOLVED] libvirt.service fails to start

Duplicates https://bbs.archlinux.org/viewtopic.php?id=209588  which has a workaround (#3) and a potential package fix #27.

Offline

#5 2016-03-05 00:44:11

thetimmorland
Member
Registered: 2016-03-02
Posts: 3

Re: [SOLVED] libvirt.service fails to start

smekkleysa wrote:

I am also experiencing the same issue.
I increased the log level in the /etc/libvirt/libvirtd.conf to INFO, but no obvious logs are appearing.
Maybe, it is some other process that is faulty.

I have done that as well. Perhaps the issue is with the package itself, and not the configuration, since multiple people are having the issue.

Last edited by thetimmorland (2016-03-05 00:44:40)

Offline

#6 2016-03-05 00:54:44

thetimmorland
Member
Registered: 2016-03-02
Posts: 3

Re: [SOLVED] libvirt.service fails to start

deusstultus wrote:

Duplicates https://bbs.archlinux.org/viewtopic.php?id=209588  which has a workaround (#3) and a potential package fix #27.

Thank you for showing this to me, I really should have looked at the forums before I posted. This workaround worked for me.

Offline

#7 2016-03-05 04:34:42

smekkleysa
Member
Registered: 2013-11-18
Posts: 15

Re: [SOLVED] libvirt.service fails to start

Yes, commenting out Type=notify in the unit file worked for me as well.

Offline

#8 2016-03-05 14:14:56

Zhao Zilong
Member
Registered: 2016-03-05
Posts: 1

Re: [SOLVED] libvirt.service fails to start

I have same problem. Thank you very much.

Offline

Board footer

Powered by FluxBB