CentOS 6编译官方内核

yum install rpm-build gcc gcc-c++ ncurses-devel
yum install "Development Tools"

rpm -qa | grep kernel | grep -v $(uname -r)
rpm -ev kernel-2.6.32-754.el6.x86_64
rpm -ev kernel-2.6.32-754.35.1.el6.x86_64
rpm -ev kernel-firmware-2.6.32-754.35.1.el6.noarch
rpm -ev kernel-devel-2.6.32-754.35.1.el6.x86_64
rpm -ev kernel-headers-2.6.32-754.35.1.el6.x86_64

https://archive.kernel.org/centos-vault/6.10/updates/Source/SPackages/kernel-2.6.32-754.35.1.el6.src.rpm

unzip to:kernel-2.6.32-754.35.1.el6

cd kernel-2.6.32-754.35.1.el6
tar xvf linux-2.6.32-754.35.1.el6.tar.bz2
cd linux-2.6.32-754.35.1.el6

make mrproper

cp /boot/config-2.6.32-754.el6.x86_64 ./.config

make menuconfig
Load an Alternate Configuration File: .config
1) "Enable loadable module support" - "Module signature verification (EXPERIMENTAL)", Disable it.
2) Then go back to the main menu, "Cryptographic API" - "In-kernel signature checker (EXPERIMENTAL)", disable it.
Exit

make -j8
make INSTALL_MOD_STRIP=1 modules_install -j8

ERROR: modinfo: could not find module vmw_balloon
cd /lib/modules/2.6.32/kernel/drivers/misc/
ln -s vmware_balloon.ko vmw_balloon.ko

make install -j8

vi /boot/grub/grub.conf
default=0

reboot