So ran into a view issue for a Linux Host today. Kernel Panic !!!
There could be a number of reasons that you might get this error. The three common reasons may be:
- There was a change to selinux config – (that might be an error in the config file)
- There are disk errors
- The kernel is corrupted
None of the kernels in the GRUB boot menu will boot, you get a kernel panic:
Kernel panic â€“ not syncing: Attempted to kill init!
Pid: 1, comm: init Not tainted 2.6.32-504.3.3.el6.x86_64 #1
Booting in single user mode doesnâ€™t work either.
Hereâ€™s how to fix this:
- Reboot, and go in the GRUB menu. You have 3 seconds to strike the arrow keys before it will automatically boot the default kernel.
- Select the first line, the default kernel, and press the E key on the keyboard to edit the parameters. You will then see the following.
- Use the arrow keys to select the 2nd line, that starts with kernel. Press the E key to change this line, use the arrow keys to go to the end and type a space followed by enforcing=0
- Press enter to conform and then press B to boot the system.
It should boot up fine now.
Choose your solution:
Disabled for the SELINUXTYPE variable, thatâ€™s wrong it has to be for the SELINUX variable. In the screenshot below I show you the correct settings in the config file to disable SELINUX.
fsck -a /dev/sda1
yum remove kernel