mirror of
https://github.com/quickemu-project/quickemu.git
synced 2024-09-20 00:02:03 +02:00
Allow using a different chipset on quickemu
Haiku is incompatible with the q35 machine type, as it emulates a ICH9 host chipset. Instad, the "pc" machine type needs to be used (emulates I44FX). https://wiki.qemu.org/Features/Q35
This commit is contained in:
parent
9f27cbffa2
commit
98266009f0
15
quickemu
15
quickemu
|
@ -228,6 +228,7 @@ function vm_boot() {
|
||||||
local KERNEL_NODE=""
|
local KERNEL_NODE=""
|
||||||
local KERNEL_VER="?"
|
local KERNEL_VER="?"
|
||||||
local LSB_DESCRIPTION="Unknown OS"
|
local LSB_DESCRIPTION="Unknown OS"
|
||||||
|
local MACHINE_TYPE="q35"
|
||||||
local MAC_BOOTLOADER=""
|
local MAC_BOOTLOADER=""
|
||||||
local MAC_MISSING=""
|
local MAC_MISSING=""
|
||||||
local MAC_DISK_DEV="ide-hd,bus=ahci.2"
|
local MAC_DISK_DEV="ide-hd,bus=ahci.2"
|
||||||
|
@ -463,6 +464,18 @@ function vm_boot() {
|
||||||
disk_size="16G"
|
disk_size="16G"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
haiku)
|
||||||
|
CPU="-cpu host,kvm=on"
|
||||||
|
MACHINE_TYPE="pc"
|
||||||
|
NET_DEVICE="rtl8139"
|
||||||
|
if [ "${HOST_CPU_VENDOR}" == "AuthenticAMD" ]; then
|
||||||
|
CPU="${CPU},topoext"
|
||||||
|
fi
|
||||||
|
if [ -z "${disk_size}" ]; then
|
||||||
|
disk_size="32G"
|
||||||
|
fi
|
||||||
|
echo "WARNING! Unrecognised guest OS: ${guest_os}"
|
||||||
|
;;
|
||||||
macos)
|
macos)
|
||||||
#https://www.nicksherlock.com/2020/06/installing-macos-big-sur-on-proxmox/
|
#https://www.nicksherlock.com/2020/06/installing-macos-big-sur-on-proxmox/
|
||||||
# A CPU with SSE4.1 support is required for >= macOS Sierra
|
# A CPU with SSE4.1 support is required for >= macOS Sierra
|
||||||
|
@ -833,7 +846,7 @@ function vm_boot() {
|
||||||
|
|
||||||
# shellcheck disable=SC2054,SC2206,SC2140
|
# shellcheck disable=SC2054,SC2206,SC2140
|
||||||
args+=(-name ${VMNAME},process=${VMNAME} -pidfile "${VMDIR}/${VMNAME}.pid"
|
args+=(-name ${VMNAME},process=${VMNAME} -pidfile "${VMDIR}/${VMNAME}.pid"
|
||||||
-enable-kvm -machine q35,smm=${SMM},vmport=off ${GUEST_TWEAKS}
|
-enable-kvm -machine ${MACHINE_TYPE},smm=${SMM},vmport=off ${GUEST_TWEAKS}
|
||||||
${CPU} ${SMP}
|
${CPU} ${SMP}
|
||||||
-m ${RAM_VM} ${BALLOON}
|
-m ${RAM_VM} ${BALLOON}
|
||||||
-smbios type=2,manufacturer="Quickemu Project",product="Quickemu",version="${VERSION}",serial="0xDEADBEEF",location="quickemu.com",asset="${VMNAME}"
|
-smbios type=2,manufacturer="Quickemu Project",product="Quickemu",version="${VERSION}",serial="0xDEADBEEF",location="quickemu.com",asset="${VMNAME}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user