After installing RHEL 7 and then attempting to add VirtualBox Guest Additions – the display becomes corrupted and frozen and the instance will not restart.
Right before the instance attempts to start a messages is displayed as follows:
Failed to load SELinux policy
Only solution I have found to fix this is:
Restart your VirtualBox VM - before it auto boots, press "e" at the end of the line that starts with "linux16": add selinux=0 (to disable SELinux and allow boot to succeed) ctrl+x (to save and exit the editor - system will reboot) Once the server boots, reinstall selinux-policy-targeted as follows: # yum reinstall selinux-policy-targeted # touch /.autorelabel # systemctl reboot
I’ve seen this occur with Oracle Linux 7, Centos 7, RHEL 7 – whether or not Selinux is setup on install.
Another Way To turn off SELinux
sestatus cd /etc/selinux vi configĀ # change the variable below to: SELINUX=disabled
Now reboot and rerun the sestatus command