CentOS 6.6: KVM Not Found
Dear All,
since upgrading from 6.5 to 6.6 I get the following error message when trying to start a VM in virt-manager:
Error starting domain: unsupported configuration: Domain requires KVM, but it is not available. Check that virtualization is enabled in the host BIOS, and host configuration is setup to load the kvm modules.
Qemu–kvm package is installed, kvm module is loaded and virtualization is activated in BIOS.
Does anyone happen to know what the issue is?
—
Gruß, Christian
Recommended
Recent Posts
Recent Comments
- igor on LibGLU.so.1
- Hussein on NBDE, Clevis And Tang For Non-root Disk
- João M. S. Silva on CentOS 7.6 1810 Vs. VirtualBox : Bug With Keyboard Layout Selection
- Jim Plumb on Spamassassin Vs. SELinux Trouble
- woodiskingser on Off Topic – Need Help Registering To The Smplayer Forum
Archives
- April 2024
- March 2024
- February 2024
- January 2024
- December 2023
- November 2023
- September 2023
- August 2023
- July 2023
- June 2023
- May 2023
- April 2023
- March 2023
- February 2023
- January 2023
- December 2022
- November 2022
- October 2022
- September 2022
- August 2022
- July 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- June 2021
- May 2021
- April 2021
- March 2021
- February 2021
- January 2021
- December 2020
- November 2020
- October 2020
- September 2020
- August 2020
- July 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- October 2019
- September 2019
- August 2019
- July 2019
- June 2019
- May 2019
- April 2019
- March 2019
- February 2019
- January 2019
- December 2018
- November 2018
- October 2018
- September 2018
- August 2018
- July 2018
- June 2018
- May 2018
- April 2018
- March 2018
- February 2018
- January 2018
- December 2017
- November 2017
- October 2017
- September 2017
- August 2017
- July 2017
- June 2017
- May 2017
- April 2017
- March 2017
- February 2017
- January 2017
- December 2016
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- May 2016
- April 2016
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- November 2014
- October 2014
- September 2014
- August 2014
- July 2014
- June 2014
- May 2014
- April 2014
- February 2014
- January 2014
- April 2013
- December 2012
11 thoughts on - CentOS 6.6: KVM Not Found
[root@cd chris]# modprobe kvm_intel FATAL: Error inserting kvm_intel
(/lib/modules/2.6.32-504.el6.x86_64/kernel/arch/x86/kvm/kvm-intel.ko):
Operation not supported
It was no problem in 6.5 …
—
Gruß, Christian
It’s neither working with the 2.6.32-431.29.2.el6.x86_64 kernel.
—
Gruß, Christian
Okay, /var/log/messages says
Oct 31 08:10:07 cd kernel: kvm: disabled by bios
Virtualization is enabled in BIOS and I’ve no further options in the BIOS concerning virtualization …
—
Gruß, Christian
SELinux was permissive. It has to be disabled.
—
Gruß, Christian
can you post the relevant selinux audit.log entries that were preventing kvm’s ko to be loaded ?
Sure.
type=VIRT_CONTROL msg=audit(1414739214.851:62): user pid=2911 uid=0
auid=4294967295 ses=4294967295
subj=system_u:system_r:virtd_t:s0-s0:c0.c1023 msg=’virt=kvm op=start reason=booted vm=”
tor2″ uuid=xxx vm-pid=-1 exe=”/usr/sbin/libvirtd” hostname=? addr=?
terminal=? res=failed’
SELinux should not be preventing you from loading the kvm_intel module. Something is wrong somewhere else. Is there an AVC entry in the audit logs for when you try to load the module?
There are many:
messages:Oct 30 15:54:47 cd dbus: avc: received policyload notice (seqno=2)
messages:Oct 30 15:54:47 cd dbus: avc: received policyload notice (seqno=2)
messages:Oct 31 06:45:57 cd kernel: type=1400 audit(1414734345.936:3):
avc: denied { write } for pid=1529 comm=”prelink” name=”/” dev=tmpfs ino=5771 scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=dir messages:Oct 31 06:45:57 cd kernel: type=1400 audit(1414734345.936:4):
avc: denied { add_name } for pid=1529 comm=”prelink”
name=”#prelink#.508OFB”
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=dir messages:Oct 31 06:45:57 cd kernel: type=1400 audit(1414734345.937:5):
avc: denied { create } for pid=1529 comm=”prelink”
name=”#prelink#.508OFB”
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file messages:Oct 31 06:45:57 cd kernel: type=1400 audit(1414734345.937:6):
avc: denied { open } for pid=1529 comm=”prelink”
name=”#prelink#.508OFB” dev=tmpfs ino=12231
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file messages:Oct 31 06:45:57 cd kernel: type=1400 audit(1414734345.938:7):
avc: denied { setattr } for pid=1530 comm=”prelink”
name=”#prelink#.hDVBGB” dev=tmpfs ino=12232
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file messages:Oct 31 06:45:57 cd kernel: type=1400 audit(1414734345.939:9):
avc: denied { relabelfrom } for pid=1529 comm=”prelink”
name=”#prelink#.508OFB” dev=tmpfs ino=12231
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file messages:Oct 31 06:52:06 cd kernel: type=1400 audit(1414734715.889:3):
avc: denied { write } for pid=1530 comm=”prelink” name=”/” dev=tmpfs ino=5771 scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=dir messages:Oct 31 06:52:06 cd kernel: type=1400 audit(1414734715.889:4):
avc: denied { add_name } for pid=1530 comm=”prelink”
name=”#prelink#.jepEMr”
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=dir messages:Oct 31 06:52:06 cd kernel: type=1400 audit(1414734715.889:5):
avc: denied { create } for pid=1530 comm=”prelink”
name=”#prelink#.jepEMr”
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file messages:Oct 31 06:52:06 cd kernel: type=1400 audit(1414734715.889:6):
avc: denied { open } for pid=1530 comm=”prelink”
name=”#prelink#.jepEMr” dev=tmpfs ino=12240
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file messages:Oct 31 06:52:06 cd kernel: type=1400 audit(1414734715.889:7):
avc: denied { write } for pid=1529 comm=”prelink” name=”/” dev=tmpfs ino=5771 scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=dir messages:Oct 31 06:52:06 cd kernel: type=1400 audit(1414734715.891:8):
avc: denied { setattr } for pid=1529 comm=”prelink”
name=”#prelink#.SI8xMr” dev=tmpfs ino=12241
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file messages:Oct 31 06:52:06 cd kernel: type=1400 audit(1414734715.893:9):
avc: denied { relabelfrom } for pid=1530 comm=”prelink”
name=”#prelink#.jepEMr” dev=tmpfs ino=12240
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file messages:Oct 31 06:52:06 cd kernel: type=1400 audit(1414734715.896:10):
avc: denied { remove_name } for pid=1530 comm=”prelink”
name=”#prelink#.jepEMr” dev=tmpfs ino=12240
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=dir messages:Oct 31 08:03:36 cd kernel: type=1400 audit(1414739004.471:3):
avc: denied { write } for pid=1536 comm=”prelink” name=”/” dev=tmpfs ino=5693 scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=dir messages:Oct 31 08:03:36 cd kernel: type=1400 audit(1414739004.471:4):
avc: denied { add_name } for pid=1536 comm=”prelink”
name=”#prelink#.eckYE7″
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=dir messages:Oct 31 08:03:36 cd kernel: type=1400 audit(1414739004.471:5):
avc: denied { create } for pid=1536 comm=”prelink”
name=”#prelink#.eckYE7″
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file messages:Oct 31 08:03:36 cd kernel: type=1400 audit(1414739004.471:6):
avc: denied { open } for pid=1536 comm=”prelink”
name=”#prelink#.eckYE7″ dev=tmpfs ino=12208
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file messages:Oct 31 08:03:36 cd kernel: type=1400 audit(1414739004.473:7):
avc: denied { setattr } for pid=1536 comm=”prelink”
name=”#prelink#.eckYE7″ dev=tmpfs ino=12208
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file messages:Oct 31 08:03:36 cd kernel: type=1400 audit(1414739004.474:8):
avc: denied { relabelfrom } for pid=1535 comm=”prelink”
name=”#prelink#.C5DoF7″ dev=tmpfs ino=12209
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file messages:Oct 31 08:03:36 cd kernel: type=1400 audit(1414739004.474:9):
avc: denied { relabelfrom } for pid=1536 comm=”prelink”
name=”#prelink#.eckYE7″ dev=tmpfs ino=12208
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file messages:Oct 31 08:03:36 cd kernel: type=1400 audit(1414739004.479:10):
avc: denied { remove_name } for pid=1536 comm=”prelink”
name=”#prelink#.eckYE7″ dev=tmpfs ino=12208
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=dir messages:Oct 31 08:16:22 cd kernel: type=1400 audit(1414739770.962:3):
avc: denied { write } for pid=1554 comm=”prelink” name=”/” dev=tmpfs ino=5771 scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=dir messages:Oct 31 08:16:22 cd kernel: type=1400 audit(1414739770.962:4):
avc: denied { add_name } for pid=1554 comm=”prelink”
name=”#prelink#.rIXw8c”
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=dir messages:Oct 31 08:16:22 cd kernel: type=1400 audit(1414739770.963:5):
avc: denied { create } for pid=1554 comm=”prelink”
name=”#prelink#.rIXw8c”
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file messages:Oct 31 08:16:22 cd kernel: type=1400 audit(1414739770.963:6):
avc: denied { open } for pid=1554 comm=”prelink”
name=”#prelink#.rIXw8c” dev=tmpfs ino=12241
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file messages:Oct 31 08:16:22 cd kernel: type=1400 audit(1414739770.964:7):
avc: denied { setattr } for pid=1555 comm=”prelink”
name=”#prelink#.BFWz8c” dev=tmpfs ino=12242
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file messages:Oct 31 08:16:22 cd kernel: type=1400 audit(1414739770.965:8):
avc: denied { relabelfrom } for pid=1554 comm=”prelink”
name=”#prelink#.rIXw8c” dev=tmpfs ino=12241
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file messages:Oct 31 08:16:22 cd kernel: type=1400 audit(1414739770.970:10):
avc: denied { remove_name } for pid=1554 comm=”prelink”
name=”#prelink#.rIXw8c” dev=tmpfs ino=12241
scontext=system_u:system_r:prelink_mask_t:s0-s0:c0.c1023
tcontext=system_u:object_r:tmpfs_t:s0 tclass=dir
I cannot say for sure if those entries were created when starting the vm or when rebooting the physical host.
Those are not avc’s they are standard audit logs and have nothing to do with SELinux.
These avc’s have nothing to do with virtualization, they are about prelink, and would have no effect on whether or not you can run VM’s/