From bd3b24ee71d4610642dfbff6a6851cac4a06333b Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Mon, 4 Oct 2021 17:50:19 +0100 Subject: [PATCH] Refactor DISPLAY_DEVICE for Linux guests --- quickemu | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/quickemu b/quickemu index b65bc2f..7eba3f0 100755 --- a/quickemu +++ b/quickemu @@ -404,7 +404,10 @@ function vm_boot() { # https://www.kraxel.org/blog/2019/09/display-devices-in-qemu/ if [ "${guest_os}" == "linux" ]; then - DISPLAY_DEVICE="virtio-vga" + case ${OUTPUT} in + spice) DISPLAY_DEVICE="qxl-vga";; + *) DISPLAY_DEVICE="virtio-vga";; + esac elif [ "${guest_os}" == "macos" ]; then # Tweak video device based on the guest macOS release. # Displays in System Preferences can be used to select a resolution if: