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
linux)
CPU="-cpu host,kvm=on"
disk="16G"
;;
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"
OSK=$(echo "bheuneqjbexolgurfrjbeqfthneqrqcyrnfrqbagfgrny(p)NccyrPbzchgreVap" | rot13)
GUEST_TWEAKS="-device isa-applesmc,osk=${OSK}"
disk="64G"
;;
windows)
CPU="-cpu host,kvm=on,hv_time"
GUEST_TWEAKS="-no-hpet"
disk="64G"
;;
*)
CPU="-cpu host,kvm=on"