Visit Counter

Wednesday, February 10, 2021

Failed to load SELinux Policy Freezing



Scenario 1

I facing  below error while I copy data from host computer to Virtual Machine the host computer drive full. The virtual machine stuck...Once I restart the Virtual machine...it's given this error.


"Failed to load SELinux policy, freezing."


Solution:

=======

  • Press “e” at the boot screen to edit the startup parameters.

  • Modify the line that starts with “linux16” and append “selinux=0” to the end
  • Press “ctrl+x” to boot.

This allows us to boot with SELinux disabled. We can now re-edit the SELinux configuration file and fix our typo.


Scenario 2

Failed to load SELinux policy freezing. Well, that’s a new one – at least for me. So what went wrong?

While performing some configuration changes on one of my Linux hosts, I needed to temporarily disable SELinux to test. Easy enough, right? Edit /etc/selinux/config and change SELINUX to disabled.

Changes made, host rebooted. I go off to perform another task, and when I come back to check on it I cannot log in. I load up the console and it’s stuck at loading CentOS. When I pull up the console logs, I see this:

Failed to load SELinux policy freezing. Well, that’s a new one – at least for me. So what went wrong?

While performing some configuration changes on one of my Linux hosts, I needed to temporarily disable SELinux to test. Easy enough, right? Edit /etc/selinux/config and change SELINUX to disabled.

Changes made, host rebooted. I go off to perform another task, and when I come back to check on it I cannot log in. I load up the console and it’s stuck at loading CentOS. When I pull up the console logs, I see this: