mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Do not use VirtIO Balloon on macOS
This commit is contained in:
parent
cd410b2b19
commit
ac13c5875a
1 changed files with 3 additions and 1 deletions
4
quickemu
4
quickemu
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue