nbdkit-libvirt-plugin(1)
β¨ nbdkit-libvirt-plugin β¨
Okay bestie, so this is the nbdkit-libvirt-plugin page β it's a section 1 manpage, and it's genuinely one of the cutest little bridges between your libvirt guests and the rest of your stack. Let's get into it π
πΈ NAME πΈ
nbdkit-libvirt-plugin β the nbdkit libvirt plugin, and it does all its magic using virDomainBlockPeek β¨
π SYNOPSIS π
nbdkit libvirt [connect=URI] domain=DOMAIN disk=DISK
π¦ EXAMPLE π¦
nbdkit libvirt domain=MyGuest disk=sda
guestfish --ro --format=raw -a nbd://localhost
Like, that's the whole vibe right there β spin it up, point guestfish at nbd://localhost, done π
π DESCRIPTION π
nbdkit-libvirt-plugin is an nbdkit(1) plugin that lets you access libvirt guest disks. That's the serve π«Ά
Important vibe check though: only read-only access is possible. No writing, nope, not a thing.
It's implemented using the libvirt virDomainBlockPeek API. And it can also be used over remote libvirt connections β icon status fr fr π
π PARAMETERS π
connect=URIβ this optional parameter specifies the libvirt connection URI β¨ It's optional, so skip it if you don't need it, but it's giving "I have multiple hypervisors" energy when you do.domain=DOMAINβ this required parameter specifies the libvirt domain name (a.k.a. the guest name). Not optional bestie, you must give it.disk=DISKβ this required parameter specifies the guest's disk that we want to read π
You can either give the path to the backing device (/path/to/disk) or the target name (eg. sda). Both work, pick your fighter.
In either case use virsh dumpxml DOMAIN to list possible disks. Then look for <source dev=...> or <source file=...> or <target dev=...> in the XML. That's where they're hiding π
π§ FILES π§
$plugindir/nbdkit-libvirt-plugin.soβ the plugin itself, the main character π«
Use nbdkit --dump-config to find the location of $plugindir. It's not gonna tell you where it lives unless you ask, and this is how you ask.
β VERSION β
nbdkit-libvirt-plugin first appeared in nbdkit 1.0. An OG, honestly. Ancient. Respect. π
π₯ SEE ALSO π₯
nbdkit(1)nbdkit-plugin(3)- http://libvirt.org
- https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockPeek
Go read them, they're lowkey essential iykyk π
π AUTHORS π
Richard W.M. Jones π
πΈ COPYRIGHT πΈ
Copyright Red Hat
π LICENSE π
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of Red Hat nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY RED HAT AND CONTRIBUTORS ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL RED HAT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
And that's the page!! This masterpiece is from nbdkit-1.48.0, dated 2026-08-22, and it's nbdkit-libvirt-plugin(1) β go read a guest disk, bestie, you've got this πβ¨ππ¦
π¦ where this page comes from
- ubuntu stonking: nbdkit-plugin-libvirt 1.48.0-1ubuntu2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms