惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
博客园_首页
U
Unit 42
Apple Machine Learning Research
Apple Machine Learning Research
云风的 BLOG
云风的 BLOG
MongoDB | Blog
MongoDB | Blog
美团技术团队
H
Help Net Security
G
Google Developers Blog
B
Blog RSS Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
aimingoo的专栏
aimingoo的专栏
Google DeepMind News
Google DeepMind News
J
Java Code Geeks
M
MIT News - Artificial intelligence
腾讯CDC
IT之家
IT之家
Vercel News
Vercel News
C
Check Point Blog
博客园 - 三生石上(FineUI控件)
Last Week in AI
Last Week in AI
I
InfoQ
博客园 - 司徒正美
A
About on SuperTechFans

OneUptime Blog

How to Monitor Azure App Services (PaaS) with OpenTelemetry Grafana Stack vs OneUptime: DIY Observability or Unified Platform? Your AI Workloads Are About to Blow Up Your Observability Bill The Great Observability Consolidation Is Here How to Write Custom Object Classes for Ceph How to Write Custom Ceph Manager Modules How to Write a ceph.conf Configuration File How to Use Rook-Ceph with OpenShift How to Use Rook-Ceph with Longhorn for Comparison How to Configure Volume Snapshot Class for RBD in Rook How to Configure VolumeReplicationClass Scheduling Intervals in Rook How to Set Up Volume Replication with Rook-Ceph How to Create Volume Group Snapshots with Rook CSI How to Visualize Ceph Network Performance in Grafana How to Enable Virtual Host-Style Bucket Access in Rook How to View Runtime Configuration via Admin Socket How to View Quota Settings and Update Stats in Ceph RGW How to View PG Scaling Recommendations with autoscale-status How to View PG Distribution via Admin Socket How to View Performance Metrics in the Ceph Dashboard How to View OSD Performance Counters in Ceph How to View Connection Status via Admin Socket How to View Ceph Cluster Summary Dashboard via CLI How to Version Control Rook-Ceph Configuration How to Version Control Ceph Infrastructure with Terraform How to Verify Kubernetes Node Requirements for Rook-Ceph Deployment How to Verify Health Before and After Rook Upgrades How to Verify Data Integrity with Deep Scrubbing How to Verify Complete Rook-Ceph Cleanup How to Verify Backup Integrity from Ceph Snapshots
How to Use Red Hat Ceph with RHEL Virtualization
Nawaz Dhandala · 2026-03-31 · via OneUptime Blog

Red Hat Ceph Storage integrates with RHEL virtualization (KVM/libvirt) through the QEMU RBD driver. This lets you store VM disk images directly in Ceph RBD, enabling live migration, high availability, and centralized storage management.

Prerequisites

  • RHCS cluster with an RBD pool
  • RHEL KVM hypervisor nodes with qemu-kvm and libvirt installed
  • Ceph client packages on hypervisor nodes

Step 1 - Install Ceph Client on Hypervisor

dnf install -y ceph-common

Copy the cluster config and keyring from the Ceph admin node:

scp ceph-admin:/etc/ceph/ceph.conf /etc/ceph/ceph.conf
scp ceph-admin:/etc/ceph/ceph.client.admin.keyring /etc/ceph/

Step 2 - Create a Dedicated Pool and User

On the Ceph cluster:

ceph osd pool create vms 128
rbd pool init vms

ceph auth get-or-create client.libvirt \
  mon 'profile rbd' \
  osd 'profile rbd pool=vms' \
  -o /etc/ceph/ceph.client.libvirt.keyring

Step 3 - Configure libvirt with the Ceph Secret

Create an XML secret for libvirt:

<secret ephemeral='no' private='no'>
  <usage type='ceph'>
    <name>client.libvirt secret</name>
  </usage>
</secret>
SECRET_UUID=$(virsh secret-define --file ceph-secret.xml | awk '{print $2}')
CEPH_KEY=$(ceph auth get-key client.libvirt)
virsh secret-set-value --secret "$SECRET_UUID" --base64 "$CEPH_KEY"

Step 4 - Create a VM Disk in Ceph

rbd create vms/vm1-disk --size 20G
rbd info vms/vm1-disk

Step 5 - Define a VM Using the RBD Disk

In the VM XML definition, replace the disk section:

<disk type='network' device='disk'>
  <driver name='qemu' type='raw'/>
  <auth username='libvirt'>
    <secret type='ceph' uuid='YOUR_SECRET_UUID'/>
  </auth>
  <source protocol='rbd' name='vms/vm1-disk'>
    <host name='192.168.1.10' port='6789'/>
    <host name='192.168.1.11' port='6789'/>
    <host name='192.168.1.12' port='6789'/>
  </source>
  <target dev='vda' bus='virtio'/>
</disk>
virsh define vm1.xml
virsh start vm1

Step 6 - Live Migrate the VM

Because the disk is in Ceph, live migration requires no disk copy:

virsh migrate --live vm1 qemu+ssh://hypervisor2/system

Summary

Integrating RHCS with RHEL virtualization enables centralized VM disk storage in Ceph RBD pools. The QEMU RBD driver accesses disks directly over the Ceph network, allowing live migration and removing dependency on local storage. The key setup steps are installing the ceph-common packages on hypervisors and configuring a libvirt secret for authentication.