Ask Your Question
2

How can i get kvm rpm package which support ceph rbd for centos7 or rhel 7?

asked 2015-01-26 23:32:14 -0600

hello,

The kvm packages can't support RBD at default RDO yum repository at juno . Before we can get the package from ceph-extras repository : http://ceph.com/packages/ceph-extras/... but there is no centos7 or rhel7 relasted packages in the repository, so where can i get the packages?

Do I have to compile it manually?

BRs/Yong

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted
3

answered 2015-01-28 04:27:31 -0600

Alan Pevec gravatar image

updated 2015-01-28 04:29:59 -0600

RDO Juno does not ship qemu/libvirt etc. components which are supposed to be provided by the base OS. Until equivalent of qemu-kvm-rhev is available from CentOS VirtISIG, you can try enabling oVirt repo where they provide qemu-kvm-rhev rebuilds: http://resources.ovirt.org/pub/ovirt-...

edit flag offensive delete link more

Comments

If currently I have installed on the system

$ rpm -qa | grep qemu-kvm | grep centos
qemu-kvm-common-1.5.3-60.el7.centos.10.x86_64
qemu-kvm-debuginfo-1.5.3-60.el7.centos.10.x86_64
qemu-kvm-tools-1.5.3-60.el7.centos.10.x86_64
qemu-kvm-1.5.3-60.el7.centos.10.x86_64
dbaxps gravatar imagedbaxps ( 2015-01-28 05:59:30 -0600 )edit

It forces me to update qemu-kvm.spec of qemu-kvm-1.5.3-60.el7_0.10.src.rpm (disabling impact of rhev-patches) , what will allow to enable "rbd" support and at the same time avoid dependency problems when installing new rpms on the system.

dbaxps gravatar imagedbaxps ( 2015-01-28 06:09:41 -0600 )edit

I don't see dependency problems with oVirt qemu-kvm-rhev packages. On a fully updated centos 7 machine after enabling ovirt repo yum update output was http://paste.openstack.org/show/163327/

Alan Pevec gravatar imageAlan Pevec ( 2015-01-28 12:58:12 -0600 )edit

Yes, you are correct 0.2 is considered higher then 0.1X. Enabling oVirt repo is good solution

dbaxps gravatar imagedbaxps ( 2015-01-28 13:04:12 -0600 )edit
0

answered 2015-01-27 22:03:40 -0600

It appears they are available on the EU mirror can you try using this http://eu.ceph.com/rpms/rhel7/x86_64/

edit flag offensive delete link more

Comments

Hi Omar Munoz,

Thanks for your replay! i see here still do not inlcude the qemu-img/qemu-kvm/kvm-tools packages that have enable rdb support.

Currently , i have to rebuilld the packages form http://vault.centos.org/7.0.1406/upda.. .

Do you have other good channel to get the ofical rdo supported rp

Yong gravatar imageYong ( 2015-01-27 23:31:02 -0600 )edit
0

answered 2015-02-04 21:17:18 -0600

Thanks all ! here is the summary for this issue.

solution 1: rebuild the qemu-kvm rpm

first , install yum tuils packages

yum groupinstall -y "Development Tools"
yum install -y yum-utils rpm-build

download qemu source rpm to loacal

yumdownloader --source qemu-kvm
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros

Extract rpm

rpm -ivh qemu-kvm-*
cd ~/rpmbuild/SPECS

vi qemu-kvm.spec

modify the spec , find the '--block-drv-rw-whitelist' parameter and append the 'rbd' to the end,then rebuild the souce code.

rpmbuild -bb qemu-kvm.spec

if meet the pacakge dependency error ,you can use 'yum' install them then build again, after the build successful, you can see the package exist in ../RPMS/x86_64/

then delete the old package without rbd support like this:

rpm -e --nodeps qemu-img
rpm -e --nodeps qemu-kvm
rpm -e --nodeps qemu-kvm-tools

solution 2: use the fedora rpm directly.

I see the qemu-kvm rpm have been supported the rbd function on fedora20 directly, i think you can use them also .

http://fedora.xfree.com.ar/linux/upda...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2015-01-26 23:32:14 -0600

Seen: 3,446 times

Last updated: Feb 04 '15