xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Stodden <daniel.stodden@citrix.com>
To: Dante Cinco <dantecinco@gmail.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>,
	Xen-devel <xen-devel@lists.xensource.com>
Subject: Re: BLKTAPCTRL[2375]: blktapctrl_linux.c:86: blktap0 open 	failed
Date: Wed, 21 Jul 2010 19:02:09 -0700	[thread overview]
Message-ID: <1279764129.3752.814.camel@agari.van.xensource.com> (raw)
In-Reply-To: <AANLkTin4tQxwSCH3EboMl0lQr9HE0ONmfVuroPy4ByGY@mail.gmail.com>

On Wed, 2010-07-21 at 20:11 -0400, Dante Cinco wrote:
> Daniel,
> 
> I'm using 2.6.32 pv-ops dom0 kernel. How do I check if it's using
> blktap2 instead of blktap1? If I look at /dev and /dev/xen, here's
> what I see?

With pvops the formula is pretty simple.
Blktap1 doesn't exist, you have to run blktap2.

> kaan-11:/boot# ls -l /dev/blktap-control
> crw-rw---- 1 root root 10, 60 Jul 21 16:45 /dev/blktap-control
> kaan-11:/boot# ls -l /dev/xen/
> total 0
> crw-rw---- 1 root root 10, 54 Jul 21 16:45 evtchn
> crw-rw---- 1 root root 10, 61 Jul 21 16:45 gntdev
> 
> Here's part of my "xm info"
> 
> release                : 2.6.32
> version                : #1 SMP Tue Jul 20 11:33:27 PDT 2010
> machine                : x86_64
> xen_major              : 4
> xen_minor              : 1
> xen_extra              : -unstable
> xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32
> hvm-3.0-x86_32p hvm-3.0-x86_64
> 
> Some additional info: When I tried bringing up an HVM win2k8 from VHD,
> I see the following in qemu-dm-svm.log
> 
> Using xvda for guest's hda
> Strip off blktap sub-type prefix to vhd:/mnt/win2008sp2.vhd (drv 'tapdisk')

Uhm. Looks like common image locator madness.

I think this stuff has seen changes again.

So vhd:/mnt/win2008.vhd is ends up as the path, and tapdisk the driver?\
That won't work.

What does you cfg look like? 

Guessing, do you have a :tapdisk: substring in there? I used to have
one.

Could you try stripping it, down to "tap:vhd:/mnt/win2008sp2.vhd"?

Thanks,
Daniel

