OpenVZ Forum


Home » General » Support » compiling RHEL5 under Debian Lenny
compiling RHEL5 under Debian Lenny [message #39833] Tue, 08 June 2010 16:07 Go to next message
Lightpro is currently offline  Lightpro
Messages: 2
Registered: June 2010
Junior Member
Hi,

is there a manuel how to compile the RHEL5 Source with Debian? We're using the old 2.6.18 Kernel, but have to upgrade for security reasons.

We were told to use the 2.6.32 kernel, but openvz is not available in a stable version for this kernel.

I've tried to compile the source of the Debian 2.6.26 Kernel, but can't patch it with the openvz patch from debian.

So, the last chance is the RHEL5 Kernel, but I can't compile it.
I've got errors with rpm which says that some programs like perl, gzip etc are not installed but they are.

Any help?

Cheers, Ingo
Re: compiling RHEL5 under Debian Lenny [message #39842 is a reply to message #39833] Wed, 09 June 2010 12:21 Go to previous messageGo to next message
TheStig is currently offline  TheStig
Messages: 94
Registered: December 2008
Member
Why doesn't it work to apply the patch for the 2.6.26 kernel?

cd /usr/src
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.26.tar .bz2
wget http://download.openvz.org/kernel/branches/2.6.26/2.6.26-gog ol.1/patches/patch-gogol.1-combined.gz
wget http://download.openvz.org/kernel/branches/2.6.26/2.6.26-gog ol.1/configs/kernel-2.6.26-x86_64.config.ovz (if u want to use x86_64)

tar xjf linux-2.6.26.tar.bz2
cd linux-2.6.26.tar.bz2
gzip -dc ../patch-gogol.1-combined.gz | patch -p1 --dry-run
gzip -dc ../patch-gogol.1-combined.gz | patch -p1

cp ../kernel-2.6.26-x86_64.config.ovz .config
make menuconfig (and save to .config)

make-kpkg clean

fakeroot make-kpkg --initrd --append-to-version=-custom-openvz kernel_image kernel_headers

should do the trick...
Re: compiling RHEL5 under Debian Lenny [message #39843 is a reply to message #39833] Wed, 09 June 2010 12:29 Go to previous message
TheStig is currently offline  TheStig
Messages: 94
Registered: December 2008
Member
ps:
there are precompiled 2.6.26-2-openvz-* packages for lenny
and btw. afaik is the 2.6.26-kernel also NOT stable. and why should the current RHEL5 2.6.18-kernel be unsecure?

[Updated on: Wed, 09 June 2010 12:37]

Report message to a moderator

Previous Topic: how to install yum on VPS
Next Topic: Stable kernel release
Goto Forum:
  


Current Time: Sun Jul 14 18:01:09 GMT 2024

Total time taken to generate the page: 0.02315 seconds