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
1 changed files with 3 additions and 1 deletions

View File

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