All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sylvain Munaut <s.munaut@whatever-company.com>
To: "Bernard Grymonpon" <bernard@openminds.be>,
	"Pasi Kärkkäinen" <pasik@iki.fi>,
	"Wido den Hollander" <wido@42on.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: Xen blktap driver for Ceph RBD : Anybody wants to test ? :p
Date: Tue, 23 Apr 2013 12:02:16 +0200	[thread overview]
Message-ID: <CAF6-1L50V3cn0Sqcw-LajZh=dO=x91HTe4mL2yQ-k5yiGeJ2sg@mail.gmail.com> (raw)
In-Reply-To: <67AC8E8B-C295-49EA-BD52-39F06E3C5A37@openminds.be>

Hi,

> We can test this, but just a couple of lines of input might be needed to get us going with this without digging through all the code.

Ok, so I added proper argument parsing (using the same format as the
qemu rbd driver) now, so it's easier to test.

First off, you need a working blktap setup for your distribution.
So for example, you should be able to use
"tap2:tapdisk:aio:/path/to/image.raw"  as a vbd.

Starting for there you need to :

 - Download and compile the rbd branch of git://github.com/smunaut/blktap.git
   You will need the ceph development files/packages for this ( for
debian librados-dev librbd-dev )

$ git clone git://github.com/smunaut/blktap.git
$ cd blktap
$ git checkout -b rbd origin/rbd
$ ./autogen.sh
$ ./configure
$ make

 - Replace the installed tapdisk binary with the new one

$ sudo cp ./drivers/.libs/tapdisk  /usr/bin/tapdisk

 - Add 'rbd' as supported format in 'xm'
   For some reason 'xm' checks the image format itself before handing
off to the tap-ctl ...

   Edit /usr/lib/xen-4.1/lib/python/xen/xend/server/BlktapController.py
and add 'rbd' in the blktap2_disk_types list at the top.
   (location of file will vary depending on xen version and distribution)

 - Setup a proper /etc/ceph/ceph.conf containing at least the mon addresses
   Also make sure you have a /etc/ceph/keyring with the user key if
you use cephx

Once that's done, you should be able to attach disk to a running VM using :

$ xm block-attach test_vm tap2:tapdisk:rbd:rbd/test xvda2 w

"rbd/test" above is the pool_name/image_name
You can add the same options as with the qemu driver.


Cheers,

    Sylvain

  reply	other threads:[~2013-04-23 10:02 UTC|newest]

