You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xCAT management node runs xCAT 2.13.4 GA edition on ppc64le or x86-64 architecture
KVM host with RHEL 7.3 + RHV 4.1 on ppc64le or x86-64 architecture
Recreation steps
On the KVM host, enable selinux. Make sure it is in the enforcing state.
[root@kvmhost ~] # getenforce
Enforcing
On the xCAT management node, create one KVM guest on the KVM host with command mkvm.
[root@xcatmn ~] # mkvm kvmguest
And then, power the newly created KVM guest on, and off.
[root@xcatmn ~] # rpower kvmguest on
[root@xcatmn ~] # rpower kvmguest off
Back to the KVM host, edit configuration file /etc/sysconfig/selinux and disable the selinux setting. Reboot the KVM host. After rebooting, make sure selinux is in the disabled state.
[root@kvmhost ~] # getenforce
Disabled
Switch to the xCAT management node, and try to power the KVM guest on with xCAT command rpower. It will get the following error message.
[root@xcatmn ~] # rpower kvmguest on
kvmguest: Error: unsupported configuration: Unable to find security driver for model selinux
The text was updated successfully, but these errors were encountered:
While a KVM guest was created while selinux set to enforcing, a seclabel section similar to the following was added to the definition XML of the KVM guest.
And xCAT saved this XML to its database, in kvm_nodedata table. While a KVM guest need to be powered on, this save XML copy will be used to redefine to KVM guest on the KVM host.
Actually, the seclabel section above was ask for the selinux security model on the KVM host. When it is lack, the KVM guest simply refuse to boot.
A simple workaround of this issue is run rmvm and then mkvm against the affected KVM guest. This will remove the XML copy saved in xCAT database, and recreate the KVM guest while selinux is disabled on the KVM host. After the KVM guest re-creation, it can be powered on straight-forward.
Software environment
Recreation steps
On the KVM host, enable selinux. Make sure it is in the enforcing state.
On the xCAT management node, create one KVM guest on the KVM host with command
mkvm
.And then, power the newly created KVM guest on, and off.
Back to the KVM host, edit configuration file
/etc/sysconfig/selinux
and disable the selinux setting. Reboot the KVM host. After rebooting, make sure selinux is in the disabled state.Switch to the xCAT management node, and try to power the KVM guest on with xCAT command
rpower
. It will get the following error message.The text was updated successfully, but these errors were encountered: