[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Mounting blktap2 images


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).

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,

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 mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.