Do not use VirtIO Balloon on macOS

This commit is contained in:
Martin Wimpress 2021-09-28 15:27:02 +01:00
parent cd410b2b19
commit ac13c5875a
No known key found for this signature in database
GPG key ID: 61DF940515E06DA3

View file

@ -141,6 +141,7 @@ function vm_boot() {
VMNAME=$(basename "${VM}" .conf) VMNAME=$(basename "${VM}" .conf)
local VMDIR="" local VMDIR=""
VMDIR=$(dirname "${disk_img}") VMDIR=$(dirname "${disk_img}")
local BALLOON="-device virtio-balloon"
local CPU="" local CPU=""
local DISPLAY_DEVICE="" local DISPLAY_DEVICE=""
local GL="on" local GL="on"
@ -199,6 +200,7 @@ function vm_boot() {
disk="16G" disk="16G"
;; ;;
macos) macos)
BALLOON=""
#https://www.nicksherlock.com/2020/06/installing-macos-big-sur-on-proxmox/ #https://www.nicksherlock.com/2020/06/installing-macos-big-sur-on-proxmox/
if [ "${HOST_CPU}" == "AuthenticIntel" ]; then if [ "${HOST_CPU}" == "AuthenticIntel" ]; then
CPU="-cpu host,kvm=on,vendor=GenuineIntel,+hypervisor,+invtsc,+kvm_pv_eoi,+kvm_pv_unhalt" CPU="-cpu host,kvm=on,vendor=GenuineIntel,+hypervisor,+invtsc,+kvm_pv_eoi,+kvm_pv_unhalt"
@ -457,7 +459,7 @@ function vm_boot() {
args+=(-name ${VMNAME},process=${VMNAME} args+=(-name ${VMNAME},process=${VMNAME}
-enable-kvm -machine q35,vmport=off ${GUEST_TWEAKS} -enable-kvm -machine q35,vmport=off ${GUEST_TWEAKS}
${CPU} ${SMP} ${CPU} ${SMP}
-m ${RAM_VM} -device virtio-balloon -m ${RAM_VM} ${BALLOON}
-smbios type=2 -smbios type=2
${VIDEO} -display ${OUTPUT} ${VIDEO} -display ${OUTPUT}
-device usb-ehci,id=input -device usb-ehci,id=input