[Vserver] CentOS RPM's
Hi Guys I've been a while (again) since I've mucked around with linux-vserver, but the time is here again. This time with CentOS. My ideal setup, as i've come to realise, is a CentOS installation as the host OS, with a linux vserver kernel. Now, my problem lies with an RPM that would suite my purposes. I am unable to find an out of the box kernel RPM, so I thought i'de give it a crack. I've started building RPM's for other software recently,so I thought it would be within my power to try a kernel build. I was wrong. I cant even build the CentOS4.4 kernel on a basic machine with the build software installed, and the src rpm from the CentOS site, let alone a patched version of the CentOS kernel, or a vanilla kernel. (yes, i've tried the vanilla kernel, with a make rpm-pkg and that has the same problems). By the way, trying to make a vanilla kernel, no patches, with standard make commands (no make rpm) fails with the same reasons (invalid string offset errors from the linker). Has anyone got kernel RPM's with the linux vserver patches installed (vanilla or otherwise) that are build for CentOS4.4? I know Daniel has the fedora kernels, and I've been scouring his rpm repository to find the centos ones with no luck (plenty of util-vserver rpms, but no kernels). I had the thought that the vserver stuff might already be in the kernel (long shot i know, but anythings possible) so I downloaded the util-vserver rpms and tried them, to no avail of course :) I would love to be able to compile a kernel and package it as an RPM, however at the moment my efforts are not being rewarded with anything remotely usable. If someone could help me with compiling the kernel that would be appreciated (I have the logs showing what errors I'm getting). Any help at all would be appreciated :) Thankyou for your time. Matt. ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] CentOS RPM's
Matt Paine wrote: Hi Guys I've been a while (again) since I've mucked around with linux-vserver, but the time is here again. This time with CentOS. My ideal setup, as i've come to realise, is a CentOS installation as the host OS, with a linux vserver kernel. Now, my problem lies with an RPM that would suite my purposes. I am unable to find an out of the box kernel RPM, so I thought i'de give it a crack. I've started building RPM's for other software recently,so I thought it would be within my power to try a kernel build. I was wrong. I cant even build the CentOS4.4 kernel on a basic machine with the build software installed, and the src rpm from the CentOS site, let alone a patched version of the CentOS kernel, or a vanilla kernel. (yes, i've tried the vanilla kernel, with a make rpm-pkg and that has the same problems). By the way, trying to make a vanilla kernel, no patches, with standard make commands (no make rpm) fails with the same reasons (invalid string offset errors from the linker). Sounds somewhat odd, but I've had problems trying to build 2.6.20 on it too. Haven't really investigated it yet though. Has anyone got kernel RPM's with the linux vserver patches installed (vanilla or otherwise) that are build for CentOS4.4? I know Daniel has the fedora kernels, and I've been scouring his rpm repository to find the centos ones with no luck (plenty of util-vserver rpms, but no kernels). I had the thought that the vserver stuff might already be in the kernel (long shot i know, but anythings possible) so I downloaded the util-vserver rpms and tried them, to no avail of course :) The problem with the CentOS kernel is that it's really old and it would require major surgery in order to get any sort of recent Linux-VServer version on there. I've been playing with the idea of providing more recent, vanilla kernel RPMs too, but nothing has come out of that yet, mostly because the userspace matches the old kernel. So in order to get a recent kernel working nicely, you'd probably need to update at least udev and mkinitrd. I would love to be able to compile a kernel and package it as an RPM, however at the moment my efforts are not being rewarded with anything remotely usable. If someone could help me with compiling the kernel that would be appreciated (I have the logs showing what errors I'm getting). Posting the errors is always a good idea... -- Daniel Hokka Zakrisson ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] CentOS RPM's
Hi Daniel Sounds somewhat odd, but I've had problems trying to build 2.6.20 on it too. Haven't really investigated it yet though. Has anyone got kernel RPM's with the linux vserver patches installed (vanilla or otherwise) that are build for CentOS4.4? I know Daniel has the fedora kernels, and I've been scouring his rpm repository to find the centos ones with no luck (plenty of util-vserver rpms, but no kernels). I had the thought that the vserver stuff might already be in the kernel (long shot i know, but anythings possible) so I downloaded the util-vserver rpms and tried them, to no avail of course :) The problem with the CentOS kernel is that it's really old and it would require major surgery in order to get any sort of recent Linux-VServer version on there. I've been playing with the idea of providing more recent, vanilla kernel RPMs too, but nothing has come out of that yet, mostly because the userspace matches the old kernel. So in order to get a recent kernel working nicely, you'd probably need to update at least udev and mkinitrd. That would explain a lot. :) Thanx for the tips I would love to be able to compile a kernel and package it as an RPM, however at the moment my efforts are not being rewarded with anything remotely usable. If someone could help me with compiling the kernel that would be appreciated (I have the logs showing what errors I'm getting). Posting the errors is always a good idea... Thought it was bit off topic - but here I go I'm compiling under root on a VMWare machine. Its a basic CentOS4.4 system, straight from the DVD, with 'yum groupinstall 'Development Tools' installed. I downloaded the kernel src rpm from mirror.centos.org, and am simply trying to recompile the kernel that come with the distro (no packages have been updated - its all straight from the dvd). Having said that I do have the VMWare Tools installed - but as far as I'm aware they are drivers for the VMWare machine. If you are unaware on whats going on i think the next stage might be to go find a real machine to the build on. But any hints would be great :) ---console--8-- [EMAIL PROTECTED] rpmbuild]# rpm -ivh kernel-2.6.9-42.EL.src.rpm (lots of buildsvn group and user no existing, using root) [EMAIL PROTECTED] rpmbuild]# cd kernel/SPEC/ [EMAIL PROTECTED] SPEC]# rpmbuild -ba --target i686 kernel-2.6.spec \ build.log 2 build-err.log --8 -build.log--8-- Building target platforms: i686 Building for target i686 Executing(%prep): /bin/sh -e /root/rpmbuild/kernel/TMP/rpm-tmp.61696 Patch #3 (patch-2.6.9-ac11.bz2): Patch #4 (linux-2.6.9-selected-ac-bits.patch): Patch #10002 (linux-2.6.9-slab-update.patch): Patch #10003 (linux-2.6.9-pci-ids.patch): `/root/rpmbuild/kernel/SOURCE/kernel-2.6.9-i586-smp.config' - `./kernel-2.6.9-i586-smp.config' `/root/rpmbuild/kernel/SOURCE/kernel-2.6.9-i586.config' - `./kernel-2.6.9-i586.config' `/root/rpmbuild/kernel/SOURCE/kernel-2.6.9-i686-hugemem.config' - `./kernel-2.6.9-i686-hugemem.config' `/root/rpmbuild/kernel/SOURCE/kernel-2.6.9-i686-smp.config' - `./kernel-2.6.9-i686-smp.config' `/root/rpmbuild/kernel/SOURCE/kernel-2.6.9-i686.config' - `./kernel-2.6.9-i686.config' removed `./drivers/isdn/capi/kcapi.c.orig' removed `./drivers/isdn/capi/capidrv.c.orig' removed `./sound/pci/intel8x0.c.orig' removed `./sound/oss/msnd.c.orig' Executing(%build): /bin/sh -e /root/rpmbuild/kernel/TMP/rpm-tmp.3088 cc linux-2.6.9/scripts/bin2c.c -o linux-2.6.9/scripts/bin2c BUILDING A KERNEL FOR i686... CHK include/linux/version.h UPD include/linux/version.h CHK include/linux/version.h SYMLINK include/asm - include/asm-i386 SPLIT include/linux/autoconf.h - include/config/* CHK include/asm-i386/asm_offsets.h UPD include/asm-i386/asm_offsets.h CHK include/linux/compile.h UPD include/linux/compile.h RPM build errors: --8 -build-err.log8 + umask 022 + cd /root/rpmbuild/kernel/BUILD + LANG=C + export LANG + unset DISPLAY + cd /root/rpmbuild/kernel/BUILD + rm -rf kernel-2.6.9 + /bin/mkdir -p kernel-2.6.9 + cd kernel-2.6.9 + tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chown -Rhf root . ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chgrp -Rhf root . + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd linux-2.6.9 + echo 'Patch #3 (patch-2.6.9-ac11.bz2):' + /usr/bin/bzip2 -d + patch -p1 -s + STATUS=0 + '[' 0 -ne 0 ']' + echo 'Patch #4 (linux-2.6.9-selected-ac-bits.patch):' + patch -p1 -s + echo 'Patch #10 (linux-2.6.9-ac-backouts.patch):' + patch -p1 -R -s + Config=kernel-2.6.9-i686.config + DevelDir=/usr/src/kernels/2.6.9-42.EL-i686 +
Re: [Vserver] CentOS RPM's
On Sun, 2007-03-25 at 15:55 +0200, Daniel Hokka Zakrisson wrote: Matt Paine wrote: [...] Has anyone got kernel RPM's with the linux vserver patches installed (vanilla or otherwise) that are build for CentOS4.4? I know Daniel has the fedora kernels, and I've been scouring his rpm repository to find the centos ones with no luck (plenty of util-vserver rpms, but no kernels). I had the thought that the vserver stuff might already be in the kernel (long shot i know, but anythings possible) so I downloaded the util-vserver rpms and tried them, to no avail of course :) The problem with the CentOS kernel is that it's really old and it would require major surgery in order to get any sort of recent Linux-VServer version on there. I've been playing with the idea of providing more recent, vanilla kernel RPMs too, but nothing has come out of that yet, mostly because the userspace matches the old kernel. So in order to get a recent kernel working nicely, you'd probably need to update at least udev and mkinitrd. If you take these from FC6, you need several more just because of the dependencies of the FC6-RPMS. But I didn't try it (read: rebuilding them and `rpm -i --nodeps` them) since I can't risk it ATM. Another option/possibility could be to use CentOS-5 with a (very probably heavily patched) 2.6.18 kernel which is now in beta since RHEL5 has been annouced last week or so. So at least the user-space should be much more recent. Bernd -- Firmix Software GmbH http://www.firmix.at/ mobil: +43 664 4416156 fax: +43 1 7890849-55 Embedded Linux Development and Services ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver