From: Daniel Stodden Subject: Re: xen 4.1.1 + 3.0.0-rc5 dom0 + blktap2 Date: Tue, 28 Jun 2011 19:38:10 -0700 Message-ID: <1309315090.10719.7.camel@agari.van.xensource.com> References: <4E0A8907.6010300@swisscenter.com> <1309314736.10719.1.camel@agari.van.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <1309314736.10719.1.camel@agari.van.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: =?ISO-8859-1?Q?S=E9bastien?= Riccio Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Tue, 2011-06-28 at 22:32 -0400, Daniel Stodden wrote: > On Tue, 2011-06-28 at 22:08 -0400, Sébastien Riccio wrote: > > Hi, > > > > I'm currently trying xen 4.1.1 with the 3.0.0-rc5 (heard that it now > > contains the xen code to run as front or back xen domain). > > > > Everything seems to run fine, except that I am trying since a few hours > > to mount a .vhd file in the dom0. > > > > What I tried so far: > > > > to create a blank vhd file (this is working): > > host# vhd-util create -n /storage/test.vhd -s 20G > > > > Then i try to mount the file in dom0 (as stated in a blktap2 README file) > > host# tapdisk2 -n vhc:/storage/test.vhd > > tap-ctl create -n vhd:/storage/test.vhd # :) > > As a rule of thumb, there's no excuse to call tapdisk2 on the command > line. Should actually rather have gone into libexec. > > Daniel > > > it fails, returning: > > tapdisk2: invalid option -- 'n' > > usage: tapdisk2 <-u uuid> <-c control socket> > > > > Then i've tried: > > host# tap-ctl list > > > > It returns: > > blktap kernel module not installed Yeah, we got blk*back* upstream, but not blktap. You're building from git? Good. $ git remote add daniel git://xenbits.xensource.com/people/dstodden/linux.git $ git fetch daniel $ git merge daniel/blktap/next-2.6.39 There might be a dedicated blktap/next-3.x at some point, but last time I checked (which was -rc3), it should merge + build just fine. $ make menuconfig drivers -> block -> "blktap userspace devices" -> m $ ... $ modprobe blktap Daniel > > Then tried too: > > host# xl block-attach 0 tap:vhd:/storage/test.vhd xvda w 0 > > > > It does not complain but nothing happens. > > > > Am I getting something wrong about how to do it ? Does the 3.0.0-rc5 > > kernel is missing something ? > > (look like there is no blktap module in the kernel tree, but blkback > > that I enabled, don't know if it's the same) > > > > I have no more ideas about what to try next. Any clue ? > > > > Thanks a lot for your help! > > > > Kind regards, > > Sébastien > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel > >