mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Actually honour requested disk_size
This commit is contained in:
parent
419376757d
commit
5ad176155f
1 changed files with 13 additions and 4 deletions
11
quickemu
11
quickemu
|
@ -323,7 +323,9 @@ function vm_boot() {
|
||||||
if [ "${guest_os}" == "freebsd" ]; then
|
if [ "${guest_os}" == "freebsd" ]; then
|
||||||
MOUSE="usb-mouse"
|
MOUSE="usb-mouse"
|
||||||
fi
|
fi
|
||||||
|
if [ -z "${disk_size}" ]; then
|
||||||
disk_size="16G"
|
disk_size="16G"
|
||||||
|
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/
|
||||||
|
@ -373,7 +375,9 @@ function vm_boot() {
|
||||||
esac
|
esac
|
||||||
OSK=$(echo "bheuneqjbexolgurfrjbeqfthneqrqcyrnfrqbagfgrny(p)NccyrPbzchgreVap" | tr 'A-Za-z' 'N-ZA-Mn-za-m')
|
OSK=$(echo "bheuneqjbexolgurfrjbeqfthneqrqcyrnfrqbagfgrny(p)NccyrPbzchgreVap" | tr 'A-Za-z' 'N-ZA-Mn-za-m')
|
||||||
GUEST_TWEAKS="-device isa-applesmc,osk=${OSK} -no-hpet -global kvm-pit.lost_tick_policy=discard"
|
GUEST_TWEAKS="-device isa-applesmc,osk=${OSK} -no-hpet -global kvm-pit.lost_tick_policy=discard"
|
||||||
|
if [ -z "${disk_size}" ]; then
|
||||||
disk_size="64G"
|
disk_size="64G"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
windows)
|
windows)
|
||||||
CPU="-cpu host,kvm=on,+hypervisor,+invtsc,l3-cache=on,migratable=no,hv_frequencies,kvm_pv_unhalt,hv_reenlightenment,hv_relaxed,hv_spinlocks=8191,hv_stimer,hv_synic,hv_time,hv_vapic,hv_vendor_id=1234567890ab,hv_vpindex"
|
CPU="-cpu host,kvm=on,+hypervisor,+invtsc,l3-cache=on,migratable=no,hv_frequencies,kvm_pv_unhalt,hv_reenlightenment,hv_relaxed,hv_spinlocks=8191,hv_stimer,hv_synic,hv_time,hv_vapic,hv_vendor_id=1234567890ab,hv_vpindex"
|
||||||
|
@ -381,11 +385,16 @@ function vm_boot() {
|
||||||
CPU="${CPU},topoext"
|
CPU="${CPU},topoext"
|
||||||
fi
|
fi
|
||||||
GUEST_TWEAKS="-no-hpet -global kvm-pit.lost_tick_policy=discard"
|
GUEST_TWEAKS="-no-hpet -global kvm-pit.lost_tick_policy=discard"
|
||||||
|
if [ -z "${disk_size}" ]; then
|
||||||
disk_size="64G"
|
disk_size="64G"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
CPU="-cpu host,kvm=on"
|
CPU="-cpu host,kvm=on"
|
||||||
NET_DEVICE="rtl8139"
|
NET_DEVICE="rtl8139"
|
||||||
|
if [ -z "${disk_size}" ]; then
|
||||||
|
disk_size="32G"
|
||||||
|
fi
|
||||||
echo "WARNING! Unrecognised guest OS: ${guest_os}"
|
echo "WARNING! Unrecognised guest OS: ${guest_os}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -821,7 +830,7 @@ function usage() {
|
||||||
boot="efi"
|
boot="efi"
|
||||||
cpu_cores=""
|
cpu_cores=""
|
||||||
disk_img=""
|
disk_img=""
|
||||||
disk_size="32G"
|
disk_size=""
|
||||||
fixed_iso=""
|
fixed_iso=""
|
||||||
floppy=""
|
floppy=""
|
||||||
guest_os="linux"
|
guest_os="linux"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue