Skip to content

Instantly share code, notes, and snippets.

@ksexton
Created January 21, 2014 22:33
Show Gist options
  • Save ksexton/8549859 to your computer and use it in GitHub Desktop.
Save ksexton/8549859 to your computer and use it in GitHub Desktop.
# 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