VIRTLOGD(8)
π VIRTLOGD(8) β the libvirt log management daemon, explained by your fave β¨
okay so bestie, welcome to the virtlogd page π this is the page for virtlogd, and honestly it's one of those quiet backstage queens that keeps everything from falling apart. let's get into it.
πΈ NAME
virtlogd β the libvirt log management daemon. yes. she manages logs. she's the libvirt log management daemon. periodt π
β¨ SYNOPSIS
virtlogd [OPTION]...
that's it. that's the whole vibe. drop it in a terminal with whatever options you want π«Ά
π¦ DESCRIPTION
so the virtlogd program is a server side daemon component of the libvirt virtualization management system, and her whole job is managing logs from virtual machine consoles. iconic frankly π
real talk though: this daemon is not used directly by libvirt client applications. like, she doesn't take walk-ins. instead, it's called on their behalf by libvirtd. it's giving personal assistant energy honestly.
and here's why that slaps: by keeping the logs in a standalone daemon, the main libvirtd daemon can be restarted without risk of losing logs π like... no lost receipts, no lost lore. and the virtlogd daemon has the ability to re-exec() itself upon receiving SIGUSR1, so you get live upgrades without downtime bestie, no cap π₯
also the virtlogd daemon listens for requests on a local Unix domain socket. that's her whole address ok.
π OPTIONS
-h,--helpβ display command line help usage, then exit. she tells you how she works and dips π-d,--daemonβ run as a daemon and write PID file. main character mode, but running in the background π-f,--configFILEβ use this configuration file, overriding the default value. your config, your rules β¨-t,--timeoutSECONDSβ automatically shutdown after SECONDS have elapsed with no active console log. she's not gonna sit around waiting forever, bestie, she has a life πΈ-p,--pid-fileFILEβ use this name for the PID file, overriding the default value π¦-v,--verboseβ enable output of verbose messages. she will literally tell you everything π£οΈ-V,--versionβ display version information, then exit β
β‘ SIGNALS
on receipt of SIGUSR1, virtlogd will re-exec() its binary, while maintaining all current logs and clients. this is the live-upgrade cheat code β you can upgrade the virtlogd service without losing anything, which is honestly so demure of her π
π FILES
okay bestie this part is important, it depends on who you're running as:
π When run as root
/etc/libvirt/virtlogd.conf
the default configuration file used by virtlogd, unless overridden on the command line using the -f | --config option.
/run/libvirt/virtlogd-sock
the sockets virtlogd will use.
/run/virtlogd.pid
the PID file to use, unless overridden by the -p | --pid-file option.
π§ When run as non-root
$XDG_CONFIG_HOME/libvirt/virtlogd.conf
the default configuration file used by virtlogd, unless overridden on the command line using the -f | --config option.
$XDG_RUNTIME_DIR/libvirt/virtlogd-sock
the socket virtlogd will use.
$XDG_RUNTIME_DIR/libvirt/virtlogd.pid
the PID file to use, unless overridden by the -p | --pid-file option.
and if $XDG_CONFIG_HOME is not set in your environment, virtlogd will use $HOME/.config π
and if $XDG_RUNTIME_DIR is not set in your environment, virtlogd will use $HOME/.cache π
(no env var? no problem. she'll find her home, she always does.)
π EXAMPLES
to retrieve the version of virtlogd:
# virtlogd --version
virtlogd (libvirt) 12.8.0
to start virtlogd, instructing it to daemonize and create a PID file:
# virtlogd -d
# ls -la /run/virtlogd.pid
-rw-r--r-- 1 root root 6 Jul 9 02:40 /run/virtlogd.pid
look at that PID file existing. slay. the daemon is daemonizing, we love to see it ππ
π BUGS
please report all bugs you discover. and bestie, you should β don't just suffer in silence. 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 support going through the proper channels in this house π«Ά
π AUTHORS
please refer to the AUTHORS file distributed with libvirt. (the whole squad is credited in there β¨)
π₯ COPYRIGHT
Copyright (C) 2006-2015 Red Hat, Inc., and the authors listed in the libvirt AUTHORS file.
π LICENSE
virtlogd is distributed under the terms of the GNU LGPL v2.1+. this is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. read that again, bestie β no warranty, she said what she said π
π SEE ALSO
libvirtd(8), https://libvirt.org/
and that's the whole page, my love πΈ this was VIRTLOGD(8) from Virtualization Support, version 12.8.0 vibes β stay logged, stay iconic, and remember: the logs were safe the whole time ππ¦β¨
π¦ where this page comes from
- centos-stream 10: libvirt-daemon-log 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