Chapter 28. Compiling para-virtualized driver packages from source code

Chapter 28. Compiling para-virtualized driver packages from source code

You may need to rebuild the RPMs to get them working properly on your system for specific architectures. Use the source RPMs provided by Red Hat. These instructions will also allow you to install from the source RPMs.

Before compiling, the kverrel and kverbase variables in the xenpv.spec file must be changed to match the kernel version that binary modules are being built for. Usually, this is the value returned from 'uname -r'.

You can then use the following command to rebuild the kmod-xenpv package. Change SOURCE to reflect the correct path to your kmod-xenpv RPM file.

cd /usr/src/redhat/SOURCE/xenpv
rpmbuild -bb kmod-xenpv

Note: This documentation is provided {and copyrighted} by Red Hat®, Inc. and is released via the Open Publication License. The copyright holder has added the further requirement that Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder. The CentOS project redistributes these original works (in their unmodified form) as a reference for CentOS-5 because CentOS-5 is built from publicly available, open source SRPMS. The documentation is unmodified to be compliant with upstream distribution policy. Neither CentOS-5 nor the CentOS Project are in any way affiliated with or sponsored by Red Hat®, Inc.