mirror of
https://github.com/luchina-gabriel/OSX-PROXMOX.git
synced 2024-11-22 11:55:18 +01:00
Fix for compatibility PVE version 7.4
This commit is contained in:
parent
73470867d8
commit
2384b38e5d
24
setup
24
setup
@ -334,7 +334,7 @@ do
|
||||
--ide2 local:iso/recovery-highsierra.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE}
|
||||
|
||||
## Fix for QEMU 6.1 for PCI Passthrough
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" | wc -l` -eq 1 ]
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" -e "7.2" | wc -l` -eq 1 ]
|
||||
then
|
||||
sed -i 's/+bmi2,+xsave,+xsaveopt,check/+bmi2,+xsave,+xsaveopt,check -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off/g' /etc/pve/qemu-server/${VM_ID}.conf
|
||||
fi
|
||||
@ -374,7 +374,7 @@ do
|
||||
--ide2 local:iso/recovery-highsierra.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE}
|
||||
|
||||
## Fix for QEMU 6.1 for PCI Passthrough
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" | wc -l` -eq 1 ]
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" -e "7.2" | wc -l` -eq 1 ]
|
||||
then
|
||||
sed -i 's/+kvm_pv_eoi,+hypervisor,+invtsc/+kvm_pv_eoi,+hypervisor,+invtsc -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off/g' /etc/pve/qemu-server/${VM_ID}.conf
|
||||
fi
|
||||
@ -524,7 +524,7 @@ do
|
||||
--ide2 local:iso/recovery-mojave.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE}
|
||||
|
||||
## Fix for QEMU 6.1 for PCI Passthrough
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" | wc -l` -eq 1 ]
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" -e "7.2" | wc -l` -eq 1 ]
|
||||
then
|
||||
sed -i 's/+bmi2,+xsave,+xsaveopt,check/+bmi2,+xsave,+xsaveopt,check -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off/g' /etc/pve/qemu-server/${VM_ID}.conf
|
||||
fi
|
||||
@ -564,7 +564,7 @@ do
|
||||
--ide2 local:iso/recovery-mojave.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE}
|
||||
|
||||
## Fix for QEMU 6.1 for PCI Passthrough
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" | wc -l` -eq 1 ]
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" -e "7.2" | wc -l` -eq 1 ]
|
||||
then
|
||||
sed -i 's/+kvm_pv_eoi,+hypervisor,+invtsc/+kvm_pv_eoi,+hypervisor,+invtsc -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off/g' /etc/pve/qemu-server/${VM_ID}.conf
|
||||
fi
|
||||
@ -714,7 +714,7 @@ do
|
||||
--ide2 local:iso/recovery-catalina.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE}
|
||||
|
||||
## Fix for QEMU 6.1 for PCI Passthrough
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" | wc -l` -eq 1 ]
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" -e "7.2" | wc -l` -eq 1 ]
|
||||
then
|
||||
sed -i 's/+bmi2,+xsave,+xsaveopt,check/+bmi2,+xsave,+xsaveopt,check -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off/g' /etc/pve/qemu-server/${VM_ID}.conf
|
||||
fi
|
||||
@ -754,7 +754,7 @@ do
|
||||
--ide2 local:iso/recovery-catalina.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE}
|
||||
|
||||
## Fix for QEMU 6.1 for PCI Passthrough
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" | wc -l` -eq 1 ]
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" -e "7.2" | wc -l` -eq 1 ]
|
||||
then
|
||||
sed -i 's/+kvm_pv_eoi,+hypervisor,+invtsc/+kvm_pv_eoi,+hypervisor,+invtsc -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off/g' /etc/pve/qemu-server/${VM_ID}.conf
|
||||
fi
|
||||
@ -904,7 +904,7 @@ do
|
||||
--ide2 local:iso/recovery-bigsur.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE}
|
||||
|
||||
## Fix for QEMU 6.1 for PCI Passthrough
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" | wc -l` -eq 1 ]
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" -e "7.2" | wc -l` -eq 1 ]
|
||||
then
|
||||
sed -i 's/+bmi2,+xsave,+xsaveopt,check/+bmi2,+xsave,+xsaveopt,check -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off/g' /etc/pve/qemu-server/${VM_ID}.conf
|
||||
fi
|
||||
@ -944,7 +944,7 @@ do
|
||||
--ide2 local:iso/recovery-bigsur.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE}
|
||||
|
||||
## Fix for QEMU 6.1 for PCI Passthrough
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" | wc -l` -eq 1 ]
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" -e "7.2" | wc -l` -eq 1 ]
|
||||
then
|
||||
sed -i 's/+kvm_pv_eoi,+hypervisor,+invtsc/+kvm_pv_eoi,+hypervisor,+invtsc -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off/g' /etc/pve/qemu-server/${VM_ID}.conf
|
||||
fi
|
||||
@ -1094,7 +1094,7 @@ do
|
||||
--ide2 local:iso/recovery-monterey.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE}
|
||||
|
||||
## Fix for QEMU 6.1 for PCI Passthrough
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" | wc -l` -eq 1 ]
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" -e "7.2" | wc -l` -eq 1 ]
|
||||
then
|
||||
sed -i 's/+bmi2,+xsave,+xsaveopt,check/+bmi2,+xsave,+xsaveopt,check -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off/g' /etc/pve/qemu-server/${VM_ID}.conf
|
||||
fi
|
||||
@ -1134,7 +1134,7 @@ do
|
||||
--ide2 local:iso/recovery-monterey.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE}
|
||||
|
||||
## Fix for QEMU 6.1 for PCI Passthrough
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" | wc -l` -eq 1 ]
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" -e "7.2" | wc -l` -eq 1 ]
|
||||
then
|
||||
sed -i 's/+kvm_pv_eoi,+hypervisor,+invtsc/+kvm_pv_eoi,+hypervisor,+invtsc -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off/g' /etc/pve/qemu-server/${VM_ID}.conf
|
||||
fi
|
||||
@ -1284,7 +1284,7 @@ do
|
||||
--ide2 local:iso/recovery-ventura.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE}
|
||||
|
||||
## Fix for QEMU 6.1 for PCI Passthrough
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" | wc -l` -eq 1 ]
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" -e "7.2" | wc -l` -eq 1 ]
|
||||
then
|
||||
sed -i 's/+invtsc,-pcid,-hle,-rtm,-avx512f,-avx512dq,-avx512cd,-avx512bw,-avx512vl,-avx512vnni,kvm=on,vmware-cpuid-freq=on/+invtsc,-pcid,-hle,-rtm,-avx512f,-avx512dq,-avx512cd,-avx512bw,-avx512vl,-avx512vnni,kvm=on,vmware-cpuid-freq=on -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off/g' /etc/pve/qemu-server/${VM_ID}.conf
|
||||
fi
|
||||
@ -1324,7 +1324,7 @@ do
|
||||
--ide2 local:iso/recovery-ventura.iso,cache=unsafe,size=800M > ${LOGFILE} 2>> ${LOGFILE}
|
||||
|
||||
## Fix for QEMU 6.1 for PCI Passthrough
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" | wc -l` -eq 1 ]
|
||||
if [ `qemu-system-x86_64 --version | grep -e "6.1" -e "6.2" -e "7.1" -e "7.2" | wc -l` -eq 1 ]
|
||||
then
|
||||
sed -i 's/+kvm_pv_eoi,+hypervisor,+invtsc/+kvm_pv_eoi,+hypervisor,+invtsc -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off/g' /etc/pve/qemu-server/${VM_ID}.conf
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user