kvm-ok - determine if this system is capable of running hardware accelerated KVM virtual machines (ie,
Contents
Bugs
The disabled-by-bios check currently scans dmesg(1) for a message displayed by the kernel. This is not
ideal, in that a long-running system will eventually roll the dmesg logs. The kernel should expose the
disabled-by-bios flag in /proc/cpuinfo.
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/535373Description
kvm-ok is a program that will determine if the locate system can host hardware accelerated KVM virtual
machines.
The program will first determine if /proc/cpuinfo contains the flags indicating that the CPU has the
Virtualization Technology (VT) capability.
Next, it will check if the /dev/kvm device exists.
If running as root, it will check your CPU's MSRs to see if VT is disabled in the BIOS.
In some failure cases, kvm-ok provides hints on how you might go about enabling KVM on a system where it
is arbitrarily disabled.
If KVM can be used, this script will exit 0, otherwise it will exit non-zero.
Files
/proc/cpuinfo, /dev/kvmMore Information
Name
kvm-ok - determine if this system is capable of running hardware accelerated KVM virtual machines (ie,
possesses Virtualization Technology)
See Also
kvm(1), dmesg(1)
