diff --git a/qemu/launchers/kvm b/qemu/launchers/kvm index ff41c26..36d0273 100755 --- a/qemu/launchers/kvm +++ b/qemu/launchers/kvm @@ -1,6 +1,10 @@ #!/usr/bin/env sh set -x +# What processor architecture to use +arch=$QEMUSH_ARCH +[ -z "$arch" ] && arch=$(uname -m) + # How many CPU cores to use nproc=$QEMUSH_NPROC [ -z "$nproc" ] && nproc=$(($(nproc) / 2)) @@ -10,7 +14,7 @@ ram=$QEMUSH_RAM [ -z "$ram" ] && ram=$(($(free | grep '^Mem:\s' | awk '{ print $NF }') / 2))K # Set the arguments -set -- qemu-system-x86_64 \ +set -- "qemu-system-${arch}" \ -enable-kvm \ -M q35 \ -cpu host -smp "$nproc" \