From: Ian Campbell <Ian.Campbell@citrix.com>
To: Tim Wood <twwood@gmail.com>
Cc: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: where to find blktap2 kernel module
Date: Sat, 7 Apr 2012 08:37:36 +0100 [thread overview]
Message-ID: <1333784256.12209.107.camel@dagon.hellion.org.uk> (raw)
In-Reply-To: <CABm+uF-pgymyAKjLkQ9nOsJLvacBrEyeV_A2y1obejCjjr_h=A@mail.gmail.com>
On Fri, 2012-04-06 at 22:24 +0100, Tim Wood wrote:
> In xen 4.0.X I was able to write custom blktap2 drivers as a nice way
> to intercept VM disk traffic. I'm now trying to take a step up to xen
> 4.1.2 and find that blktap2 doesn't seem to be supported anymore, or
> at least it requires a kernel module which I'm not sure where to
> find. Is blktap2 still in use, or is there an entirely different way
> I should be approaching this?
>
>
> Previously I could run commands like:
>
>
> tapdisk2 -n tap:aio:/home/twood/vms/testdisk.img
>
>
> the new tapdisk2 doesn't support that interface anymore,
What do you mean? I don't think the tap interface has changed (but I'm
not sure). In any case I'm pretty sure the functionality should be there
even if the command line has changed.
> but it seems like the correct approach is now:
>
>
> xm block-attach 0 tap2:aio:/path/disk.img xvda w 0
> Error: ('create', '-aaio:/path/disk.img') failed (55808 blktap kernel
> module not installed )
I think this ultimately turns into the same sort of command as the one
above.
> What is the "proper" way of getting the blktap kernel module
> installed? I found this:
> http://packages.debian.org/sid/blktap-dkms
Unfortunately the blktap2 module is not something which can be
upstreamed.
The DKMS package is probably a good bet for now. The other alternative
is to switch to a slightly older kernel which has the blktap2 driver in
it, for example the 2.6.32 based xen.git kernel tree or one of the
classic Xen forward ports.
You mentioned writing your own blktap modules so the qemu-supplied qdisk
backend is probably not much use to you. This is used by the "xl"
toolstack by default when blktap is not present, but isn't supported by
xm and doesn't allow for custom modules .
I'm actually quite interested in the fact that you are writing custom
blktap modules -- are you able to share the details?
> but couldn't get it to actually install.
Please share the details so we can try and figure out why.
> In any case, it seems unlikely that is the best way to go.
Sadly it is, for now.
Long term someone is working on a "blktap3" which is fully userspace and
so doesn't require a kernel module. We hope to see this for 4.3. For 4.2
it looks like we'll be sticking with the qdisk backend.
Ian.
next prev parent reply other threads:[~2012-04-07 7:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-06 21:24 where to find blktap2 kernel module Tim Wood
2012-04-07 7:37 ` Ian Campbell [this message]
2012-04-09 12:13 ` Tim Wood
-- strict thread matches above, loose matches on Subject: below --
2012-04-10 14:53 Dr. Greg Wettstein
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=1333784256.12209.107.camel@dagon.hellion.org.uk \
--to=ian.campbell@citrix.com \
--cc=twwood@gmail.com \
--cc=xen-devel@lists.xen.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).