You are not logged in.

#1 2019-08-04 00:39:54

singing_kettle
Member
Registered: 2018-07-18
Posts: 3

libvirtd - Unit -.mount is masked

Hello fellow archers.

When attempting to fire up one of my VMs I noticed that the libvirtd daemon refused to start - It started throwing the error seen below.

Failed to start libvirtd.service: Unit -.mount is masked.

My google-foo was unable to uncover any similar behavior from other users with libvirtd or other services. And indeed, starting/stopping any of my other services fails to produce the above issue. After poking around I noticed that all of my systemd filesystem mounts were masked, even the Root Mount which seems to be the issue indicated. Now admittedly, I'm all that familiar with systemd and it's role in mounting partitions so I don't know if this is bog-standard or not, but I found this quite odd.

I've been trying to read online how one might go about regenerating these configs from the fstab entries (no luck), or indeed where on my FS these .mount files are even located. So far my greping, finding, and locating have failed to uncover them in either /etc/systemd or /usr/lib/systemd. Rebooting also offers no solution.

Any takers?

Offline

#2 2019-08-04 00:51:50

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

Re: libvirtd - Unit -.mount is masked

What about /run/systemd/generator/ or /run/systemd/system ?

Offline

#3 2019-08-04 01:03:25

singing_kettle
Member
Registered: 2018-07-18
Posts: 3

Re: libvirtd - Unit -.mount is masked

Excellent - the .mount files are in /run/systemd/generator and the symlinks in /run/systemd/system are all symlink'd to /dev/null, so that explains why it's reporting as masked. I guess my next question is, is this normal? Why does libvirtd care about the root mount when everything's already mounted?

local-fs.service is already active, so idk why it's failing. I can post contents of systemctl if that might help.

libvirtd.service:

[Unit]
Description=Virtualization daemon
Requires=virtlogd.socket
Requires=virtlockd.socket
Wants=systemd-machined.service
Before=libvirt-guests.service
After=network.target
After=dbus.service
After=iscsid.service
After=apparmor.service
After=local-fs.target
After=remote-fs.target
After=systemd-logind.service
After=systemd-machined.service
Documentation=man:libvirtd(8)
Documentation=https://libvirt.org

[Service]
Type=simple
EnvironmentFile=-/etc/conf.d/libvirtd
ExecStart=/usr/bin/libvirtd $LIBVIRTD_ARGS
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
# At least 1 FD per guest, often 2 (eg qemu monitor + qemu agent).
# eg if we want to support 4096 guests, we'll typically need 8192 FDs
# If changing this, also consider virtlogd.service & virtlockd.service
# limits which are also related to number of guests
LimitNOFILE=8192
# The cgroups pids controller can limit the number of tasks started by
# the daemon, which can limit the number of domains for some hypervisors.
# A conservative default of 8 tasks per guest results in a TasksMax of
# 32k to support 4096 guests.
TasksMax=32768

[Install]
WantedBy=multi-user.target
Also=virtlockd.socket
Also=virtlogd.socket

Offline

#4 2019-08-04 01:43:43

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

Re: libvirtd - Unit -.mount is masked

What are the permissions on / and /etc/fstab ?

Offline

#5 2019-08-09 03:05:16

singing_kettle
Member
Registered: 2018-07-18
Posts: 3

Re: libvirtd - Unit -.mount is masked

Sorry for the delay. The permissions are as follows:

rwxr-x-r-x  root:root     /
rw-r--r--   root:root     /etc/fstab

Last edited by singing_kettle (2019-08-09 03:08:18)

Offline

Board footer

Powered by FluxBB