VIRTLOCKD(8)
π VIRTLOCKD(8) β¨
okay so you found the virtlockd manual page, and bestie, we're gonna get through it together. it's the section 8 daemon page from Virtualization Support β very official, very demure. let's go π
πΈ NAME πΈ
virtlockd β the libvirt lock management daemon. it manages locks. that's the whole vibe. π
β¨ SYNOPSIS β¨
virtlockd [OPTION]...
literally just the binary and some options. that's it. periodt.
π DESCRIPTION π
so virtlockd is a server-side daemon component of the libvirt virtualization management system, and its whole job β its main character energy, if you will β is managing the locks held against virtual machine resources, like their disks. π₯οΈπ
important: this daemon is not used directly by libvirt client applications. nope. instead it gets called on their behalf by libvirtd. iykyk.
the way this slaps is that by keeping the locks in a standalone daemon, the main libvirtd daemon can be restarted without any risk of losing those locks. no lost locks, no drama. π«Ά
and the glow-up? virtlockd has the ability to re-exec() itself upon receiving SIGUSR1, so you can do live upgrades without downtime. iconic behavior, honestly. π₯
also it listens for requests on a local Unix domain socket. lowkey cozy.
π OPTIONS π
-h,--helpβ displays command line help usage, then dips out (exits). π-d,--daemonβ runs as a daemon and writes the PID file. π§-f,--configFILE β use this configuration file, overriding the default value.-t,--timeoutSECONDS β automatically shuts down after SECONDS have elapsed with no active client or lock. she leaves when the party's over π-p,--pid-fileFILE β use this name for the PID file, overriding the default value.-v,--verboseβ enables output of verbose messages. chatty era π£οΈ-V,--versionβ displays version information, then exits.
π¦ SIGNALS π¦
on receipt of SIGUSR1, virtlockd will re-exec() its binary while maintaining all current locks and clients. that means live upgrades of the virtlockd service. no cap, that's the good stuff. β
π FILES π
when run as root π
/etc/libvirt/virtlockd.conf
the default configuration file used by virtlockd, unless it's overridden on the command line using the -f | --config option.
/run/libvirt/virtlockd-sock
the sockets virtlockd will use.
/run/virtlockd.pid
the PID file to use, unless overridden by the -p | --pid-file option.
when run as non-root π±
$XDG_CONFIG_HOME/libvirt/virtlockd.conf
the default configuration file used by virtlockd, unless overridden on the command line using the -f | --config option.
$XDG_RUNTIME_DIR/libvirt/virtlockd-sock
the socket virtlockd will use.
$XDG_RUNTIME_DIR/libvirt/virtlockd.pid
the PID file to use, unless overridden by the -p | --pid-file option.
if $XDG_CONFIG_HOME is not set in your environment, virtlockd will use $HOME/.config π
if $XDG_RUNTIME_DIR is not set in your environment, virtlockd will use $HOME/.cache ποΈ
π EXAMPLES π
to retrieve the version of virtlockd, bestie:
# virtlockd --version
virtlockd (libvirt) 12.8.0
to start virtlockd, instructing it to daemonize and create a PID file:
# virtlockd -d
# ls -la /run/virtlockd.pid
-rw-r--r-- 1 root root 6 Jul 9 02:40 /run/virtlockd.pid
see how it ate that? π
π BUGS π
please report all bugs you discover. not some. all. π this should be done via either:
- the mailing list
https://libvirt.org/contact.html
- the bug tracker
alternatively, you may report bugs to your software distributor / vendor. we don't gatekeep bug reports here π«Ά
π AUTHORS π
please refer to the AUTHORS file distributed with libvirt.
π COPYRIGHT π
Copyright (C) 2006-2013 Red Hat, Inc., and the authors listed in the libvirt AUTHORS file.
π₯ LICENSE π₯
virtlockd is distributed under the terms of the GNU LGPL v2.1+. this is free software; see the source for copying conditions. and listen β there is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. read that again. no warranty. none. π
β SEE ALSO β
libvirtd(8), https://libvirt.org/
okay that's the whole page bestie, you're officially educated πβ¨ β signed off from the Virtualization Support section, page VIRTLOCKD(8) β go forth and lock responsibly ππΈ
π¦ where this page comes from
- centos-stream 10: libvirt-daemon-lock 12.8.0-1.el10 Β· GPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND OFL-1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms