Add EFI Install Packages, Update Version Pattern

This commit is contained in:
Gabriel 2022-05-27 10:36:04 -03:00
parent 45e2f7e5b0
commit 3747ea44f4
2 changed files with 12 additions and 12 deletions

Binary file not shown.

24
setup
View File

@ -48,7 +48,7 @@ SCRIPT_DIR=/root/OSX-PROXMOX
LOGDIR=${SCRIPT_DIR}/logs LOGDIR=${SCRIPT_DIR}/logs
TMPDIR=${SCRIPT_DIR}/tmp TMPDIR=${SCRIPT_DIR}/tmp
ISODIR=/var/lib/vz/template/iso/ ISODIR=/var/lib/vz/template/iso/
HACKPXVERSION="3.2.0" HACKPXVERSION="20220527T1032"
OCVERSION="0.8.0" OCVERSION="0.8.0"
DEFAULT_VM_PREFIX="HACK-" DEFAULT_VM_PREFIX="HACK-"
DEFAULT_RAM_SIZE=4096 DEFAULT_RAM_SIZE=4096
@ -154,7 +154,7 @@ do
echo "#######################################################" echo "#######################################################"
echo "################ O S X - P R O X M O X ################" echo "################ O S X - P R O X M O X ################"
echo "############### https://osx-proxmox.com ###############" echo "############### https://osx-proxmox.com ###############"
echo "################### version: ${HACKPXVERSION} ####################" echo "############### version: ${HACKPXVERSION} ################"
echo "#######################################################" echo "#######################################################"
echo " " echo " "
echo " Enter the macOS version to be installed:" echo " Enter the macOS version to be installed:"
@ -319,7 +319,7 @@ do
--vmgenid 1 \ --vmgenid 1 \
--scsihw virtio-scsi-pci \ --scsihw virtio-scsi-pci \
--sata0 ${STORAGECRTVM}:${SIZEDISK},cache=none,ssd=1,discard=on \ --sata0 ${STORAGECRTVM}:${SIZEDISK},cache=none,ssd=1,discard=on \
--ide0 local:iso/opencore-osx-proxmox-vm.iso,cache=unsafe,size=50M \ --ide0 local:iso/opencore-osx-proxmox-vm.iso,cache=unsafe,size=80M \
--ide2 local:iso/recovery-highsierra.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE} --ide2 local:iso/recovery-highsierra.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE}
## Fix for QEMU 6.1 for PCI Passthrough ## Fix for QEMU 6.1 for PCI Passthrough
@ -359,7 +359,7 @@ do
--vmgenid 1 \ --vmgenid 1 \
--scsihw virtio-scsi-pci \ --scsihw virtio-scsi-pci \
--sata0 ${STORAGECRTVM}:${SIZEDISK},cache=none,ssd=1,discard=on \ --sata0 ${STORAGECRTVM}:${SIZEDISK},cache=none,ssd=1,discard=on \
--ide0 local:iso/opencore-osx-proxmox-vm.iso,cache=unsafe,size=50M \ --ide0 local:iso/opencore-osx-proxmox-vm.iso,cache=unsafe,size=80M \
--ide2 local:iso/recovery-highsierra.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE} --ide2 local:iso/recovery-highsierra.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE}
## Fix for QEMU 6.1 for PCI Passthrough ## Fix for QEMU 6.1 for PCI Passthrough
@ -510,7 +510,7 @@ do
--vmgenid 1 \ --vmgenid 1 \
--scsihw virtio-scsi-pci \ --scsihw virtio-scsi-pci \
--sata0 ${STORAGECRTVM}:${SIZEDISK},cache=none,ssd=1,discard=on \ --sata0 ${STORAGECRTVM}:${SIZEDISK},cache=none,ssd=1,discard=on \
--ide0 local:iso/opencore-osx-proxmox-vm.iso,cache=unsafe,size=50M \ --ide0 local:iso/opencore-osx-proxmox-vm.iso,cache=unsafe,size=80M \
--ide2 local:iso/recovery-mojave.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE} --ide2 local:iso/recovery-mojave.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE}
## Fix for QEMU 6.1 for PCI Passthrough ## Fix for QEMU 6.1 for PCI Passthrough
@ -550,7 +550,7 @@ do
--vmgenid 1 \ --vmgenid 1 \
--scsihw virtio-scsi-pci \ --scsihw virtio-scsi-pci \
--sata0 ${STORAGECRTVM}:${SIZEDISK},cache=none,ssd=1,discard=on \ --sata0 ${STORAGECRTVM}:${SIZEDISK},cache=none,ssd=1,discard=on \
--ide0 local:iso/opencore-osx-proxmox-vm.iso,cache=unsafe,size=50M \ --ide0 local:iso/opencore-osx-proxmox-vm.iso,cache=unsafe,size=80M \
--ide2 local:iso/recovery-mojave.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE} --ide2 local:iso/recovery-mojave.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE}
## Fix for QEMU 6.1 for PCI Passthrough ## Fix for QEMU 6.1 for PCI Passthrough
@ -701,7 +701,7 @@ do
--vmgenid 1 \ --vmgenid 1 \
--scsihw virtio-scsi-pci \ --scsihw virtio-scsi-pci \
--virtio0 ${STORAGECRTVM}:${SIZEDISK},cache=none,discard=on \ --virtio0 ${STORAGECRTVM}:${SIZEDISK},cache=none,discard=on \
--ide0 local:iso/opencore-osx-proxmox-vm.iso,cache=unsafe,size=50M \ --ide0 local:iso/opencore-osx-proxmox-vm.iso,cache=unsafe,size=80M \
--ide2 local:iso/recovery-catalina.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE} --ide2 local:iso/recovery-catalina.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE}
## Fix for QEMU 6.1 for PCI Passthrough ## Fix for QEMU 6.1 for PCI Passthrough
@ -741,7 +741,7 @@ do
--vmgenid 1 \ --vmgenid 1 \
--scsihw virtio-scsi-pci \ --scsihw virtio-scsi-pci \
--virtio0 ${STORAGECRTVM}:${SIZEDISK},cache=none,discard=on \ --virtio0 ${STORAGECRTVM}:${SIZEDISK},cache=none,discard=on \
--ide0 local:iso/opencore-osx-proxmox-vm.iso,cache=unsafe,size=50M \ --ide0 local:iso/opencore-osx-proxmox-vm.iso,cache=unsafe,size=80M \
--ide2 local:iso/recovery-catalina.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE} --ide2 local:iso/recovery-catalina.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE}
## Fix for QEMU 6.1 for PCI Passthrough ## Fix for QEMU 6.1 for PCI Passthrough
@ -892,7 +892,7 @@ do
--vmgenid 1 \ --vmgenid 1 \
--scsihw virtio-scsi-pci \ --scsihw virtio-scsi-pci \
--virtio0 ${STORAGECRTVM}:${SIZEDISK},cache=none,discard=on \ --virtio0 ${STORAGECRTVM}:${SIZEDISK},cache=none,discard=on \
--ide0 local:iso/opencore-osx-proxmox-vm.iso,cache=unsafe,size=50M \ --ide0 local:iso/opencore-osx-proxmox-vm.iso,cache=unsafe,size=80M \
--ide2 local:iso/recovery-bigsur.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE} --ide2 local:iso/recovery-bigsur.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE}
## Fix for QEMU 6.1 for PCI Passthrough ## Fix for QEMU 6.1 for PCI Passthrough
@ -932,7 +932,7 @@ do
--vmgenid 1 \ --vmgenid 1 \
--scsihw virtio-scsi-pci \ --scsihw virtio-scsi-pci \
--virtio0 ${STORAGECRTVM}:${SIZEDISK},cache=none,discard=on \ --virtio0 ${STORAGECRTVM}:${SIZEDISK},cache=none,discard=on \
--ide0 local:iso/opencore-osx-proxmox-vm.iso,cache=unsafe,size=50M \ --ide0 local:iso/opencore-osx-proxmox-vm.iso,cache=unsafe,size=80M \
--ide2 local:iso/recovery-bigsur.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE} --ide2 local:iso/recovery-bigsur.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE}
## Fix for QEMU 6.1 for PCI Passthrough ## Fix for QEMU 6.1 for PCI Passthrough
@ -1083,7 +1083,7 @@ do
--vmgenid 1 \ --vmgenid 1 \
--scsihw virtio-scsi-pci \ --scsihw virtio-scsi-pci \
--virtio0 ${STORAGECRTVM}:${SIZEDISK},cache=none,discard=on \ --virtio0 ${STORAGECRTVM}:${SIZEDISK},cache=none,discard=on \
--ide0 local:iso/opencore-osx-proxmox-vm.iso,cache=unsafe,size=50M \ --ide0 local:iso/opencore-osx-proxmox-vm.iso,cache=unsafe,size=80M \
--ide2 local:iso/recovery-monterey.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE} --ide2 local:iso/recovery-monterey.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE}
## Fix for QEMU 6.1 for PCI Passthrough ## Fix for QEMU 6.1 for PCI Passthrough
@ -1123,7 +1123,7 @@ do
--vmgenid 1 \ --vmgenid 1 \
--scsihw virtio-scsi-pci \ --scsihw virtio-scsi-pci \
--virtio0 ${STORAGECRTVM}:${SIZEDISK},cache=none,discard=on \ --virtio0 ${STORAGECRTVM}:${SIZEDISK},cache=none,discard=on \
--ide0 local:iso/opencore-osx-proxmox-vm.iso,cache=unsafe,size=50M \ --ide0 local:iso/opencore-osx-proxmox-vm.iso,cache=unsafe,size=80M \
--ide2 local:iso/recovery-monterey.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE} --ide2 local:iso/recovery-monterey.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE}
## Fix for QEMU 6.1 for PCI Passthrough ## Fix for QEMU 6.1 for PCI Passthrough