Project

General

Profile

Actions

Feature #7546

closed

test qemu with rbd on rhel7

Added by Josh Durgin about 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Sandon Van Ness
Category:
-
Target version:
% Done:

100%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:

Description

With a symlink from /usr/lib64/qemu/librbd.so to /usr/lib64/librbd.so, qemu (as installed in the qemu-kvm-rhev package) should be able to create/delete/show rbd images with qemu-img, and kvm should be able to boot from rbd and attach/detach additional rbd disks.

Actions #1

Updated by Ian Colle about 10 years ago

  • Assignee set to Sandon Van Ness
Actions #2

Updated by Ian Colle about 10 years ago

  • Project changed from rbd to teuthology
Actions #3

Updated by Ian Colle about 10 years ago

  • Target version set to sprint2
Actions #4

Updated by Ian Colle about 10 years ago

  • Status changed from New to In Progress
Actions #5

Updated by Sandon Van Ness about 10 years ago

having a lot of trouble tracking down the qemu-kvm-rhev package even after adding the subscription...

Actions #6

Updated by Sandon Van Ness about 10 years ago

  • % Done changed from 0 to 90

So finally got the packages and tested... I had no problems installing and accessing our long running cluster which is running pretty bleeding edge ceph (0.77-917-gd1f8742):

write(1, "Formatting 'rbd:libvirt-pool/3g'"..., 74) = 74
stat("/usr/lib64/qemu/librbd.so.1", {st_mode=S_IFREG|0755, st_size=996608, ...}) = 0
open("/usr/lib64/qemu/librbd.so.1", O_RDONLY|O_CLOEXEC) = 6

I also was able to start a VM with qemu-kvm and use a block device created with qemu-img. I was able to use/create a file-system. I am not sure how to do the on the fly attach-detach of the disk yet but so far things look good:

[root@vpm001 ~]# lsof -p 30837 | grep -i rbd
qemu-kvm 30837 root mem REG 253,1 996608 25776404 /usr/lib64/librbd.so.1.0.0

Actions #7

Updated by Ian Colle about 10 years ago

  • Target version changed from sprint2 to sprint3
Actions #8

Updated by Sandon Van Ness about 10 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 90 to 100

Finally got these completely tested and working without issues.

Actions

Also available in: Atom PDF