Red Hat – Kernel Panic after yum update – Hyper-V

June 23rd, 2016 by admin Leave a reply »

After a yum update on a Red Hat VM, hosted on a hyper-v environment. You might run into an issue where on boot, the system kernel panics.

This was observed when the update brought the RH system from RH less then 6.5 to 6.5+.

Should this occur you can try the following:

  • Boot system into previous kernel using the menu at boot
  • go into the /boot directory
  • backup the newest kernel: cp initramfs-2.6.32-642.el6.x86_64.img initramfs-2.6.32-642.el6.x86_64.img.$(date +%m-%d-%H%M%S).bak
  • Uninstall the hyper-v packages: yum remove kmod-microsoft-hyper-v microsoft-hyper-v
  • rebuild the kernel (updated) dracut -f initramfs-2.6.32-642.el6.x86_64.img 2.6.32-642.el6.x86_64
  • reboot the system

Leave a Reply

You must be logged in to post a comment.