Add initial support for macOS Ventura

pull/535/head
Martin Wimpress 2 years ago
parent 02e0a9e55a
commit 2071816ede
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
  1. 17
      quickemu
  2. 2
      quickget

@ -503,14 +503,27 @@ function vm_boot() {
macos)
#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 AVX2 support is required for >= macOS Ventura
case ${macos_release} in
ventura)
if check_cpu_flag sse4_1 && check_cpu_flag avx2; then
CPU="-cpu Haswell,kvm=on,vendor=GenuineIntel,+hypervisor,+invtsc,+kvm_pv_eoi,+kvm_pv_unhalt"
else
echo "ERROR! macOS ${macos_release} requires a CPU with SSE 4.1 and AVX2 support."
exit 1
fi
;;
*)
if check_cpu_flag sse4_1; then
# Used in past versions: +movbe,+smep,+xgetbv1,+xsavec,+avx2
# Warn on AMD: +fma4,+pcid
CPU="-cpu Penryn,kvm=on,vendor=GenuineIntel,+aes,+avx,+bmi1,+bmi2,+fma,+hypervisor,+invtsc,+kvm_pv_eoi,+kvm_pv_unhalt,+popcnt,+ssse3,+sse4.2,vmware-cpuid-freq=on,+xsave,+xsaveopt,check"
else
echo "ERROR! macOS requires a CPU with SSE 4.1 support."
echo "ERROR! macOS ${macos_release} requires a CPU with SSE 4.1 support."
exit 1
fi
;;
esac
OSK=$(echo "bheuneqjbexolgurfrjbeqfthneqrqcyrnfrqbagfgrny(p)NccyrPbzchgreVap" | tr 'A-Za-z' 'N-ZA-Mn-za-m')
# Disable S3 support in the VM to prevent macOS suspending during install
@ -529,7 +542,7 @@ function vm_boot() {
NET_DEVICE="vmxnet3"
USB_HOST_PASSTHROUGH_CONTROLLER="usb-ehci"
;;
big-sur|monterey)
big-sur|monterey|ventura)
BALLOON="-device virtio-balloon"
MAC_DISK_DEV="virtio-blk-pci"
NET_DEVICE="virtio-net"

@ -1164,6 +1164,7 @@ function get_macos() {
local CWD=""
local MACRECOVERY=""
local MLB=""
local OS_TYPE="default"
case ${RELEASE} in
high-sierra)
@ -1214,6 +1215,7 @@ function get_macos() {
${MACRECOVERY} \
--board-id "${BOARD_ID}" \
--mlb "${MLB}" \
--os-type "${OS_TYPE}" \
--basename RecoveryImage \
--outdir "${VM_PATH}" \
download

Loading…
Cancel
Save