Notice

This document is for a development version of Ceph.

Install Virtualization for Block Device

If you intend to use Ceph Block Devices and the Ceph Storage Cluster as a backend for Virtual Machines (VMs) or Cloud Platforms, install QEMU/KVM and libvirt from your distribution’s packages. Ceph does not ship these packages. QEMU accesses Ceph Block Devices through librbd, and libvirt configures QEMU.

Install QEMU and libvirt

On Debian and Ubuntu, RBD support for QEMU is in the qemu-block-extra package. Run the following command (replace qemu-system-x86 with the package for your host architecture):

sudo apt install qemu-system-x86 qemu-utils qemu-block-extra libvirt-daemon-system libvirt-clients

On RHEL, CentOS Stream, Rocky Linux and other RPM-based distributions, run the following command:

sudo dnf install qemu-kvm qemu-kvm-block-rbd qemu-img libvirt

To confirm that the installed QEMU supports RBD, check that rbd appears in the list of supported formats:

qemu-img --help | grep -w rbd

Next steps

To use QEMU with Ceph Block Devices, see QEMU and Block Devices. To use libvirt with Ceph Block Devices, see Using libvirt with Ceph Block Device.

Brought to you by the Ceph Foundation

The Ceph Documentation is a community resource funded and hosted by the non-profit Ceph Foundation. If you would like to support this and our other efforts, please consider joining now.