This discussion is archived
4 Replies Latest reply: Mar 5, 2013 12:08 PM by J.B.Broccard RSS

OVM Server 3.2.1: Building the Kernel rpms

J.B.Broccard Newbie
Currently Being Moderated
I need to recompile IXGBE driver for that i need the kernel-devel and kernel-headers of the OVS 3.2.1 kernel: 2.6.39-300.22.2.el5uek
From the kernel source file provided in the ISO, I built the RPMs of the kernel source (./mnt/SRPMS/kernel-uek-2.6.39-300.22.*2.el5uek*.src.rpm) in order to install the headers and the devel package, these are the files i got:
-rw-r--r-- 1 root root  32869754 Feb 17 14:58 kernel-uek-2.6.39-300.22.*2uek*.x86_64.rpm
-rw-r--r-- 1 root root  32886537 Feb 17 14:58 kernel-uek-debug-2.6.39-300.22.*2uek*.x86_64.rpm
-rw-r--r-- 1 root root 420162710 Feb 17 14:58 kernel-uek-debug-debuginfo-2.6.39-300.22.*2uek*.x86_64.rpm
-rw-r--r-- 1 root root   8836877 Feb 17 14:58 kernel-uek-debug-devel-2.6.39-300.22.*2uek*.x86_64.rpm
-rw-r--r-- 1 root root 420186436 Feb 17 14:58 kernel-uek-debuginfo-2.6.39-300.22.*2uek*.x86_64.rpm
-rw-r--r-- 1 root root  44450415 Feb 17 14:58 kernel-uek-debuginfo-common-2.6.39-300.22.*2uek*.x86_64.rpm
-rw-r--r-- 1 root root   8822192 Feb 17 14:58 kernel-uek-devel-2.6.39-300.22.*2uek*.x86_64.rpm
-rw-r--r-- 1 root root   1142327 Feb 17 14:58 kernel-uek-headers-2.6.39-300.22.*2uek*.x86_64.rpm

Great. Now, I installed them, and when i try to build IXGBE driver, it complains about not having the right files:
+[root@cbdn-000-008-000-031 src]# make install+
Makefile:83: *** Kernel header files not in any of the expected locations.
Makefile:84: *** Install the appropriate kernel development package, e.g.
Makefile:85: *** kernel-devel, for building kernel modules and try again.  Stop.

When I look in /usr/src/kernels/ this is what i've got:
+[root@cbdn-000-008-000-031 src]# ll /usr/src/kernels/+
drwxr-xr-x 22 root root 4096 Feb 17 15:02 2.6.39-300.22.*2uek*

My kernel version name doesn't exactly match:
+[root@cbdn-000-008-000-031 src]# uname -r+

The command below seems to confirm my concerns:
+[root@cbdn-000-008-000-031 src]# rpm -qa|grep kernel+

Note the *2.el5uek* from the installation and the *2uek* mismatching from the rpmbuild.

I guess this is the issue. Is this a bug or something i did wrong? And is there a OVS 3.2.1 SDK coming soon?


Edited by: 903825 on Feb 17, 2013 3:09 PM

Edited by: 903825 on Feb 17, 2013 3:10 PM

Edited by: 903825 on Feb 17, 2013 3:16 PM

Edited by: 903825 on Feb 17, 2013 3:18 PM


  • Correct Answers - 10 points
  • Helpful Answers - 5 points