Virtualization

This commit is contained in:
Kroese 2023-05-19 16:29:24 +02:00 committed by GitHub
parent 27aa4a8951
commit 578d988c6b

View File

@ -54,7 +54,7 @@ KVM_OPTS=""
if [ -e /dev/kvm ] && sh -c 'echo -n > /dev/kvm' &> /dev/null; then if [ -e /dev/kvm ] && sh -c 'echo -n > /dev/kvm' &> /dev/null; then
if ! grep -q -e vmx -e svm /proc/cpuinfo; then if ! grep -q -e vmx -e svm /proc/cpuinfo; then
KVM_ERR="(cpuinfo $(grep -c -e vmx -e svm /proc/cpuinfo))" KVM_ERR="(vmx/svm disabled)"
fi fi
else else
[ -e /dev/kvm ] && KVM_ERR="(no write access)" || KVM_ERR="(device file missing)" [ -e /dev/kvm ] && KVM_ERR="(no write access)" || KVM_ERR="(device file missing)"