Loading src/config.sh +18 −10 Original line number Diff line number Diff line Loading @@ -4,6 +4,8 @@ set -Eeuo pipefail KVM_ERR="" KVM_OPTS="" if [ "$ARCH" == "amd64" ]; then if [ -e /dev/kvm ] && sh -c 'echo -n > /dev/kvm' &> /dev/null; then if ! grep -q -e vmx -e svm /proc/cpuinfo; then KVM_ERR="(vmx/svm disabled)" Loading @@ -13,12 +15,18 @@ else fi if [ -n "$KVM_ERR" ]; then if [ "$ARCH" == "amd64" ]; then error "KVM acceleration not detected $KVM_ERR, see the FAQ about this." [[ "$DEBUG" != [Yy1]* ]] && exit 88 fi else KVM_OPTS=",accel=kvm -enable-kvm -cpu host" if [ "$CPU_MODEL" == "host" ]; then if ! grep -qE '^flags.* (sse4_2)' /proc/cpuinfo; then error "Your CPU does not have the SSE4.2 instruction set, which is required by DSM." [[ "$DEBUG" != [Yy1]* ]] && exit 89 fi fi KVM_OPTS=",accel=kvm -enable-kvm -cpu $CPU_MODEL" fi fi DEF_OPTS="-nographic -nodefaults -boot strict=on -display none" Loading Loading
src/config.sh +18 −10 Original line number Diff line number Diff line Loading @@ -4,6 +4,8 @@ set -Eeuo pipefail KVM_ERR="" KVM_OPTS="" if [ "$ARCH" == "amd64" ]; then if [ -e /dev/kvm ] && sh -c 'echo -n > /dev/kvm' &> /dev/null; then if ! grep -q -e vmx -e svm /proc/cpuinfo; then KVM_ERR="(vmx/svm disabled)" Loading @@ -13,12 +15,18 @@ else fi if [ -n "$KVM_ERR" ]; then if [ "$ARCH" == "amd64" ]; then error "KVM acceleration not detected $KVM_ERR, see the FAQ about this." [[ "$DEBUG" != [Yy1]* ]] && exit 88 fi else KVM_OPTS=",accel=kvm -enable-kvm -cpu host" if [ "$CPU_MODEL" == "host" ]; then if ! grep -qE '^flags.* (sse4_2)' /proc/cpuinfo; then error "Your CPU does not have the SSE4.2 instruction set, which is required by DSM." [[ "$DEBUG" != [Yy1]* ]] && exit 89 fi fi KVM_OPTS=",accel=kvm -enable-kvm -cpu $CPU_MODEL" fi fi DEF_OPTS="-nographic -nodefaults -boot strict=on -display none" Loading