[CentOS-virt] What kernel source and how to download it

Thu Nov 26 12:44:52 UTC 2009
Mauro Gatti <mauro.list at yahoo.com>

Hi all,
I am running CentOS 5.3 under xen on a VPS machine (so I have a limited control on the machine)
I am playing with openswan and KLIPS and I need to build the ipsec.ko kernel module.
I would need to download kernel source but I am really confused about what source I have to get.

uname -r tells:

ls /lib/modules tells:
ls /lib/modules        
2.6.18-128.7.1.el5xen  2.6.18-164.2.1.el5  2.6.18-164.6.1.el5  2.6.18-53.1.13.el5xen

I have no sources in /usr/src/kernels

Is there a source code named "2.6.18-128.7.1.el5xen" which I can download or should I install kernel-devel source using yum?
If I used yum I would download
yum info kernel-devel  
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Available Packages
Name       : kernel-devel
Arch       : i686
Version    : 2.6.18
Release    : 164.6.1.el5
Size       : 5.2 M
Repo       : updates
Summary    : Development package for building kernel modules to match the kernel.
URL        : http://www.kernel.org/
License    : GPLv2
Description: This package provides kernel headers and makefiles sufficient to build modules
           : against the kernel package.

and kernel.org has only source code from to



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos-virt/attachments/20091126/cc399bc8/attachment-0005.html>