From b721ba2320766b3457c80e1f448b1d2e973234fa Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 24 Jul 2026 18:47:45 +0200 Subject: [PATCH] fix: Check machine type before applying q35 flags (#1948) --- src/install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/install.sh b/src/install.sh index bf0c5c64..5bd54891 100644 --- a/src/install.sh +++ b/src/install.sh @@ -738,8 +738,10 @@ setMachine() { case "${id,,}" in "winxp"* | "win2003"* | "winvistax86"* | "win7x86"* | "win2008r2x86"* ) - # Prevent bluescreen if 64 bit PCI hole size is >2G. - ARGS="-global q35-pcihost.x-pci-hole64-fix=false" ;; + if [ -z "${MACHINE:-}" ] || [[ "${MACHINE:-}" == "q35" ]]; then + # Prevent bluescreen if 64 bit PCI hole size is >2G. + ARGS="-global q35-pcihost.x-pci-hole64-fix=false" + fi ;; esac return 0