Thread overview: 96+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-18 15:05 Xen blktap driver for Ceph RBD : Anybody wants to test ? :p Sylvain Munaut
2013-04-18 19:35 ` Wido den Hollander
2013-04-19 14:37   ` Sylvain Munaut
2013-04-19 14:40     ` Bernard Grymonpon
2013-04-23 10:02       ` Sylvain Munaut [this message]
2013-04-23 14:56         ` Bernard Grymonpon
2013-04-23 15:06           ` Sylvain Munaut
2013-04-23 19:13             ` Bernard Grymonpon
2013-04-23 16:38         ` Nick Couchman
2013-04-23 18:51           ` Sylvain Munaut
2013-04-23 20:09             ` Nick Couchman
2013-04-26 13:07               ` Sylvain Munaut
2013-04-26 15:51                 ` Sage Weil
2013-04-26 17:10                   ` Sylvain Munaut
2013-04-19  6:45 ` Pasi Kärkkäinen
2013-04-19 14:41   ` [Xen-devel] " Sylvain Munaut
2013-11-29 11:05     ` James Harper
2013-11-29 15:11       ` Sylvain Munaut
2013-12-01  4:08         ` James Harper
2013-12-03 15:46           ` Sylvain Munaut
2013-04-19 14:41   ` Sylvain Munaut
2013-08-01  2:12   ` James Harper
2013-08-05  9:41     ` Sylvain Munaut
2013-08-05  9:41     ` [Xen-devel] " Sylvain Munaut
2013-08-05  9:45       ` James Harper
2013-08-05  9:45       ` [Xen-devel] " James Harper
2013-08-05 11:01         ` Sylvain Munaut
2013-08-05 11:01         ` [Xen-devel] " Sylvain Munaut
2013-08-05 11:03           ` James Harper
2013-08-05 11:03           ` James Harper
2013-08-05 11:12           ` Pasi Kärkkäinen
2013-08-05 12:03             ` [Xen-devel] " Sylvain Munaut
2013-08-05 13:35               ` George Dunlap
2013-08-05 13:55                 ` Sylvain Munaut
2013-08-05 14:04                   ` George Dunlap
2013-08-05 15:18                     ` Wei Liu
2013-08-05 15:20                       ` George Dunlap
2013-08-05 15:32                         ` Wei Liu
2013-08-05 15:32                         ` [Xen-devel] " Wei Liu
2013-08-05 15:20                       ` George Dunlap
2013-08-05 15:18                     ` Wei Liu
2013-08-05 14:04                   ` George Dunlap
2013-08-05 13:55                 ` Sylvain Munaut
2013-08-05 13:35               ` George Dunlap
2013-08-05 12:03             ` Sylvain Munaut
2013-08-09  0:12       ` [Xen-devel] " James Harper
2013-08-09  9:21         ` Sylvain Munaut
2013-08-09  9:21         ` [Xen-devel] " Sylvain Munaut
2013-08-11  0:51           ` James Harper
2013-08-11  1:02             ` James Harper
2013-08-11  1:02             ` [Xen-devel] " James Harper
2013-08-12 14:13               ` Sylvain Munaut
2013-08-12 23:26                 ` James Harper
2013-08-12 23:26                 ` [Xen-devel] " James Harper
2013-08-13  0:39                 ` James Harper
2013-08-13  8:32                   ` Sylvain Munaut
2013-08-13  8:32                   ` [Xen-devel] " Sylvain Munaut
2013-08-13  9:12                     ` James Harper
2013-08-13  9:20                       ` Sylvain Munaut
2013-08-13 14:59                         ` Frederik Thuysbaert
2013-08-13 14:59                         ` [Xen-devel] " Frederik Thuysbaert
     [not found]                         ` <520A4945.1030907@gmail.com>
2013-08-13 15:39                           ` Sylvain Munaut
2013-08-13 23:39                             ` James Harper
2013-08-13 23:43                               ` Sylvain Munaut
2013-08-13 23:43                               ` [Xen-devel] " Sylvain Munaut
2013-08-13 23:51                                 ` James Harper
2013-08-13 23:59                                   ` James Harper
2013-08-13 23:59                                   ` [Xen-devel] " James Harper
2013-08-14 13:13                                     ` Sylvain Munaut
2013-08-14 13:13                                     ` [Xen-devel] " Sylvain Munaut
2013-08-14 13:16                                       ` James Harper
2013-08-14 13:16                                       ` [Xen-devel] " James Harper
2013-08-15  7:20                                       ` James Harper
2013-08-15  7:20                                       ` [Xen-devel] " James Harper
2013-08-16  1:02                                       ` James Harper
2013-08-16  1:02                                       ` [Xen-devel] " James Harper
2013-08-13 23:51                                 ` James Harper
2013-08-13 23:39                             ` James Harper
2013-08-14  8:43                             ` Frederik Thuysbaert
2013-08-14  8:43                             ` [Xen-devel] " Frederik Thuysbaert
2013-08-14 15:03                               ` Sylvain Munaut
2013-08-14 15:03                               ` [Xen-devel] " Sylvain Munaut
2013-08-16  8:27                                 ` Frederik Thuysbaert
2013-08-16  8:27                                 ` Frederik Thuysbaert
2013-08-14  8:47                             ` Frederik Thuysbaert
2013-08-14  8:47                             ` [Xen-devel] " Frederik Thuysbaert
2013-08-13 15:39                           ` Sylvain Munaut
2013-08-13 21:47                         ` James Harper
2013-08-13 21:47                         ` [Xen-devel] " James Harper
2013-08-13  9:20                       ` Sylvain Munaut
2013-08-13  9:12                     ` James Harper
2013-08-13  0:39                 ` James Harper
2013-08-12 14:13               ` Sylvain Munaut
2013-08-11  0:51           ` James Harper
2013-08-09  0:12       ` James Harper
  -- strict thread matches above, loose matches on Subject: below --
2013-04-18 15:05 Sylvain Munaut

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAF6-1L50V3cn0Sqcw-LajZh=dO=x91HTe4mL2yQ-k5yiGeJ2sg@mail.gmail.com' \
    --to=s.munaut@whatever-company.com \
    --cc=bernard@openminds.be \
    --cc=ceph-devel@vger.kernel.org \
    --cc=pasik@iki.fi \
    --cc=wido@42on.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.