> qemu: type (image format) 'tapdisk' unknown for vbd
> '/local/domain/0/backend/tap/1/51712/type' or image
> 'vhd:/mnt/win2008sp2.vhd'
> 
> Does this look like it's related to blktap1 vs blktap2?
> 
> Thanks.
> 
> Dante
> 
> 
> On Mon, Jul 19, 2010 at 7:30 PM, Daniel Stodden
> <daniel.stodden@citrix.com> wrote:
> > On Mon, 2010-07-19 at 17:27 -0400, Dante Cinco wrote:
> >> I'm getting this message (subject line) in daemon.log every time I
> >> start or restart xend. I'm not sure if this is related to the fact
> >> that I cannot boot up my Windows domU from a VHD file. The Windows
> >> domU was working fine with Xen 4.0.0 (with 2.6.32.14 dom0 kernel).
> >> When I upgraded to Xen 4.0.1-rc4 (with 2.6.32.16 dom0 kernel), I can
> >> no long boot the Windows domU from VHD. The VNC console for the
> >> Windows HVM has this message:
> >>
> >> Booting from Hard Disk ...
> >> Boot from Hard Disk failed; could not read the boot disk
> >>
> >> No bootable device.
> >> Powering off in 30 seconds.
> >>
> >> Here's the disk setting in my Windows domU config file: disk =
> >> ['tap:tapdisk:vhd:/mnt/win2008sp2.vhd,xvda:sda1,w']
> >>
> >> Here's the other BLKTAPCTRL messages in daemon.log:
> >>
> >> BLKTAPCTRL[2444]: blktapctrl.c:790: blktapctrl: v1.0.0
> >> BLKTAPCTRL[2444]: blktapctrl.c:792: Found driver: [raw image (aio)]
> >> BLKTAPCTRL[2444]: blktapctrl.c:792: Found driver: [raw image (sync)]
> >> BLKTAPCTRL[2444]: blktapctrl.c:792: Found driver: [vmware image (vmdk)]
> >> BLKTAPCTRL[2444]: blktapctrl.c:792: Found driver: [ramdisk image (ram)]
> >> BLKTAPCTRL[2444]: blktapctrl.c:792: Found driver: [qcow disk (qcow)]
> >> BLKTAPCTRL[2444]: blktapctrl.c:792: Found driver: [qcow2 disk (qcow2)]
> >> BLKTAPCTRL[2444]: blktapctrl_linux.c:86: blktap0 open failed
> >> BLKTAPCTRL[2444]: blktapctrl.c:859: couldn't open blktap interface
> >> BLKTAPCTRL[2444]: blktapctrl.c:922: Unable to start blktapctrl
> >
> > Let's kill the beast.
> >
> > Blktapctrl is a residual from blktap1 nobody ever bothered to reliably
> > prevent from trying to start on pvops, unfortunately.
> >
> > I had a bit of an aha-experience today trying to repro your issue,
> > before I figured out that you're just running 2.6.3x. It seems to be the
> > case that the chrdev majors assignment, both dynamically allocated by
> > blktap1 and -2, tend to be identical when moving from a xen kernel with
> > blktap1 enabled, to pvops, which only has blktap2.
> >
> > Which means if somebody starts blktapctrl, it may happily try to open
> > the kernel link of the first blktap2 (/dev/xen/blktap-2/blktap0) device
> > as the control node for blktap1 (/dev/xen/blktap0).
> >
> > In really unfortunate cases, that code around blktapctrl.c:859 above
> > will suceed, even managing to provoke a stacktrace. Normally wouldn't
> > happen, in this case I happened to have some somewhat wedged trainwreck
> > minor number 0 set up, which wasn't aquired by a real tapdisk already.
> >
> > Should drop blktapctrl from xend start altogether, to avoid confusion in
> > in both software and users.
> >
> > Or maybe at least do an environment check and fail with a more friendly
> > last word on blktap1 matters.
> >
> > That, of course, nowhere explains your w2k8 problem, right?
> >
> > Daniel
> >
> >

  reply	other threads:[~2010-07-22  2:02 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-19 21:27 BLKTAPCTRL[2375]: blktapctrl_linux.c:86: blktap0 open failed Dante Cinco
2010-07-20  2:30 ` Daniel Stodden
2010-07-22  0:11   ` Dante Cinco
2010-07-22  2:02     ` Daniel Stodden [this message]
2010-07-22 16:59       ` Dante Cinco
2010-07-22 20:11         ` Daniel Stodden
2010-07-22 20:46           ` Dante Cinco
2010-07-22 21:10             ` Pasi Kärkkäinen
2010-07-23  7:07               ` Keir Fraser
2010-07-25  9:27                 ` Daniel Stodden
2010-07-25  9:42                   ` Keir Fraser
2010-07-26 10:36                   ` Ian Campbell
2010-07-27  6:21                     ` BLKTAPCTRL[2375]: blktapctrl_linux.c:86: blktap0 open failed, tap: vs. tap2: Pasi Kärkkäinen
2010-07-27  6:48                       ` Keir Fraser
2010-08-02 12:11                         ` Pasi Kärkkäinen
2010-08-12 16:18                           ` tap: vs. tap2: for Xen 4.0.1 Pasi Kärkkäinen
2010-08-13 15:18                           ` BLKTAPCTRL[2375]: blktapctrl_linux.c:86: blktap0 open failed, tap: vs. tap2: Ian Jackson
2010-08-15 14:46                             ` Pasi Kärkkäinen

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=1279764129.3752.814.camel@agari.van.xensource.com \
    --to=daniel.stodden@citrix.com \
    --cc=dantecinco@gmail.com \
    --cc=jeremy@goop.org \
    --cc=xen-devel@lists.xensource.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 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).