HOWTO: Upgrade CentOS for Hyper-V with Linux
HOWTO: Upgrading the CentOS kernel for a Hyper-V virtual machine with Linux Integration Components.
A kernel upgrade will cause a kernel panic. These instructions prevent the boot crash.
Upgrade the kernel:
#yum upgrade
If you boot with this, you will get the kernel panic. Don’t worry. Just press space at boot time and boot from your old kernel. Write down your new kernel number, such as 2.6.18-274.17.1.el5
Compile the Linux IC for your new kernel. You can use the latest IC at this time is v3.2:
mkdir /opt/linux_ic_rtm
cp -r /media/CDROM/* /opt/linux_ic_rtm
cd /opt/linux_ic_rtm
grep -ilR uname * | xargs sed -i 's/uname -r/echo "2.6.18-274.17.1.el5"/g'
make && make install
reboot
You can now let grub boot to your default kernel without a kernel panic.
For general IT service support, please visit us at: Acumen IT Support.
For Hyper-V consulting services, please visit us at: Hyper-V Support.
See our Virtual Private Server Hosting Pages for more information!