Fix post setup for the custom VM ID
This commit is contained in:
parent
dd48b05eb4
commit
fa9e6481b4
4
setup
4
setup
|
@ -326,7 +326,7 @@ do
|
||||||
## Fix for QEMU 6.1 for PCI Passthrough
|
## Fix for QEMU 6.1 for PCI Passthrough
|
||||||
if [ `qemu-system-x86_64 --version | grep "6.1" | wc -l` -eq 1 ]
|
if [ `qemu-system-x86_64 --version | grep "6.1" | wc -l` -eq 1 ]
|
||||||
then
|
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
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
@ -366,7 +366,7 @@ do
|
||||||
## Fix for QEMU 6.1 for PCI Passthrough
|
## Fix for QEMU 6.1 for PCI Passthrough
|
||||||
if [ `qemu-system-x86_64 --version | grep "6.1" | wc -l` -eq 1 ]
|
if [ `qemu-system-x86_64 --version | grep "6.1" | wc -l` -eq 1 ]
|
||||||
then
|
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
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue