
Hello, I want to connect to an RBD pool specifying the namespace, but it doesn’t work. If I connect directly to the pool, it works. For example: <source protocol="rbd" name="rbd-pool/vm"> But when I try to specify the namespace like this, I cannot connect: <source protocol="rbd" name="rbd-pool/vm" namespace="vms"> <source protocol="rbd" name="rbd-pool/vms/vm"> Error al iniciar dominio: error interno: process exited while connecting to monitor: 2025-06-20T22:54:55.076193Z qemu-system-x86_64: -blockdev {"driver":"rbd","pool":"rbd-pool","image":"loli/mari","server":[{"host":"ceph-admin","port":"6789"}],"user":"admin","auth-client-required":["cephx","none"],"key-secret":"libvirt-2-storage-auth-secret0","node-name":"libvirt-2-storage","auto-read-only":true,"discard":"unmap"}: error reading header from loli/mari: No such file or directory Using the rbd command from the terminal, I can connect both ways; the error occurs only with libvirt. I’m using the following versions on Debian 12: libvirtd (libvirt) 9.0.0 QEMU emulator version 7.2.17 (Debian 1:7.2+dfsg-7+deb12u13) Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers Thanks.

On Fri, Jun 20, 2025 at 19:55:41 -0300, Rodrigo Prieto wrote:
Hello, I want to connect to an RBD pool specifying the namespace, but it doesn’t work. If I connect directly to the pool, it works. For example:
<source protocol="rbd" name="rbd-pool/vm">
But when I try to specify the namespace like this, I cannot connect:
<source protocol="rbd" name="rbd-pool/vm" namespace="vms">
<source protocol="rbd" name="rbd-pool/vms/vm">
Error al iniciar dominio: error interno: process exited while connecting to monitor: 2025-06-20T22:54:55.076193Z qemu-system-x86_64: -blockdev {"driver":"rbd","pool":"rbd-pool","image":"loli/mari","server":[{"host":"ceph-admin","port":"6789"}],"user":"admin","auth-client-required":["cephx","none"],"key-secret":"libvirt-2-storage-auth-secret0","node-name":"libvirt-2-storage","auto-read-only":true,"discard":"unmap"}: error reading header from loli/mari: No such file or directory
Libvirt indeed doesn't yet support this: https://gitlab.com/libvirt/libvirt/-/issues/405 I have the patches that were originally posted still around. I'll give them a look after I finish few things I'm working on to see if they can be revived.

Thanks for the reply. I'll wait for a patch or update. El lun., 23 de junio de 2025 04:18, Peter Krempa <pkrempa@redhat.com> escribió:
On Fri, Jun 20, 2025 at 19:55:41 -0300, Rodrigo Prieto wrote:
Hello, I want to connect to an RBD pool specifying the namespace, but it doesn’t work. If I connect directly to the pool, it works. For example:
<source protocol="rbd" name="rbd-pool/vm">
But when I try to specify the namespace like this, I cannot connect:
<source protocol="rbd" name="rbd-pool/vm" namespace="vms">
<source protocol="rbd" name="rbd-pool/vms/vm">
Error al iniciar dominio: error interno: process exited while connecting to monitor: 2025-06-20T22:54:55.076193Z qemu-system-x86_64: -blockdev
{"driver":"rbd","pool":"rbd-pool","image":"loli/mari","server":[{"host":"ceph-admin","port":"6789"}],"user":"admin","auth-client-required":["cephx","none"],"key-secret":"libvirt-2-storage-auth-secret0","node-name":"libvirt-2-storage","auto-read-only":true,"discard":"unmap"}:
error reading header from loli/mari: No such file or directory
Libvirt indeed doesn't yet support this:
https://gitlab.com/libvirt/libvirt/-/issues/405
I have the patches that were originally posted still around. I'll give them a look after I finish few things I'm working on to see if they can be revived.
participants (2)
-
Peter Krempa
-
Rodrigo Prieto