summaryrefslogtreecommitdiff
path: root/bin/debvm-run
diff options
context:
space:
mode:
authorJochen Sprickerhof <git@jochen.sprickerhof.de>2023-01-17 21:11:53 +0100
committerJochen Sprickerhof <git@jochen.sprickerhof.de>2023-01-18 08:57:12 +0100
commitc2167985357b5d89c51aedb9df8461a83dc83333 (patch)
tree11d6157fc6dc9b4bcdc0528a7340fc45ce5be188 /bin/debvm-run
parent8961c87b6b1289d50e7e53cbca497f5ee9ed7b3c (diff)
downloaddebvm-c2167985357b5d89c51aedb9df8461a83dc83333.tar.gz
Add better Qemu options
Diffstat (limited to 'bin/debvm-run')
-rwxr-xr-xbin/debvm-run14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/debvm-run b/bin/debvm-run
index 3c3e528..22e3571 100755
--- a/bin/debvm-run
+++ b/bin/debvm-run
@@ -233,6 +233,9 @@ if test "$ARCHITECTURE" = "$VMARCH"; then
else
QEMU="qemu-system-$VMARCH"
case "$VMARCH" in
+ amd64)
+ QEMU=qemu-system-x86_64
+ ;;
arm64)
QEMU=qemu-system-aarch64
set -- -machine virt -cpu max "$@"
@@ -266,6 +269,11 @@ else
;;
esac
fi
+case "$VMARCH" in
+ amd64)
+ set -- -machine q35 "$@"
+ ;;
+esac
if test -z "$MAX_SMP" || test "$MAX_SMP" -gt 1; then
NPROC=$(nproc)
test -n "$MAX_SMP" && test "$NPROC" -gt "$MAX_SMP" && NPROC=$MAX_SMP
@@ -282,6 +290,12 @@ if test -z "$GRAPHICAL"; then
if test -t 0 && test -t 1 && test -n "$TERM"; then
KERNEL_CMDLINE="$KERNEL_CMDLINE TERM=$TERM"
fi
+else
+ case "$VMARCH" in
+ amd64|i386)
+ set -- -vga virtio "$@"
+ ;;
+ esac
fi
if test -n "$SSHPORT"; then