Hi there I am managed to get Xen stable 2.0.6 working. I have 1 IDE (PATA) drive and 2 SATA drives connected to a Megaraid 300-8X. I have got everything working apart from I cannot figure out howto recompile the Xen Kernel with the support for the megaraid drivers in there. Furthermore I dont really know how to get the drivers into the correct place to compile them. I have never really messed around with Kernels before. The system is Centos 4, (RHEL 4) and the drivers are available on www.lsilogic.com for this distro. Thanks in advance _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, Jun 24, 2005 at 02:24:59PM +0100, Andrew Turnbull wrote:> Hi there > > I am managed to get Xen stable 2.0.6 working. > > I have 1 IDE (PATA) drive and 2 SATA drives connected to a Megaraid 300-8X. > > I have got everything working apart from I cannot figure out howto > recompile the Xen Kernel with the support for the megaraid drivers in > there. > > Furthermore I dont really know how to get the drivers into the correct > place to compile them. I have never really messed around with Kernels > before. > > The system is Centos 4, (RHEL 4) and the drivers are available on > www.lsilogic.com for this distro.I don''t think its a Xen-issue then; As I understand your Email, your linux(dom0(?))-kernel lacks support for that, right? I''d be surprised if Xen handles RAID-controllers ;-)> > Thanks in advance > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi What im after is howto compile it into the Dom0 Kernel, so I can use the disks ? I dont know howto compile any driver into the kernel ? Thanks On 24/06/05, Sascha Retzki <sretzki@gmx.de> wrote:> On Fri, Jun 24, 2005 at 02:24:59PM +0100, Andrew Turnbull wrote: > > Hi there > > > > I am managed to get Xen stable 2.0.6 working. > > > > I have 1 IDE (PATA) drive and 2 SATA drives connected to a Megaraid 300-8X. > > > > I have got everything working apart from I cannot figure out howto > > recompile the Xen Kernel with the support for the megaraid drivers in > > there. > > > > Furthermore I dont really know how to get the drivers into the correct > > place to compile them. I have never really messed around with Kernels > > before. > > > > The system is Centos 4, (RHEL 4) and the drivers are available on > > www.lsilogic.com for this distro. > > I don''t think its a Xen-issue then; As I understand your Email, your > linux(dom0(?))-kernel lacks support for that, right? > > I''d be surprised if Xen handles RAID-controllers ;-) > > > > > Thanks in advance > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andrew, Any *binary* drivers supplied by a hardware vendor for a specific Linux distro will be for the (native) kernel that ships with that distro so won''t generally work as-is with a Xen kernel. SO we need to build the source. There are two options: (1) use a driver in the Linux tree - I''m not sure if the current driver supports your particular card, perhaps someone else here can confirm? In fact I think our binary distribution has this already so if it doesn''t work for you then the driver in 2.6.11 may not support your card. (2) use source code supplied by LSI and build a module against the Xen kernel - this should generally work fine unless the vendor has cut corners with assumptions about the hardware platform. To do (1): * download the Xen source distribution. It is easiest to do a "make world" first so that everything is in position. * change into the dom0 linux build directory: cd linux-2.6.11-xen0 * reconfigure the kernel using (e.g.): make ARCH=xen xconfig * select the megaraid driver. * change directory back up a level * perform a make (*not* ''make world'' as this will overwrite config changes) * reinstall the Xen0 kernel and modules To do (2) *in general*: * unpack the driver source * see the driver documentation to find out how to point it at the kernel headers, point this at <path to you xen tree>/linux-2.6.11-xen0/include/linux * make ARCH=xen LSI ship DKMS (http://linux.dell.com/projects.shtml#dkms) style source. I''ve got doubts as to how well this works with the build mechanism for Xen kernels so an alternative approach would be to manually merge the LSI source into the Xen0 build tree. I just tried this using the following command sequence (having downloaded dr_linux_2.20.4.6_as40.zip to /tmp): MY_XEN_TREE=/local/xen-2.0.6-build cd /tmp unzip dr_linux_2.20.4.6_as40.zip rpm2cpio \ megaraid-v2.20.4.6-for-redhat-rhel-4-ga-kernel2.6.9-5.EL-x86.rpm \ | cpio -idv mv $MY_XEN_TREE/linux-2.6.11-xen0/drivers/scsi/megaraid \ $MY_XEN_TREE/linux-2.6.11-xen0/drivers/scsi/megaraid.orig cp -a /tmp/usr/src/megaraid-v2.20.4.6 \ $MY_XEN_TREE/linux-2.6.11-xen0/drivers/scsi/megaraid The follow the steps for (1) above. This builds cleanly for me but I don''t have this hardware to test. If you choose to build the driver as a module then you''ll need to: depmod -a 2.6.11.10-xen0 mkinitrd /boot/initrd-2.6.11.10-xen0.img 2.6.11.10-xen0 and add a grub module line for that initrd. James Andrew Turnbull wrote:> Hi there > > I am managed to get Xen stable 2.0.6 working. > > I have 1 IDE (PATA) drive and 2 SATA drives connected to a Megaraid 300-8X. > > I have got everything working apart from I cannot figure out howto > recompile the Xen Kernel with the support for the megaraid drivers in > there. > > Furthermore I dont really know how to get the drivers into the correct > place to compile them. I have never really messed around with Kernels > before. > > The system is Centos 4, (RHEL 4) and the drivers are available on > www.lsilogic.com for this distro. > > Thanks in advance > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi James On 25/06/05, James Bulpin <james@xensource.com> wrote:> Andrew, > > Any *binary* drivers supplied by a hardware vendor for a specific Linux > distro will be for the (native) kernel that ships with that distro so > won''t generally work as-is with a Xen kernel. > > SO we need to build the source. There are two options: > > (1) use a driver in the Linux tree - I''m not sure if the current driver > supports your particular card, perhaps someone else here can confirm? In > fact I think our binary distribution has this already so if it doesn''t > work for you then the driver in 2.6.11 may not support your card. > > (2) use source code supplied by LSI and build a module against the Xen > kernel - this should generally work fine unless the vendor has cut > corners with assumptions about the hardware platform. > > To do (1): > > * download the Xen source distribution. It is easiest to do a "make > world" first so that everything is in position. > * change into the dom0 linux build directory: cd linux-2.6.11-xen0 > * reconfigure the kernel using (e.g.): make ARCH=xen xconfig > * select the megaraid driver. > * change directory back up a level > * perform a make (*not* ''make world'' as this will overwrite configWhen I do this I get make: *** No rule to make target `freebsd-5.3.tar.bz2'', needed by `pristine-freebsd-5.3/.valid-pristine''. Stop. I type just make ?> changes) > * reinstall the Xen0 kernel and modules > > To do (2) *in general*: > > * unpack the driver source > * see the driver documentation to find out how to point it at the > kernel headers, point this at <path to you xen > tree>/linux-2.6.11-xen0/include/linux > * make ARCH=xen > > LSI ship DKMS (http://linux.dell.com/projects.shtml#dkms) style source. > I''ve got doubts as to how well this works with the build mechanism for > Xen kernels so an alternative approach would be to manually merge the > LSI source into the Xen0 build tree. I just tried this using the > following command sequence (having downloaded dr_linux_2.20.4.6_as40.zip > to /tmp): > > MY_XEN_TREE=/local/xen-2.0.6-build > cd /tmp > unzip dr_linux_2.20.4.6_as40.zip > rpm2cpio \ > megaraid-v2.20.4.6-for-redhat-rhel-4-ga-kernel2.6.9-5.EL-x86.rpm \ > | cpio -idv > mv $MY_XEN_TREE/linux-2.6.11-xen0/drivers/scsi/megaraid \ > $MY_XEN_TREE/linux-2.6.11-xen0/drivers/scsi/megaraid.orig > cp -a /tmp/usr/src/megaraid-v2.20.4.6 \ > $MY_XEN_TREE/linux-2.6.11-xen0/drivers/scsi/megaraid > > The follow the steps for (1) above. This builds cleanly for me but I > don''t have this hardware to test. > > If you choose to build the driver as a module then you''ll need to: > > depmod -a 2.6.11.10-xen0 > mkinitrd /boot/initrd-2.6.11.10-xen0.img 2.6.11.10-xen0 > > and add a grub module line for that initrd. > > James > > Andrew Turnbull wrote: > > Hi there > > > > I am managed to get Xen stable 2.0.6 working. > > > > I have 1 IDE (PATA) drive and 2 SATA drives connected to a Megaraid 300-8X. > > > > I have got everything working apart from I cannot figure out howto > > recompile the Xen Kernel with the support for the megaraid drivers in > > there. > > > > Furthermore I dont really know how to get the drivers into the correct > > place to compile them. I have never really messed around with Kernels > > before. > > > > The system is Centos 4, (RHEL 4) and the drivers are available on > > www.lsilogic.com for this distro. > > > > Thanks in advance > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andrew Turnbull wrote:>> * perform a make (*not* ''make world'' as this will overwrite config > > When I do this I get > > make: *** No rule to make target `freebsd-5.3.tar.bz2'', needed by > `pristine-freebsd-5.3/.valid-pristine''. Stop. > > I type just make ?try ''make all''. James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi That worked. thanks Which files do I need to copy to the /boot ? Really sorry Im a complete beginner with kernels !! Thanks Andrew On 25/06/05, James Bulpin <james@xensource.com> wrote:> Andrew Turnbull wrote: > >> * perform a make (*not* ''make world'' as this will overwrite config > > > > When I do this I get > > > > make: *** No rule to make target `freebsd-5.3.tar.bz2'', needed by > > `pristine-freebsd-5.3/.valid-pristine''. Stop. > > > > I type just make ? > > try ''make all''. > > James >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andrew Turnbull wrote:> Which files do I need to copy to the /boot ?You should be able to do ''make install'' which we (re)install xen. linux kernels, tools, libraries etc... This should be safe unless you''ve done any tailoring since your original install (e.g. editing stuff in /etc/xen {any new files you''ve added won''t be touched}). If you just want to update the kernel image then you can do this by hand: cp $MY_XEN_TREE/dist/install/boot/vmlinuz-2.6.11.10-xen0 /boot Modules can be installed by : cp -a $MY_XEN_TREE/dist/install/lib/modules/2.6.11.10-xen0 /lib/modules (having first removed the existing /lib/modules/2.6.11.10-xen0 diretory) James _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users