Default to sane disk image size based on OS

This commit is contained in:
Martin Wimpress 2021-09-25 23:26:50 +01:00
parent 01ca84566a
commit 0237499331
No known key found for this signature in database
GPG key ID: 61DF940515E06DA3

View file

@ -192,15 +192,18 @@ function vm_boot() {
case ${guest_os} in case ${guest_os} in
linux) linux)
CPU="-cpu host,kvm=on" CPU="-cpu host,kvm=on"
disk="16G"
;; ;;
macos) macos)
CPU="-cpu Penryn,vendor=GenuineIntel,kvm=on,+aes,+avx,+avx2,+bmi1,+bmi2,+fma,+invtsc,+movbe,+pcid,+smep,+sse3,+sse4.2,+xgetbv1,+xsave,+xsavec,+xsaveopt" CPU="-cpu Penryn,vendor=GenuineIntel,kvm=on,+aes,+avx,+avx2,+bmi1,+bmi2,+fma,+invtsc,+movbe,+pcid,+smep,+sse3,+sse4.2,+xgetbv1,+xsave,+xsavec,+xsaveopt"
OSK=$(echo "bheuneqjbexolgurfrjbeqfthneqrqcyrnfrqbagfgrny(p)NccyrPbzchgreVap" | rot13) OSK=$(echo "bheuneqjbexolgurfrjbeqfthneqrqcyrnfrqbagfgrny(p)NccyrPbzchgreVap" | rot13)
GUEST_TWEAKS="-device isa-applesmc,osk=${OSK}" GUEST_TWEAKS="-device isa-applesmc,osk=${OSK}"
disk="64G"
;; ;;
windows) windows)
CPU="-cpu host,kvm=on,hv_time" CPU="-cpu host,kvm=on,hv_time"
GUEST_TWEAKS="-no-hpet" GUEST_TWEAKS="-no-hpet"
disk="64G"
;; ;;
*) *)
CPU="-cpu host,kvm=on" CPU="-cpu host,kvm=on"