Skip to contentSkip to conversation

Help compiling QEMU with RBD support

Qemu-devel Dyweni - Qemu-Devel 2 participants 4 messages May 4, 2011

lore
Share & tools
lore
#0 lore raw

Hi List!

I'm running into an issue compiling QEMU with RBD support.

Quoted 1 line

From the Wiki (http://ceph.newdream.net/wiki/QEMU-RBD), I should be

able to do the following:

$ git clone git://git.qemu.org/qemu.git
$ cd qemu
$ ./configure --enable-rbd
$ make; make install

However, the configure command throws this error:

ERROR
ERROR: User requested feature rados block device
ERROR: configure was not able to find it
ERROR

I ran across this patchset from Josh Durgin which looks like it might resolve this error, but I don't see it commited to GIT repository above, or the qemu-kvm repository hosted on git.kernel.org:

[Qemu-devel] [PATCH v3 0/4] rbd improvements
http://lists.gnu.org/archive/html/qemu-devel/2011-04/msg01211.html

Before I attempt to apply Josh's patchset, I'd like to know if anyone else on the list has ran across this before.

Thanks,
Dyweni

#1 lore raw

Hi Dyweni,

are you sure that you have installed ceph (especially librados and the header files)?

Josh's patches use the newer librbd from ceph 0.27. With this library the qemu driver gets a lot simpler and avoids code duplication in ceph and qemu. - It's the future, but I don't think it will solve your problem.

Christian

2011/5/4 Dyweni - Qemu-Devel <[email protected]>:

Quoted 41 lines

Hi List!

I'm running into an issue compiling QEMU with RBD support.

From the Wiki (http://ceph.newdream.net/wiki/QEMU-RBD), I should be able to do the following:

$ git clone git://git.qemu.org/qemu.git
$ cd qemu
$ ./configure --enable-rbd
$ make; make install

However, the configure command throws this error:

ERROR
ERROR: User requested feature rados block device
ERROR: configure was not able to find it
ERROR

I ran across this patchset from Josh Durgin which looks like it might resolve this error, but I don't see it commited to GIT repository above, or the qemu-kvm repository hosted on git.kernel.org:

[Qemu-devel] [PATCH v3 0/4] rbd improvements
http://lists.gnu.org/archive/html/qemu-devel/2011-04/msg01211.html

Before I attempt to apply Josh's patchset, I'd like to know if anyone else on the list has ran across this before.

Thanks,
Dyweni

#2 lore raw

I almost forgot: If you are already using ceph 0.27, then you will need the pathes. Configure is checking for a function that isn't existing any longer in librados.

Sorry, Christian

2011/5/4 Christian Brunner <[email protected]>:

Quoted 55 lines

Hi Dyweni,

are you sure that you have installed ceph (especially librados and the header files)?

Josh's patches use the newer librbd from ceph 0.27. With this library the qemu driver gets a lot simpler and avoids code duplication in ceph and qemu. - It's the future, but I don't think it will solve your problem.

Christian

2011/5/4 Dyweni - Qemu-Devel <[email protected]>:

Quoted 41 lines

Hi List!

I'm running into an issue compiling QEMU with RBD support.

From the Wiki (http://ceph.newdream.net/wiki/QEMU-RBD), I should be able to do the following:

$ git clone git://git.qemu.org/qemu.git
$ cd qemu
$ ./configure --enable-rbd
$ make; make install

However, the configure command throws this error:

ERROR
ERROR: User requested feature rados block device
ERROR: configure was not able to find it
ERROR

I ran across this patchset from Josh Durgin which looks like it might resolve this error, but I don't see it commited to GIT repository above, or the qemu-kvm repository hosted on git.kernel.org:

[Qemu-devel] [PATCH v3 0/4] rbd improvements
http://lists.gnu.org/archive/html/qemu-devel/2011-04/msg01211.html

Before I attempt to apply Josh's patchset, I'd like to know if anyone else on the list has ran across this before.

Thanks,
Dyweni

#3 lore raw
In reply to Christian Brunner

Hi Christian!

I have ceph 0.27 installed. I downloaded it from:
http://ceph.newdream.net/download/ceph-0.27.tar.gz

I found the following rados/rbd included files at:

/usr/include/rados
/usr/include/rados/buffer.h
/usr/include/rados/crc32c.h
/usr/include/rados/librados.h
/usr/include/rados/librados.hpp
/usr/include/rados/page.h
/usr/include/rbd
/usr/include/rbd/librbd.h
/usr/include/rbd/librbd.hpp

I also found the following rados/rbd lib files at:

/usr/lib64/librados.so -> librados.so.2.0.0
/usr/lib64/librados.so.2 -> librados.so.2.0.0
/usr/lib64/librados.so.2.0.0
/usr/lib64/librbd.so -> librbd.so.1.0.0
/usr/lib64/librbd.so.1 -> librbd.so.1.0.0
/usr/lib64/librbd.so.1.0.0

The QEMU configure script is looking for a function called 'rados_initialize' within the header file 'rados/librados.h'.

I checked the rados include/lib files for that function, but I don't see it:

# grep -rin rados_initialize /usr/include/rados/*
# strings /usr/lib64/librados.so | grep -i rados_initialize

Thanks,
Dyweni

Quoted 55 lines

Hi Dyweni,

are you sure that you have installed ceph (especially librados and the header files)?

Josh's patches use the newer librbd from ceph 0.27. With this library the qemu driver gets a lot simpler and avoids code duplication in ceph and qemu. - It's the future, but I don't think it will solve your problem.

Christian

2011/5/4 Dyweni - Qemu-Devel <[email protected]>:

Quoted 41 lines

Hi List!

I'm running into an issue compiling QEMU with RBD support.

From the Wiki (http://ceph.newdream.net/wiki/QEMU-RBD), I should be able to do the following:

$ git clone git://git.qemu.org/qemu.git
$ cd qemu
$ ./configure --enable-rbd
$ make; make install

However, the configure command throws this error:

ERROR
ERROR: User requested feature rados block device
ERROR: configure was not able to find it
ERROR

I ran across this patchset from Josh Durgin which looks like it might resolve this error, but I don't see it commited to GIT repository above, or the qemu-kvm repository hosted on git.kernel.org:

[Qemu-devel] [PATCH v3 0/4] rbd improvements
http://lists.gnu.org/archive/html/qemu-devel/2011-04/msg01211.html

Before I attempt to apply Josh's patchset, I'd like to know if anyone else on the list has ran across this before.

Thanks,
Dyweni