Limit macOS Monterey to 2 CPU cores. Close #438

Post-install the cpu_cores=2 can be removed from the virtual machine configuration file.
This commit is contained in:
Martin Wimpress 2022-08-18 12:55:47 +01:00
parent 10c35369a1
commit 275f057cdd
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
1 changed files with 7 additions and 1 deletions

View File

@ -786,7 +786,13 @@ EOF
echo "disk_size=\"12G\"" >> "${CONF_FILE}"
echo "ram=\"2048M\"" >> "${CONF_FILE}"
;;
macos) echo "macos_release=\"${RELEASE}\"" >> "${CONF_FILE}";;
macos)
echo "macos_release=\"${RELEASE}\"" >> "${CONF_FILE}"
# https://github.com/quickemu-project/quickemu/issues/438
if [ "${RELEASE}" == "monterey" ]; then
echo "cpu_cores=2" >> "${CONF_FILE}"
fi
;;
esac
# Enable TPM for Windows 11