|
|
@ -505,6 +505,14 @@ function vm_boot() { |
|
|
|
CPU="${CPU},topoext" |
|
|
|
CPU="${CPU},topoext" |
|
|
|
fi |
|
|
|
fi |
|
|
|
GUEST_TWEAKS="-no-hpet -global kvm-pit.lost_tick_policy=discard" |
|
|
|
GUEST_TWEAKS="-no-hpet -global kvm-pit.lost_tick_policy=discard" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Disable S3 support in the VM for Arch Linux to ensure Windows can boot with SecureBoot enabled |
|
|
|
|
|
|
|
# - https://wiki.archlinux.org/title/QEMU#VM_does_not_boot_when_using_a_Secure_Boot_enabled_OVMF |
|
|
|
|
|
|
|
# - https://github.com/wimpysworld/quickemu/issues/220 |
|
|
|
|
|
|
|
if [[ "${EFI_CODE}" == *"edk2-ovmf/OVMF_CODE.secboot.fd"* ]]; then |
|
|
|
|
|
|
|
GUEST_TWEAKS="${GUEST_TWEAKS} -global ICH9-LPC.disable_s3=1" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [ -z "${disk_size}" ]; then |
|
|
|
if [ -z "${disk_size}" ]; then |
|
|
|
disk_size="64G" |
|
|
|
disk_size="64G" |
|
|
|
fi |
|
|
|
fi |
|
|
|