Refactor DISPLAY_DEVICE for Linux guests

This commit is contained in:
Martin Wimpress 2021-10-04 17:50:19 +01:00
parent e6c7603864
commit bd3b24ee71
No known key found for this signature in database
GPG key ID: 61DF940515E06DA3

View file

@ -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: