[Bug 1495895] Re: Unable to attach rados block device to instances

Ryan Harper 1495895 at bugs.launchpad.net
Wed Sep 16 12:39:52 UTC 2015


I think there is something else going on;  clearly qemu-block-extra is
needed if you're attempting to connect to an rbd device.   For example
we can attempt to connect to an rbd pool with path data/wily.  I don't
actually have an rbd pool up.  If qemu doesn't have block_rbd from qemu-
block-extra it will fail differently than if we do but don't have a
valid pool

# without qemu-block-extra:

(kriek) ~ % qemu-system-x86_64 -m 1024 -drive
format=raw,file=rbd:data/wily

(process:10825): GLib-WARNING **: /build/glib2.0-hcw3A1/glib2.0-2.45.7/./glib/gmem.c:482: custom memory allocation vtable not supported
qemu-system-x86_64: -drive format=raw,file=rbd:data/wily: Unknown protocol 'rbd'

# with qemu-block-extra installed:

(kriek) ~ % sudo apt-get install qemu-block-extra 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  dh-apparmor g++-4.9 grub-pc-bin libboost-iostreams1.55.0 libboost-system1.55.0 libboost-thread1.55.0 libicu52 libmirprotobuf0 libstdc++-4.9-dev linux-headers-3.19.0-20 linux-headers-3.19.0-20-generic
  linux-image-3.19.0-20-generic linux-image-extra-3.19.0-20-generic python-support
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  qemu-block-extra
0 upgraded, 1 newly installed, 0 to remove and 15 not upgraded.
Need to get 0 B/18.7 kB of archives.
After this operation, 113 kB of additional disk space will be used.
Selecting previously unselected package qemu-block-extra:amd64.
(Reading database ... 172606 files and directories currently installed.)
Preparing to unpack .../qemu-block-extra_1%3a2.3+dfsg-5ubuntu5_amd64.deb ...
Unpacking qemu-block-extra:amd64 (1:2.3+dfsg-5ubuntu5) ...
Setting up qemu-block-extra:amd64 (1:2.3+dfsg-5ubuntu5) ...
(kriek) ~ % qemu-system-x86_64 -m 1024 -drive format=raw,file=rbd:data/wily 

(process:10890): GLib-WARNING **: /build/glib2.0-hcw3A1/glib2.0-2.45.7/./glib/gmem.c:482: custom memory allocation vtable not supported
no monitors specified to connect to.
qemu-system-x86_64: -drive format=raw,file=rbd:data/wily: error connecting

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu in Ubuntu.
https://bugs.launchpad.net/bugs/1495895

Title:
  Unable to attach rados block device to instances

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1495895/+subscriptions



More information about the Ubuntu-server-bugs mailing list