Score:0

Libvirtd not running

kr flag

I can't run libvirtd, I've searched for hours and have asked tens of people, nobody could help me.

When I try to run libvirtd.service it spits out this: Job for libvirtd.service failed because the control process exited with error code. See "systemctl status libvirtd.service" and "journalctl -xe" for details.

Everything that journalctl -xe told me:

-- Logs begin at Wed 2021-10-27 18:45:18 EEST, end at Sat 2021-10-30 12:00:34 EEST. --
Oct 30 11:49:55 digirose systemd[1]: Starting Virtualization daemon...
Oct 30 11:49:55 digirose libvirtd[1116]: 2021-10-30 08:49:55.173+0000: 1116: info : libvirt version: 6.0.0, package: 0ubuntu8.14 (Matthew Ruffell <[email protected]> Tue, 14 Sep 2021 14:00:49 +12>
Oct 30 11:49:55 digirose libvirtd[1116]: 2021-10-30 08:49:55.173+0000: 1116: info : hostname: digirose
Oct 30 11:49:55 digirose libvirtd[1116]: 2021-10-30 08:49:55.173+0000: 1116: error : main:1139 : Can't load config file: configuration file syntax error: /etc/libvirt/libvirtd.conf:513: expecting an assignme>
Oct 30 11:49:55 digirose systemd[1]: libvirtd.service: Main process exited, code=exited, status=1/FAILURE
Oct 30 11:49:55 digirose systemd[1]: libvirtd.service: Failed with result 'exit-code'.
Oct 30 11:49:55 digirose systemd[1]: Failed to start Virtualization daemon.
Oct 30 11:49:55 digirose systemd[1]: libvirtd.service: Scheduled restart job, restart counter is at 1.
Oct 30 11:49:55 digirose systemd[1]: Stopped Virtualization daemon.
Oct 30 11:49:55 digirose systemd[1]: Starting Virtualization daemon...
Oct 30 11:49:55 digirose libvirtd[1141]: 2021-10-30 08:49:55.341+0000: 1141: info : libvirt version: 6.0.0, package: 0ubuntu8.14 (Matthew Ruffell <[email protected]> Tue, 14 Sep 2021 14:00:49 +12>
Oct 30 11:49:55 digirose libvirtd[1141]: 2021-10-30 08:49:55.341+0000: 1141: info : hostname: digirose
Oct 30 11:49:55 digirose libvirtd[1141]: 2021-10-30 08:49:55.341+0000: 1141: error : main:1139 : Can't load config file: configuration file syntax error: /etc/libvirt/libvirtd.conf:513: expecting an assignme>
Oct 30 11:49:55 digirose systemd[1]: libvirtd.service: Main process exited, code=exited, status=1/FAILURE
Oct 30 11:49:55 digirose systemd[1]: libvirtd.service: Failed with result 'exit-code'.
Oct 30 11:49:55 digirose systemd[1]: Failed to start Virtualization daemon.
Oct 30 11:49:55 digirose systemd[1]: libvirtd.service: Scheduled restart job, restart counter is at 2.
Oct 30 11:49:55 digirose systemd[1]: Stopped Virtualization daemon.
Oct 30 11:49:55 digirose systemd[1]: Starting Virtualization daemon...
Oct 30 11:49:55 digirose libvirtd[1189]: 2021-10-30 08:49:55.459+0000: 1189: info : libvirt version: 6.0.0, package: 0ubuntu8.14 (Matthew Ruffell <[email protected]> Tue, 14 Sep 2021 14:00:49 +12>
Oct 30 11:49:55 digirose libvirtd[1189]: 2021-10-30 08:49:55.459+0000: 1189: info : hostname: digirose
Oct 30 11:49:55 digirose libvirtd[1189]: 2021-10-30 08:49:55.459+0000: 1189: error : main:1139 : Can't load config file: configuration file syntax error: /etc/libvirt/libvirtd.conf:513: expecting an assignme>
Oct 30 11:49:55 digirose systemd[1]: libvirtd.service: Main process exited, code=exited, status=1/FAILURE
Oct 30 11:49:55 digirose systemd[1]: libvirtd.service: Failed with result 'exit-code'.
Oct 30 11:49:55 digirose systemd[1]: Failed to start Virtualization daemon.
Oct 30 11:49:55 digirose systemd[1]: libvirtd.service: Scheduled restart job, restart counter is at 3.
Oct 30 11:49:55 digirose systemd[1]: Stopped Virtualization daemon.
Oct 30 11:49:55 digirose systemd[1]: Starting Virtualization daemon...
Oct 30 11:49:55 digirose libvirtd[1215]: 2021-10-30 08:49:55.592+0000: 1215: info : libvirt version: 6.0.0, package: 0ubuntu8.14 (Matthew Ruffell <[email protected]> Tue, 14 Sep 2021 14:00:49 +12>
Oct 30 11:49:55 digirose libvirtd[1215]: 2021-10-30 08:49:55.592+0000: 1215: info : hostname: digirose
Oct 30 11:49:55 digirose libvirtd[1215]: 2021-10-30 08:49:55.592+0000: 1215: error : main:1139 : Can't load config file: configuration file syntax error: /etc/libvirt/libvirtd.conf:513: expecting an assignme>
Oct 30 11:49:55 digirose systemd[1]: libvirtd.service: Main process exited, code=exited, status=1/FAILURE
Oct 30 11:49:55 digirose systemd[1]: libvirtd.service: Failed with result 'exit-code'.
Oct 30 11:49:55 digirose systemd[1]: Failed to start Virtualization daemon.
Oct 30 11:49:55 digirose systemd[1]: libvirtd.service: Scheduled restart job, restart counter is at 4.
Oct 30 11:49:55 digirose systemd[1]: Stopped Virtualization daemon.
Oct 30 11:49:55 digirose systemd[1]: Starting Virtualization daemon...
Oct 30 11:49:55 digirose libvirtd[1219]: 2021-10-30 08:49:55.840+0000: 1219: info : libvirt version: 6.0.0, package: 0ubuntu8.14 (Matthew Ruffell <[email protected]> Tue, 14 Sep 2021 14:00:49 +12>
Oct 30 11:49:55 digirose libvirtd[1219]: 2021-10-30 08:49:55.840+0000: 1219: info : hostname: digirose
Oct 30 11:49:55 digirose libvirtd[1219]: 2021-10-30 08:49:55.840+0000: 1219: error : main:1139 : Can't load config file: configuration file syntax error: /etc/libvirt/libvirtd.conf:513: expecting an assignme>
Oct 30 11:49:55 digirose systemd[1]: libvirtd.service: Main process exited, code=exited, status=1/FAILURE
Oct 30 11:49:55 digirose systemd[1]: libvirtd.service: Failed with result 'exit-code'.
Oct 30 11:49:55 digirose systemd[1]: Failed to start Virtualization daemon.
Oct 30 11:49:55 digirose systemd[1]: libvirtd.service: Scheduled restart job, restart counter is at 5.
Oct 30 11:49:55 digirose systemd[1]: Stopped Virtualization daemon.
Oct 30 11:49:55 digirose systemd[1]: libvirtd.service: Start request repeated too quickly.
Oct 30 11:49:55 digirose systemd[1]: libvirtd.service: Failed with result 'exit-code'.

For what I'm TRYING to do, I am trying to Single GPU Passthrough using RisingPrism's guide, I tried to submit an issue there but nobody has answered me.

I also get this error when I'm trying to run the VM directly from virt-manager (as user, when I run virt-manager as sudo I don't see my VM)

    Error starting domain: Failed to add driver 'vfio-pci' to driver_override  interface of PCI device '0000:08:00.0': Permission denied

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 75, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 111, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 66, in newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/domain.py", line 1279, in startup
    self._backend.create()
  File "/usr/lib/python3/dist-packages/libvirt.py", line 1234, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirt.libvirtError: Failed to add driver 'vfio-pci' to driver_override  interface of PCI device '0000:08:00.0': Permission denied

Any help will be appreciated! Thanks!

Christian Ehrhardt avatar
sl flag
From your log: "Can't load config file: configuration file syntax error: /etc/libvirt/libvirtd.conf:513: expecting an assignme>" There is no such entry in the default file on that line, I'd recommend to check that file. Or if unsure copy your current config and restore the default from the package, then adapt it one by one and check when the service fails to restart properly.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.