Hyper-V環境でLinuxICがインストールされているLinuxマシンのカーネルをアップデートすると起動時に"Kernel Panic"エラーが発生し起動できなくなることがあります。この場合の対処方法を紹介します。
起動時にF2キーを押し起動選択画面を表示します。
今まで起動できていた一つ古いバージョンのカーネルを選択して起動します。
古いカーネルで起動できたら/boot/grub/grub.confを修正します。
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-238.12.1.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-238.12.1.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet notsc divider=10 hda=noprobe hdb=noprobe
initrd /initrd-2.6.18-238.12.1.el5.img
title CentOS (2.6.18-238.9.1.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-238.9.1.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet hda=noprobe hdb=noprobe notsc divider=10
initrd /initrd-2.6.18-238.9.1.el5.img
title CentOS (2.6.18-238.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-238.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-238.el5.img
の行の
とします。
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-238.12.1.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-238.12.1.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet notsc divider=10
initrd /initrd-2.6.18-238.12.1.el5.img
title CentOS (2.6.18-238.9.1.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-238.9.1.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet hda=noprobe hdb=noprobe notsc divider=10
initrd /initrd-2.6.18-238.9.1.el5.img
title CentOS (2.6.18-238.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-238.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-238.el5.img
/boot/grub/grub.conf 編集後再起動し、新しいバージョンのカーネルで起動します。
LinuxICのビルドと再インストールをします。
インストールはこちらの手順でインストールしたものとします。
makeして、インストールします。
make終了後、再起動をします
以上で終了です。再起動後、新しいバージョンのカーネルでLinuxICインストール済みのLinuxを起動できます。