installer VDI size set to 12GB as recommended

...by Apple
This commit is contained in:
img2tab
2019-04-09 07:42:30 +00:00
committed by GitHub
parent 5ba53d2a92
commit e9739ff9bc
+6 -6
View File
@@ -2,9 +2,9 @@
# One-key semi-automatic installer of macOS on VirtualBox # One-key semi-automatic installer of macOS on VirtualBox
# (c) img2tab, licensed under GPL2.0 or higher # (c) img2tab, licensed under GPL2.0 or higher
# url: https://github.com/img2tab/macos-guest-virtualbox # url: https://github.com/img2tab/macos-guest-virtualbox
# version 0.58 # version 0.59
# Requirements: 33.5GB available storage on host # Requirements: 37.5GB available storage on host
# Dependencies: bash>=4.0, unzip, wget, dmg2img, # Dependencies: bash>=4.0, unzip, wget, dmg2img,
# VirtualBox with Extension Pack >=5.2 # VirtualBox with Extension Pack >=5.2
@@ -40,8 +40,8 @@ Some stages may fail due to errant keyboard presses; run the script with
For iCloud and iMessage connectivity, you will need to provide a valid For iCloud and iMessage connectivity, you will need to provide a valid
Apple serial number. macOS will work without it, but not Apple-connected apps. Apple serial number. macOS will work without it, but not Apple-connected apps.
The installation requires '${whiteonred}'33.5GB'${defaultcolor}' of available storage, The installation requires '${whiteonred}'37.5GB'${defaultcolor}' of available storage,
22GB for the virtual machine and 11.5GB for temporary installation files. 22GB for the virtual machine and 15.5GB for temporary installation files.
'${whiteonblack}'Press enter to review the script settings.'${defaultcolor} '${whiteonblack}'Press enter to review the script settings.'${defaultcolor}
read read
@@ -249,7 +249,7 @@ if [ -w "Install_${vmname}.vdi" ]; then
echo "Installation media virtual disk image ready." echo "Installation media virtual disk image ready."
else else
echo "Creating ${vmname} installation media virtual disk image." echo "Creating ${vmname} installation media virtual disk image."
VBoxManage createmedium --size=8000 \ VBoxManage createmedium --size=12000 \
--filename "${microsoft_path}Install_${vmname}.vdi" \ --filename "${microsoft_path}Install_${vmname}.vdi" \
--variant fixed 2>/dev/tty --variant fixed 2>/dev/tty
fi fi
@@ -535,7 +535,7 @@ VBoxManage storageattach "${vmname}" --storagectl SATA --port 2 --medium none
} }
function install_the_installer() { function install_the_installer() {
#Boot from "Install.vdi" that contains the 2GB BaseSystem and 6GB free space #Boot from "Install.vdi" that contains the 2GB BaseSystem and 10GB free space
echo "The VM will boot from the new base system on the installer virtual disk." echo "The VM will boot from the new base system on the installer virtual disk."
VBoxManage startvm "${vmname}" 2>/dev/null VBoxManage startvm "${vmname}" 2>/dev/null