在虚拟机中安装好red hat enterprise linux6.4和VMware tools之后关机增加了一块50G的虚拟硬盘,再次启动系统的时候出现“Kernel Panic -- not syncing: attempted to kill init”。

经过检查发现我的系统是由于LINUX的selinux的config文件设置错误造成的。

    1  # This file controls the state of SELinux on the system.
   2  # SELINUX= can take one of these three values:
   3  #       enforcing - SELinux security policy is enforced.
   4  #       permissive - SELinux prints warnings instead of
   enforcing.
   5  #       disabled - SELinux is fully disabled.
   6  SELINUX=enforcing
   7  # SELINUXTYPE= type of policy in use. Possible values are:
   8  #        targeted - Only targeted network daemons are
   protected.
   9  #        strict - Full SELinux protection.
   10 SELINUXTYPE=strict

我的解决方法是(网上并成功的方法):
系统启动的时候,按下‘e’键进入grub编辑界面,编辑grub菜单,选择“kernel /vmlinuz-2.6.23.1-42.fc8 ro root=/dev/vogroup00/logvol00 rhgb quiet” 一栏,按‘e’键进入编辑,在末尾增加enforcing=0,即:
kernel /vmlinuz-2.6.23.1-42.fc8 ro root=/dev/vogroup00/logvol00 rhgb quiet enforcing=0
按‘b’键继续引导,OK顺利前进。

进入系统之后修改selinux下的config文件,重启之后问题解决。