WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Mounting blktap2 images

To: Matthew Hook <matthew.hook@xxxxxxxx>
Subject: Re: [Xen-users] Mounting blktap2 images
From: Sébastien Riccio <sr@xxxxxxxxxxxxxxx>
Date: Thu, 15 Sep 2011 05:17:06 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 14 Sep 2011 20:19:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAMrHX2VROp9OGt=nyt59SbdDHmWFtK67RntLKgYttHLg5hz+Xw@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <CAMrHX2VROp9OGt=nyt59SbdDHmWFtK67RntLKgYttHLg5hz+Xw@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2
Hi,

That information is outdated. I got into the same problem.

At my side I'm using xl block-attach / block-detach to attach an image to the dom0

Try something like:
xl block-attach 0 tap:vhd:/cloud/data2/machines/vm1.vhd xvda w

and then to detach it:
xl block-list 0
xl block-detach 0 <blockid>


You can also do it directly via tap-ctl, but if your image has partitions in it, you won't be able
to access them. (at least I wasn't).

attach:
tap-ctl create -a vhd:/cloud/data2/machines/vm1.vhd

and detach:

tap-ctl list
tap-ctl destroy -m <minor> -p <pid>

Hope this helps,
Sébastien









On 15.09.2011 01:52, Matthew Hook wrote:
I've tried to mount an image in Dom0 by following the instructions in the blktap2 readme file.

The details in section "Mounting images in Dom0 using the blktap2 driver" don't work.
In fact, it seems that blktap2 works rather differently from how it used to work.

I found some comments that you should instead of:
tapdisk2 -n <type>:<full path to file>

I should use
tap-ctl -n <type>:<full path to file>

But that doesn't work either.

Is what I'm trying to do even possible at the moment? I'm using xen 4.1.1

Regards, Matthew


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>