When installing the X Window System on a Centos based instance, you may encounter a kernel panic error similar to this:
audit(1317965535.759:2): enforcing=1 old_enforcing=0 auid=4294967295 Unable to load SELinux Policy. Machine is in enforcing mode. Halting now. Kernel panic - not syncing: Attempted to kill init!
This is due to the X Window System installing SELinux as a dependency, and if it isn't needed we normally recommend simply disabling it. This article will explain how to do that.
If you are able to boot and SSH into the instance, you will want to edit the following file:
When editing this file, change:
Be sure to save the changes and exit the file. Upon reboot, you should no longer see this kernel panic message in the console output.
NOTE: You may not be able to get the instance to a stable enough state where you can edit the /etc/sysconfig/selinux file by SSH. If this is the case, we may need to get creative and setup another instance with a script that can dynamically disable SELinux. Feel free to drop us a line at email@example.com or (866) 787-2253 and we'll be happy to do our best to assist.
© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.