|
|
@ -464,14 +464,19 @@ function vm_boot() { |
|
|
|
|
|
|
|
|
|
|
|
# Make any OS specific adjustments |
|
|
|
# Make any OS specific adjustments |
|
|
|
case ${guest_os} in |
|
|
|
case ${guest_os} in |
|
|
|
freebsd|linux|openbsd) |
|
|
|
*bsd|haiku|linux) |
|
|
|
CPU="-cpu host,kvm=on" |
|
|
|
CPU="-cpu host,kvm=on" |
|
|
|
if [ "${HOST_CPU_VENDOR}" == "AuthenticAMD" ]; then |
|
|
|
if [ "${HOST_CPU_VENDOR}" == "AuthenticAMD" ]; then |
|
|
|
CPU="${CPU},topoext" |
|
|
|
CPU="${CPU},topoext" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [ "${guest_os}" == "freebsd" ]; then |
|
|
|
if [ "${guest_os}" == "freebsd" ]; then |
|
|
|
MOUSE="usb-mouse" |
|
|
|
MOUSE="usb-mouse" |
|
|
|
|
|
|
|
elif [ "${guest_os}" == "haiku" ]; then |
|
|
|
|
|
|
|
MACHINE_TYPE="pc" |
|
|
|
|
|
|
|
NET_DEVICE="rtl8139" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [ -z "${disk_size}" ]; then |
|
|
|
if [ -z "${disk_size}" ]; then |
|
|
|
disk_size="16G" |
|
|
|
disk_size="16G" |
|
|
|
fi |
|
|
|
fi |
|
|
@ -483,22 +488,10 @@ function vm_boot() { |
|
|
|
fi |
|
|
|
fi |
|
|
|
MACHINE_TYPE="pc" |
|
|
|
MACHINE_TYPE="pc" |
|
|
|
NET_DEVICE="rtl8139" |
|
|
|
NET_DEVICE="rtl8139" |
|
|
|
GUEST_TWEAKS="-boot d" |
|
|
|
|
|
|
|
if [ -z "${disk_size}" ]; then |
|
|
|
if [ -z "${disk_size}" ]; then |
|
|
|
disk_size="256M" |
|
|
|
disk_size="256M" |
|
|
|
fi |
|
|
|
fi |
|
|
|
;; |
|
|
|
;; |
|
|
|
haiku) |
|
|
|
|
|
|
|
CPU="-cpu host,kvm=on" |
|
|
|
|
|
|
|
MACHINE_TYPE="pc" |
|
|
|
|
|
|
|
NET_DEVICE="rtl8139" |
|
|
|
|
|
|
|
if [ "${HOST_CPU_VENDOR}" == "AuthenticAMD" ]; then |
|
|
|
|
|
|
|
CPU="${CPU},topoext" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
if [ -z "${disk_size}" ]; then |
|
|
|
|
|
|
|
disk_size="32G" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
macos) |
|
|
|
macos) |
|
|
|
#https://www.nicksherlock.com/2020/06/installing-macos-big-sur-on-proxmox/ |
|
|
|
#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 SSE4.1 support is required for >= macOS Sierra |
|
|
|