VIRTQEMUD(8)
๐ virtqemud
okay so first things first, bestie: this is page VIRTQEMUD(8) from the Virtualization Support manual โ section 8, daemon territory. say it with me: virt-qemu-d. slay, let's go โจ
๐ธ NAME ๐ธ
virtqemud โ the libvirt QEMU management daemon. she manages. she daemonizes. she's that girl ๐
๐ฆ SYNOPSIS ๐ฆ
virtqemud [OPTION]...
โจ DESCRIPTION โจ
So virtqemud is a server side daemon โ like, a component of the libvirt virtualization management system. big main character energy, but she's part of an ensemble ๐
She's one of a whole collection of modular daemons that replaced the functionality that the old monolithic libvirtd daemon used to hand out all by itself. glow-up era, honestly ๐ฅ
This daemon runs on virtualization hosts and provides management for QEMU virtual machines. that's her whole job and she does it gorgeously.
k so important: virtqemud only listens for requests on a local Unix domain socket. only local. if you want remote access via TLS/TCP, or backwards compatibility with legacy clients that are still expecting libvirtd โ that's the virtproxyd daemon's job, not hers. know the difference iykyk ๐
Now the genuinely important bit: restarting virtqemud does not interrupt running guests. the guests keep operating, and changes in their state will generally be picked up automatically during startup. phew ๐ฎโ๐จ
but ngl, even though it's generally fine, it's recommended to avoid restarting with running guests whenever it's practical. just... don't tempt fate, bestie ๐
๐ DAEMON STARTUP MODES ๐
virtqemud is capable of starting in two modes. two vibes, one daemon ๐
๐ Socket activation mode
On hosts with systemd, she starts in socket activation mode. she relies on systemd to create and listen on the UNIX sockets, and systemd passes them to her as pre-opened file descriptors. very "you handle the logistics, i'll handle the aura" ๐ซถ
heads up: in this mode, most of the socket related config options in /etc/libvirt/virtqemud.conf will no longer have any effect. they just sit there looking cute. ๐
๐ Traditional service mode
On hosts without systemd, she creates and listens on the UNIX sockets herself. independent queen. no cap. โจ
๐ OPTIONS ๐
-h,--helpโ displays command line help usage, then exits. your little orientation tour ๐ง-d,--daemonโ run as a daemon and write a PID file. she goes in the background and leaves a lil receipt ๐-f,--configFILE โ use this configuration file, overriding the default value. be specific, bestie ๐-p,--pid-fileFILE โ use this name for the PID file, overriding the default value. custom receipt, custom name ๐ฆ-t,--timeoutSECONDS โ exit after the timeout period (in seconds), provided there are neither any client connections nor any running domains. so she'll only dip if literally nobody needs her ๐ญ-v,--verboseโ enable output of verbose messages. she will tell you things. love that for us ๐ธ--versionโ display version information, then exit. the classic "who even are you" move ๐
๐ SIGNALS ๐
On receipt of SIGHUP, virtqemud will reload its configuration. that's it. that's the signal. one (1) signal. iconic minimalism โจ
๐ FILES ๐
โญ When run as root
/etc/libvirt/virtqemud.conf
the default configuration file used by virtqemud, unless it's overridden on the command line using the -f | --config option.
On top of the default configuration file, virtqemud also reads configuration for the QEMU driver from:
/etc/libvirt/qemu.conf
This file contains various knobs and default values for virtual machines created within the QEMU driver, and it offers a way to override the built in defaults โ for instance (but not limited to): paths to various supplementary binaries, TLS certificates location, graphical consoles configuration and others. ngl the big one: the location of this file can't be overridden by any command line switch. not a single one. periodt ๐ฅ
/run/libvirt/virtqemud-sock/run/libvirt/virtqemud-sock-ro/run/libvirt/virtqemud-admin-sock
The sockets virtqemud will use. all three. she's got options ๐
The TLS Server private key virtqemud will use. (yes, this line is just sitting here on its own in the original โ she's mysterious, we respect it ๐คซ)
/run/virtqemud.pid
the PID file to use, unless it's overridden by the -p | --pid-file option.
๐ฆ When run as non-root
$XDG_CONFIG_HOME/libvirt/virtqemud.conf
the default configuration file used by virtqemud, unless it's overridden on the command line using the -f | --config option.
On top of the default configuration file, virtqemud also reads configuration for the qemu driver from:
$XDG_CONFIG_HOME/libvirt/qemu.conf
If the file exists, it can contain various knobs and default values for virtual machines created within the QEMU driver, and it offers a way to override the built in defaults โ for instance (but not limited to): paths to various supplementary binaries, TLS certificates location, graphical consoles configuration and others. and again, for emphasis: the location of this file can't be overridden by any command line switch. โญ
$XDG_RUNTIME_DIR/libvirt/virtqemud-sock$XDG_RUNTIME_DIR/libvirt/virtqemud-admin-sock
The sockets virtqemud will use.
$XDG_RUNTIME_DIR/libvirt/virtqemud.pid
the PID file to use, unless it's overridden by the -p | --pid-file option.
And the fallbacks, memorize these ๐
- If
$XDG_CONFIG_HOMEis not set in your environment,virtqemudwill use$HOME/.config - If
$XDG_RUNTIME_DIRis not set in your environment,virtqemudwill use$HOME/.cache
she's very forgiving about your environment variables, honestly ๐ซถ
๐ง EXAMPLES ๐ง
Wanna retrieve the version of virtqemud? say less:
# virtqemud --version
virtqemud (libvirt) 12.8.0
Wanna start virtqemud, instructing it to daemonize and create a PID file? okay queen:
# virtqemud -d
# ls -la /run/virtqemud.pid
-rw-r--r-- 1 root root 6 Jul 9 02:40 /run/virtqemud.pid
there it is. six whole bytes of proof she exists ๐
๐ BUGS ๐
Please report all bugs you discover. this should be done via either:
- the mailing list
https://libvirt.org/contact.html
- the bug tracker
https://libvirt.org/bugs.html
Alternatively, you may report bugs to your software distributor / vendor. no gatekeeping, go where you're comfy ๐
๐ธ AUTHORS ๐ธ
Please refer to the AUTHORS file distributed with libvirt. the whole squad is credited there ๐ฏโโ๏ธ
๐ COPYRIGHT ๐
Copyright (C) 2006-2020 Red Hat, Inc., and the authors listed in the libvirt AUTHORS file.
๐ LICENSE ๐
virtqemud 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. like... none. zero. don't come for her if it breaks ๐ญ
๐ SEE ALSO ๐
virsh(1), libvirtd(8), https://libvirt.org/daemons.html, https://libvirt.org/drvqemu.html
and that's the whole page, bestie ๐ซถ that was VIRTQEMUD(8) from the Virtualization Support manual โ same title at the top, same VIRTQEMUD(8) stamp at the bottom, nothing skipped, nothing invented, all facts intact and looking gorgeous โจ๐
๐
๐ฆ where this page comes from
- centos-stream 10: libvirt-daemon-driver-qemu 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