QEMU-PR-HELPER(8)
π qemu-pr-helper(8) β the QEMU persistent reservation helper, bestie edition π
okay so before we even get into it β this is the manual page for qemu-pr-helper, coming at you from the QEMU fam. grab a snack, it's giving "niche but iconic" π
β¨ NAME β¨
qemu-pr-helper β the QEMU persistent reservation helper. yes that's the whole name. she's a helper, she's persistent, she's reserved. main character energy fr π
π¦ SYNOPSIS π¦
qemu-pr-helper [OPTION]
literally that's it. one binary, a bunch of options, no cap.
πΈ DESCRIPTION πΈ
So. This thing implements the persistent reservation helper for QEMU. That's the vibe.
SCSI persistent reservations are how you restrict access to block devices to specific initiators in a shared storage setup β think VIP list but for storage. When you're implementing clustering of virtual machines, it's a super common requirement for VMs to send persistent reservation SCSI commands. highkey essential.
But here's the plot twist π the operating system restricts sending these commands to unprivileged programs, because incorrect usage can disrupt regular operation of the storage fabric. like, actually disrupt it. so yeah, the OS is being a protective parent and honestly valid for it.
Enter: QEMU's SCSI passthrough devices scsi-block and scsi-generic, which support passing guest persistent reservation requests to a privileged external helper program. And qemu-pr-helper IS that external helper. she creates a listener socket which will accept incoming connections for communication with QEMU. networking era β¨
If you want to run VMs in a setup like this, this helper should be started as a system service, and you should read the QEMU manual section on "persistent reservation managers" to find out how to configure QEMU to connect to the socket created by qemu-pr-helper. iykyk, go read the docs, they're right there π«Ά
After connecting to the socket, qemu-pr-helper can optionally drop root privileges, except for those capabilities that are needed for its operation. so she can glow down the privileges but keep the ones she actually needs. queen behavior π
qemu-pr-helper can also use the systemd socket activation protocol. In this case, the systemd socket unit should specify a Unix stream socket, like this:
[Socket]
ListenStream=/var/run/qemu-pr-helper.sock
copy paste slay. that's the whole config bestie π
π OPTIONS π
-d,--daemonβ run in the background (and create a PID file). ghost mode activated π»-q,--quietβ decrease verbosity. she's being chill, she's not gonna overshare.-v,--verboseβ increase verbosity. okay now she's telling you EVERYTHING that happened in her day.-f,--pidfile=PATHβ the PID file when running as a daemon. By default the PID file is created in the system runtime state directory, for example/var/run/qemu-pr-helper.pid. so like, she'll put it in the default spot unless you tell her otherwise ποΈ-k,--socket=PATHβ path to the socket. By default the socket is created in the system runtime state directory, for example/var/run/qemu-pr-helper.sock. same deal β default location unless you say something π«-T,--trace [[enable=]PATTERN][,events=FILE][,file=FILE]β specify tracing options. this one's got layers, buckle up:[enable=]PATTERNβ immediately enable events matching PATTERN (either event name or a globbing pattern). This option is only available if QEMU has been compiled with thesimple,logorftracetracing backend. To specify multiple events or patterns, specify the-traceoption multiple times. Also, use-trace helpto print a list of names of trace points. very "ask for the menu" of her.events=FILEβ immediately enable events listed in FILE. The file must contain one event name (as listed in thetrace-events-allfile) per line; globbing patterns are accepted too. This option is only available if QEMU has been compiled with thesimple,logorftracetracing backend. one event per line, no chaos, we love a list π§file=FILEβ log output traces to FILE. This option is only available if QEMU has been compiled with thesimpletracing backend. only the simple backend gets this one, sorry to the other backends π
-u,--user=USERβ the user to drop privileges to. glow-down time π¦-g,--group=GROUPβ the group to drop privileges to. matching set, obviously.-h,--helpβ display a help message and exit. she'll explain herself, briefly, then dip.-V,--versionβ display version information and exit. she'll tell you who she is, then dip. iconic.
π Copyright π
2026, The QEMU Project Developers β putting that here so nobody forgets who raised her π
aaaand that's the whole page bestie!! no notes, she ate π₯
this little sign-off is brought to you by version 11.1.3, dated Oct 29, 2026, and yes it's still QEMU-PR-HELPER(8) β mwah π
π¦ where this page comes from
- arch rolling: qemu-pr-helper 11.1.3-1 Β· BSD-2-Clause AND BSD-2-Clause-Patent AND BSD-3-Clause AND CC0-1.0 AND FSFAP AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-only WITH Linux-syscall-note AND GPL-2.0-only WITH Linux-syscall-note OR BSD-2-Clause AND GPL-2.0-only WITH Linux-syscall-note OR BSD-3-Clause AND GPL-2.0-or-later AND GPL-2.0-or-later OR BSD-3-Clause AND GPL-2.0-or-later WITH Linux-syscall-note AND ISC AND LGPL-2.1-only OR BSD-3-Clause AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND LicenseRef-Public-Domain AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms