From bc57277f22309c0d57fdb98f8f088419607f94d4 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sat, 19 Oct 2024 09:11:23 +0200 Subject: [PATCH] Update define.sh --- src/define.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/define.sh b/src/define.sh index e496be5..228d965 100644 --- a/src/define.sh +++ b/src/define.sh @@ -2110,33 +2110,33 @@ setMachine() { "win9"* | "win2k"* ) MACHINE="pc-i440fx-2.4" ;; "winxp"* | "win2003"* | "winvistax86"* | "win7x86"* ) - MACHINE="pc-q35-2.10" ;; - esac - - case "${id,,}" in - "win9"* | "win2k"* | "winxp"* | "win2003"* ) - BOOT_MODE="windows_legacy" ;; - "winvista"* | "win7"* | "win2008"* ) - BOOT_MODE="windows_legacy" ;; + # Some 32-bit Windows crash if 64 bit PCI hole size is >2G. + ARGS="-global q35-pcihost.x-pci-hole64-fix=false" esac case "${id,,}" in "win9"* ) DISK_TYPE="auto" + BOOT_MODE="windows_legacy" ETFS="[BOOT]/Boot-1.44M.img" ;; "win2k"* ) DISK_TYPE="auto" + BOOT_MODE="windows_legacy" ETFS="[BOOT]/Boot-NoEmul.img" ;; "winxp"* ) DISK_TYPE="blk" + BOOT_MODE="windows_legacy" if ! prepareXP "$iso" "$dir" "$desc"; then error "Failed to prepare $desc ISO!" && return 1 fi ;; "win2003"* ) DISK_TYPE="blk" + BOOT_MODE="windows_legacy" if ! prepare2k3 "$iso" "$dir" "$desc"; then error "Failed to prepare $desc ISO!" && return 1 fi ;; + "winvista"* | "win7"* | "win2008"* ) + BOOT_MODE="windows_legacy" ;; esac return 0