虚拟机在启动或者迁移(migrate)时失败(Unable to find security driver for label selinux)

环境el6(rhel/centos6)
报错信息如:

 05:44:07.865+0000: 2792: error : virSecurityManagerGenLabel:376 : unsupported configuration: Unable to find security driver for label selinux

在设置selinux从enforcing到disabed状态时,出现虚拟机无法开启的错误。错误原因如上:
解决方法:
删掉相关的虚拟机内xml文件的seclable标签。

<seclabel type='dynamic' model='selinux' relabel='yes'>
    <label>unconfined_u:system_r:svirt_t:s0:c473,c670</label>
    <imagelabel>unconfined_u:object_r:svirt_image_t:s0:c473,c670</imagelabel>
  </seclabel>

One Reply to “虚拟机在启动或者迁移(migrate)时失败(Unable to find security driver for label selinux)”

  1. 你好。我正在进行嵌入式linux系统的安全加固工作。正在设计selinux策略配置。如果你也在从事类似的工作,希望能和你进行交流。谢谢

kiongf进行回复 取消回复

您的电子邮箱地址不会被公开。