1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

VirtualBox:CENTOS6.5のゲストOSがカーネルパニックになる件

Last updated at Posted at 2014-10-14

SELinuxの設定をいじったら、

Kernel panic – not syncing: Attempted to kill init!

と出て起動しなくなってしまった。。

結果的には、バーチャルボックス:カーネルパニックからのデータ復旧 にてデータをサルベージして復旧をかけましたが、どうも、SELinuxをいじった場合は、grub.confもいじらないといけないらしい。

というメモです
起動オプションに、enforcing=0を追加するみたい。

grub.conf

+++ /etc/grub.conf      2014-10-14 07:59:35.000000000 +0900
@@ -13,9 +13,9 @@
 hiddenmenu
 title CentOS (2.6.32-431.29.2.el6.x86_64)
        root (hd0,0)
-       kernel /vmlinuz-2.6.32-431.29.2.el6.x86_64 ro root=/dev/mapper/vg_gate02-lv_root rd_NO_LUKS rd_NO_MD crashkernel=auto  KEYBOARDTYPE=pc KEYTABLE=jp106 rd_LVM_LV=vg_gate02/lv_root rd_LVM_LV=vg_gate02/lv_swap LANG=ja_JP.UTF-8 rd_NO_DM rhgb quiet
+       kernel /vmlinuz-2.6.32-431.29.2.el6.x86_64 ro root=/dev/mapper/vg_gate02-lv_root rd_NO_LUKS rd_NO_MD crashkernel=auto  KEYBOARDTYPE=pc KEYTABLE=jp106 rd_LVM_LV=vg_gate02/lv_root rd_LVM_LV=vg_gate02/lv_swap LANG=ja_JP.UTF-8 rd_NO_DM rhgb quiet enforcing=0
        initrd /initramfs-2.6.32-431.29.2.el6.x86_64.img
 title CentOS (2.6.32-431.el6.x86_64)
        root (hd0,0)
-       kernel /vmlinuz-2.6.32-431.el6.x86_64 ro root=/dev/mapper/vg_gate02-lv_root rd_NO_LUKS rd_NO_MD crashkernel=auto  KEYBOARDTYPE=pc KEYTABLE=jp106 rd_LVM_LV=vg_gate02/lv_root rd_LVM_LV=vg_gate02/lv_swap LANG=ja_JP.UTF-8 rd_NO_DM rhgb quiet
+       kernel /vmlinuz-2.6.32-431.el6.x86_64 ro root=/dev/mapper/vg_gate02-lv_root rd_NO_LUKS rd_NO_MD crashkernel=auto  KEYBOARDTYPE=pc KEYTABLE=jp106 rd_LVM_LV=vg_gate02/lv_root rd_LVM_LV=vg_gate02/lv_swap LANG=ja_JP.UTF-8 rd_NO_DM rhgb quiet enforcing=0
        initrd /initramfs-2.6.32-431.el6.x86_64.img

追記

SELinuxの設定変更をし再起動した場合にカーネルパニックになる、という事象の原因・よくある設定ミスについてでアドバイスを頂きました。ありがとうございました!!

1
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?