KVM vs. SELinux

Source: Internet
Author: User

 for label SELinux Check to see if SELinux is off:  ? ' ^selinux ' /etc/sysconfig/selinuxselinux=Disabledselinuxtype

To view the boot log for LIBVIRTD:

? Desktop TAILF/var/log/libvirt/Libvirtd.log .- the- One  A: -:33.812+0000:3579: Error:virsecuritymanagergenlabel:376: Unsupported configuration:unable to find security driver forlabel SELinux .- the- One  A: -:33.812+0000:3579: Error:qemuremovecgroup:824:InternalError unable to find Cgroup for16lnmp .- the- One  A: -:33.812+0000:3579: Warning:qemuprocessstop:4617: Failed to remove Cgroup for16lnmp .- the- One  A: -:33.813+0000:3579: Warning:qemudomainobjstart:6252: Unable to restore fromManaged state/var/lib/libvirt/qemu/save/16lnmp.save. Maybe the file isCorrupted?

The cause of this error is:

Due to the machine boot state, the SELinux state information is save in the virtual machine, resulting in selinux shutdown, the virtual cannot find the corresponding label, resulting in VM start failure.

If the configuration profile has SELinux-related configuration, delete it, if not, it may have been saved in the VM state, the original state can be deleted (corresponding to the path/var/lib/libvirt/qemu/save), as follows:

~ ls/var/lib/libvirt/qemu/Save 13svn.save  14git.save  15samba.save  16lnmp.save  26svn.save  centos7.save?   ~ RM/var/lib/libvirt/qemu/save/16lnmp.save?   ~ virsh Start 16lnmpDomain 16lnmp started# start successfully!!! 

KVM vs. SELinux

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.