[libvirt] [PATCH] RBD Support via storage pool in domain XML

Adam Walters adam at pandorasboxen.com
Sat Nov 16 01:43:59 UTC 2013


The following patch adds support for RBD devices to be specified in the domain XML via storage pools. This allows centralization of Ceph configuration in the storage pool definition.

The code written could be copied fairly easily to support additional network disks, but I lack the environment in which to test such changes. Most notably, I found it necessary to set the ac
cess mode for the volume to be direct. Without that change, QEMU would bork on setting up cgroup access for the RBD path (which does not exist on the host physically). Beyond that, the code 
should be pretty clean, being a modified copy of the iSCSI storage volume code.

Adam Walters (1):
  Implementing RBD support for QEMU via Storage API (Storage pools)

 src/qemu/qemu_command.c | 11 ++++++---
 src/qemu/qemu_conf.c    | 66 ++++++++++++++++++++++++++++++++++++++++++++++---
 2 files changed, 71 insertions(+), 6 deletions(-)

-- 
1.8.4.2




More information about the libvir-list mailing list