Created
January 21, 2014 22:33
-
-
Save ksexton/8549859 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check for bios messages in dmesg | |
# BUG: Checking dmesg is the best we can do in userspace at this time. | |
# Ideally, the kernel would improve it's reporting by setting a | |
# flag such as svm_disabled|vmx_disabled in /proc/cpuinfo's flags. | |
if dmesg | grep -qs "kvm: disabled by bios"; then | |
echo "INFO: KVM is disabled by your BIOS" | |
echo "HINT: Enter your BIOS setup and enable Virtualization Technology ( | |
VT)," | |
echo " and then hard poweroff/poweron your system" | |
verdict 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment