mirror of
https://github.com/luchina-gabriel/OSX-PROXMOX.git
synced 2025-02-17 01:51:34 +01:00
Fix usage of custom VM_ID for all macOS versions
This commit is contained in:
parent
fa9e6481b4
commit
1b49f901fa
16
setup
16
setup
@ -517,7 +517,7 @@ do
|
||||
## Fix for QEMU 6.1 for PCI Passthrough
|
||||
if [ `qemu-system-x86_64 --version | grep "6.1" | 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/${NEXTID}.conf
|
||||
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
|
||||
|
||||
fi
|
||||
@ -557,7 +557,7 @@ do
|
||||
## Fix for QEMU 6.1 for PCI Passthrough
|
||||
if [ `qemu-system-x86_64 --version | grep "6.1" | 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/${NEXTID}.conf
|
||||
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
|
||||
|
||||
fi
|
||||
@ -708,7 +708,7 @@ do
|
||||
## Fix for QEMU 6.1 for PCI Passthrough
|
||||
if [ `qemu-system-x86_64 --version | grep "6.1" | 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/${NEXTID}.conf
|
||||
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
|
||||
|
||||
fi
|
||||
@ -748,7 +748,7 @@ do
|
||||
## Fix for QEMU 6.1 for PCI Passthrough
|
||||
if [ `qemu-system-x86_64 --version | grep "6.1" | 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/${NEXTID}.conf
|
||||
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
|
||||
|
||||
fi
|
||||
@ -899,7 +899,7 @@ do
|
||||
## Fix for QEMU 6.1 for PCI Passthrough
|
||||
if [ `qemu-system-x86_64 --version | grep "6.1" | 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/${NEXTID}.conf
|
||||
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
|
||||
|
||||
fi
|
||||
@ -939,7 +939,7 @@ do
|
||||
## Fix for QEMU 6.1 for PCI Passthrough
|
||||
if [ `qemu-system-x86_64 --version | grep "6.1" | 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/${NEXTID}.conf
|
||||
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
|
||||
|
||||
fi
|
||||
@ -1090,7 +1090,7 @@ do
|
||||
## Fix for QEMU 6.1 for PCI Passthrough
|
||||
if [ `qemu-system-x86_64 --version | grep "6.1" | 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/${NEXTID}.conf
|
||||
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
|
||||
|
||||
fi
|
||||
@ -1130,7 +1130,7 @@ do
|
||||
## Fix for QEMU 6.1 for PCI Passthrough
|
||||
if [ `qemu-system-x86_64 --version | grep "6.1" | 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/${NEXTID}.conf
|
||||
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
|
||||
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user