Hi all, What''s the best way to "run" blktap2 in Xen 4.0.1 provided by Debian Squeeze official repositories? Do I need to install Xen 4.1 from unstable? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 08/17/2011 04:16 PM, Diego Dave wrote:> Hi all, > > What''s the best way to "run" blktap2 in Xen 4.0.1 provided byDebian > Squeeze official repositories? > > Do I need to install Xen 4.1 from unstable?The easiest way is probably to follow the first half of the instructions on the XAPI on Debian wiki page (http://wiki.xen.org/xenwiki/XAPI_on_debian). From step 6, you can download all the packages listed, but you''ll only want to install the ones named blktap. Mike _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks for the answer! I try install the blktap-dkms deb, it installs but doesn''t run, because I''m using amd64 Debian Squeeze, the deb is for 32 bits PAE kernel. 2011/8/18 Mike McClurg <mike.mcclurg@citrix.com>> On 08/17/2011 04:16 PM, Diego Dave wrote: > >> Hi all, >> >> What''s the best way to "run" blktap2 in Xen 4.0.1 provided byDebian >> Squeeze official repositories? >> >> >> Do I need to install Xen 4.1 from unstable? >> > > The easiest way is probably to follow the first half of the instructions on > the XAPI on Debian wiki page (http://wiki.xen.org/xenwiki/**XAPI_on_debian<http://wiki.xen.org/xenwiki/XAPI_on_debian>). > From step 6, you can download all the packages listed, but you''ll only want > to install the ones named blktap. > > Mike > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 23/08/11 16:55, Diego Dave wrote:> Thanks for the answer! > > I try install the blktap-dkms deb, it installs but doesn''t run, > because I''m using amd64 Debian Squeeze, the deb is for 32 bits PAE kernel.Ah, that''s because we haven''t build a 64bit blktap yet ;) We''re only supporting 32bit for now, but you may be able to compile it yourself. Here are the source repositories you''ll need: http://xenbits.xen.org/gitweb/?p=people/dstodden/blktap.git;a=summary http://xenbits.xen.org/gitweb/?p=people/dstodden/blktap-dkms.git;a=summary http://xenbits.xen.org/gitweb/?p=people/dstodden/blktap-debian.git;a=summary I can''t promise this will work on 64bit. Mike _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, 2011-08-23 at 12:55 -0400, Mike McClurg wrote:> On 23/08/11 16:55, Diego Dave wrote: > > Thanks for the answer! > > > > I try install the blktap-dkms deb, it installs but doesn''t run, > > because I''m using amd64 Debian Squeeze, the deb is for 32 bits PAE kernel. > > Ah, that''s because we haven''t build a 64bit blktap yet ;) We''re only > supporting 32bit for now, but you may be able to compile it yourself. > Here are the source repositories you''ll need:Take this:> http://xenbits.xen.org/gitweb/?p=people/dstodden/blktap.git;a=summarycheckout xcp/volatile/blktap Which iirc will add a submodule integrating this as debian/ (could also be done manually using xcp/volatile/autotools).> http://xenbits.xen.org/gitweb/?p=people/dstodden/blktap-debian.git;a=summaryMy repeated apologies for not finally merging this stuff in, but I want to see it pass a XenServer BVT first, there might still be glitches.> I can''t promise this will work on 64bit.I promise it does or, if it doesn''t, will. Daniel _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Aug 23, 2011 at 6:55 PM, Mike McClurg <mike.mcclurg@citrix.com> wrote:> Ah, that''s because we haven''t build a 64bit blktap yet ;) We''re only > supporting 32bit for now, but you may be able to compile it yourself. > Here are the source repositories you''ll need: > > http://xenbits.xen.org/gitweb/?p=people/dstodden/blktap.git;a=summary > http://xenbits.xen.org/gitweb/?p=people/dstodden/blktap-dkms.git;a=summary > http://xenbits.xen.org/gitweb/?p=people/dstodden/blktap-debian.git;a=summary > > I can''t promise this will work on 64bit. >I''m trying to compile blktap on a 64bit system (rhel based). I''m using this repo: https://github.com/jonludlam/blktap What is the best / most updated? On a 64bit there are a few of problems with various "long long int" and other type conversion. These can be put in silence "-Wno-format" but I guess that working on the code is the best choice. In libvhdio.c this does not work: 1516 case F_SETLK: 1517 case F_SETLKW: 1518 case F_GETLK: 1519 { 1520 struct flock *flk; 1521 va_start(args, cmd); 1522 flk = va_arg(args, struct flock *); 1523 va_end(args); 1524 LOG("%s 0x%x lock %p\n", __func__, real_fd, flk); 1525 return _std_fcntl(real_fd, cmd, flk); 1526 } 1527 1528 case F_SETLK64: 1529 case F_SETLKW64: 1530 case F_GETLK64: 1531 { 1532 struct flock64 *flk; 1533 va_start(args, cmd); 1534 flk = va_arg(args, struct flock64 *); 1535 va_end(args); 1536 LOG("%s 0x%x lock64 %p (%p)\n", 1537 __func__, real_fd, flk, _std_fcntl); 1538 return _std_fcntl(real_fd, cmd, flk); 1539 } Fixed this i can compile but... God knows if it works :D M. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, 2011-08-23 at 14:02 -0400, Muriel wrote:> On Tue, Aug 23, 2011 at 6:55 PM, Mike McClurg <mike.mcclurg@citrix.com> wrote: > > Ah, that''s because we haven''t build a 64bit blktap yet ;) We''re only > > supporting 32bit for now, but you may be able to compile it yourself. > > Here are the source repositories you''ll need: > > > > http://xenbits.xen.org/gitweb/?p=people/dstodden/blktap.git;a=summary > > http://xenbits.xen.org/gitweb/?p=people/dstodden/blktap-dkms.git;a=summary > > http://xenbits.xen.org/gitweb/?p=people/dstodden/blktap-debian.git;a=summary > > > > I can''t promise this will work on 64bit. > > > > I''m trying to compile blktap on a 64bit system (rhel based). I''m using > this repo: > https://github.com/jonludlam/blktap > > What is the best / most updated?http://xenbits.xen.org/gitweb/?p=people/dstodden/blktap.git presently recommended is xcp/volatile/autotools, to eventually be xcp/next. $ sh autogen.sh $ ./configure $ make $ sudo make install It''s still missing some useful stuff from xen-unstable.hg/tools/blktap, such as block-remus etc, but for vhd/aio etc. it should work fine. It''s sort of beta, beware. Report issues please. Daniel> On a 64bit there are a few of problems with various "long long int" > and other type conversion. These can be put in silence "-Wno-format" > but I guess that working on the code is the best choice. > > In libvhdio.c this does not work: > 1516 case F_SETLK: > 1517 case F_SETLKW: > 1518 case F_GETLK: > 1519 { > 1520 struct flock *flk; > 1521 va_start(args, cmd); > 1522 flk = va_arg(args, struct flock *); > 1523 va_end(args); > 1524 LOG("%s 0x%x lock %p\n", __func__, real_fd, flk); > 1525 return _std_fcntl(real_fd, cmd, flk); > 1526 } > 1527 > 1528 case F_SETLK64: > 1529 case F_SETLKW64: > 1530 case F_GETLK64: > 1531 { > 1532 struct flock64 *flk; > 1533 va_start(args, cmd); > 1534 flk = va_arg(args, struct flock64 *); > 1535 va_end(args); > 1536 LOG("%s 0x%x lock64 %p (%p)\n", > 1537 __func__, real_fd, flk, _std_fcntl); > 1538 return _std_fcntl(real_fd, cmd, flk); > 1539 } > > Fixed this i can compile but... God knows if it works :D > > M._______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, 2011-08-23 at 13:36 -0400, Daniel Stodden wrote:> On Tue, 2011-08-23 at 12:55 -0400, Mike McClurg wrote: > > On 23/08/11 16:55, Diego Dave wrote: > > > Thanks for the answer! > > > > > > I try install the blktap-dkms deb, it installs but doesn''t run, > > > because I''m using amd64 Debian Squeeze, the deb is for 32 bits PAE kernel. > > > > Ah, that''s because we haven''t build a 64bit blktap yet ;) We''re only > > supporting 32bit for now, but you may be able to compile it yourself. > > Here are the source repositories you''ll need: > > Take this: > > > http://xenbits.xen.org/gitweb/?p=people/dstodden/blktap.git;a=summary > > checkout xcp/volatile/blktapPardonnez moi. xcp/volatile/debian> Which iirc will add a submodule integrating this as debian/ (could also > be done manually using xcp/volatile/autotools). > > > http://xenbits.xen.org/gitweb/?p=people/dstodden/blktap-debian.git;a=summary > > My repeated apologies for not finally merging this stuff in, but I want > to see it pass a XenServer BVT first, there might still be glitches. > > > I can''t promise this will work on 64bit. > > I promise it does or, if it doesn''t, will. > > Daniel >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 23/08/11 18:36, Daniel Stodden wrote:> On Tue, 2011-08-23 at 12:55 -0400, Mike McClurg wrote: > >> http://xenbits.xen.org/gitweb/?p=people/dstodden/blktap-debian.git;a=summary > My repeated apologies for not finally merging this stuff in, but I want > to see it pass a XenServer BVT first, there might still be glitches.Are we planning on merging this into XenServer trunk soon? Maybe after Boston release? Do you need me to do anything to make this happen in the near future?>> I can''t promise this will work on 64bit. > I promise it does or, if it doesn''t, will. >Excellent! I''ll give it a try on my 64bit box when I can. Mike _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
** Il 23/08/2011 20:12, Daniel Stodden ha scritto: I''m trying to compile blktap on a 64bit system (rhel based). I''m using this repo:https://github.com/jonludlam/blktap What is the best / most updated? http://xenbits.xen.org/gitweb/?p=people/dstodden/blktap.git presently recommended is xcp/volatile/autotools, to eventually be xcp/next. $ sh autogen.sh $ ./configure $ make $ sudo make install It''s still missing some useful stuff from xen-unstable.hg/tools/blktap, such as block-remus etc, but for vhd/aio etc. it should work fine. It''s sort of beta, beware. Report issues please. Daniel Ok Daniel, with your branch i don''t have the problem when compiling. Just some conflict with the file coming from xen, like tap-ctl, libblktapctl.so and other. I have to remove them from xen packages (I''m using xen 4.1.1)? M. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, 2011-08-24 at 05:56 -0400, Mike McClurg wrote:> On 23/08/11 18:36, Daniel Stodden wrote: > > On Tue, 2011-08-23 at 12:55 -0400, Mike McClurg wrote: > > > >> http://xenbits.xen.org/gitweb/?p=people/dstodden/blktap-debian.git;a=summary > > My repeated apologies for not finally merging this stuff in, but I want > > to see it pass a XenServer BVT first, there might still be glitches. > Are we planning on merging this into XenServer trunk soon? Maybe after > Boston release? Do you need me to do anything to make this happen in the > near future?I just made it xcp/next in my xenbits tree, yanking the 64bit build branches and autoconf/automake stuff. We also have https://github.com/xen-org/blktap now, which is presently equal, and supposed to become the upcoming XCP tree (imho). There''s a private Boston branch which builds, iff you''re interested, but still needs more testing...> >> I can''t promise this will work on 64bit. > > I promise it does or, if it doesn''t, will. > > > Excellent! I''ll give it a try on my 64bit box when I can.Good! Cheers, Daniel _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, 2011-08-24 at 11:45 -0400, Muriel wrote:> Il 23/08/2011 20:12, Daniel Stodden ha scritto: > > I''m trying to compile blktap on a 64bit system (rhel based). I''m using > this repo: > https://github.com/jonludlam/blktap > > What is the best / most updated? > > > http://xenbits.xen.org/gitweb/?p=people/dstodden/blktap.git > > presently recommended is xcp/volatile/autotools, to eventually be > xcp/next. > > $ sh autogen.sh > $ ./configure > $ make > $ sudo make install > > It''s still missing some useful stuff from xen-unstable.hg/tools/blktap, > such as block-remus etc, but for vhd/aio etc. it should work fine. > > It''s sort of beta, beware. Report issues please. > > Daniel > > > > Ok Daniel, with your branch i don''t have the problem when compiling. > Just some conflict with the file coming from xen, like tap-ctl, libblktapctl.so and other. > I have to remove them from xen packages (I''m using xen 4.1.1)?Yeah, these will obviously collide right now. If anyone is interested, any preliminary reports on integrating this as a git subtree into xen/tools (similar to quemu in spirit, I guess) would be very welcome. But there''s way more merging work ahead. Should at least synch on drivers (remus etc.) before this gets even considerable. Daniel _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users