Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Ceph RBD · KVM Storage

Direct answer

Ceph RBD for KVM stores VM disks as RADOS block device images in a Ceph pool, accessed directly by QEMU through librbd. It gives shared, replicated storage with thin provisioning, snapshots and live migration.

When to use this

Use this when KVM VMs use Ceph RBD images.

First 30 seconds

1. libvirt RBD: disks as RBD images via librbd.

2. Auth via libvirt secret.

3. Live migration with shared storage.

4. cache=writeback with rbd cache is common.

5. Ceph health matters.

Operational verification

VM → librbd → Ceph pool

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Using the client.admin key in libvirt instead of a restricted client.
  • Different Ceph keys on hosts, breaking live migration.
  • cache=writeback without considering data safety (Ceph RBD cache handles flushes correctly, but test).
  • Monitors listed by IPs that later change.
Platform / version applicability
Hypervisor Storage
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformHypervisor Storage
Key commandrbd info libvirt-pool/vm01-disk0
Scope / prerequisiteUse this when KVM VMs use Ceph RBD images.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Checks Verify boundary
rbd -p libvirt-pool ls
rbd info libvirt-pool/vm01-disk0
virsh secret-list
ceph -s

Authentication failures usually mean a missing or wrong libvirt secret for the Ceph client key, or the client lacking caps on the pool.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • QEMU accesses RBD directly via librbd.
  • Images are thin and support snapshots.
  • Ceph health affects every VM.
Key checks
  • virsh pool-info <rbd-pool> — RBD pool
  • rbd ls -p <pool> — images
  • virsh secret-list — Ceph auth secret
ReferenceHow it works1 section · depth on demand

libvirt RBD configuration

<disk type='network' device='disk'>
  <driver name='qemu' type='raw' cache='writeback' discard='unmap'/>
  <source protocol='rbd' name='vm-pool/vm01-disk0'>
    <host name='10.10.0.11' port='6789'/>
  </source>
  <auth username='libvirt'><secret type='ceph' uuid='...'/></auth>
  <target dev='vda' bus='virtio'/>
</disk>

Documented example, not captured output. Create a Ceph user with limited caps (ceph auth get-or-create client.libvirt mon 'profile rbd' osd 'profile rbd pool=vm-pool') and store its key as a libvirt secret.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

KVM can use Ceph RBD directly through librbd in QEMU, without mapping devices on the host:

<disk type='network' device='disk'>
  <driver name='qemu' type='raw' cache='writeback' discard='unmap'/>
  <source protocol='rbd' name='vm-pool/vm1-disk0'>
    <host name='10.10.0.11' port='6789'/>
  </source>
  <auth username='libvirt'><secret type='ceph' uuid='…'/></auth>
  <target dev='sda' bus='scsi'/>
</disk>

Create a restricted Ceph user (ceph auth get-or-create client.libvirt mon 'profile rbd' osd 'profile rbd pool=vm-pool') and store its key as a libvirt secret.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docHypervisor Storage current

Authoritative/upstream documentation reviewed for bounded claims in Hypervisor Storage → KVM Storage → Ceph RBD. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://pve.proxmox.com/pve-docs/chapter-pvesm.html · confidence 94%
Confirmation

Confirm action

Continue?