The same problem occurs in different scenarios: the unabletoloadselinuxpolicy occurs during startup.

Source: Internet
Author: User
Scenario 1: unabletoloadselinuxpolicymachineisinenforcingmodehaltingnowkernelpanic-notsyncing: attemptedtoki appears after you change etcselinuxconfigSELINUX = disable.

Scenario 1:

It appears after/etc/selinux/config SELINUX = disable is modified

Unable to load selinux policy. Machine is in enforcing mode. halting now.

Kernel panic-not syncing: attemptedToKill init!

Solution:

Press e on the Grub startup menu to enter the editing mode.

Kernel/vmlinuz-2.6.23.1-42.fc8 ro root =/dev/vogroup00/logvol00 rhgb quiet"

Add enforcing = 0, press enter, and then press B to start.

Scenario 2:

When a physical machine with a KVM virtual machine is forcibly disabled, the following figure is not displayed after the instance is started:

Then go to the grub command line and execute:/etc/inittab. some initialization failure information appears:

... Unable to load selinux policy ..........

Solution:

On the Grub startup menu, press e to enter the editing mode and enter the startup item

"Kernel/vmlinuz-2.6.23.1-42.fc8 ro root =/dev/vogroup00/logvol00 rhgb quiet", add selinux = 0;

And then reboot.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.