remove amd_iommu

on AMD, iommu groups are enabled by default if the bios detects them
https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF
This commit is contained in:
lukas 2023-05-23 23:17:02 +02:00
parent b90360ea63
commit dece0f19cd

View File

@ -213,7 +213,7 @@ chmod +x /mnt/sysimage/usr/local/bin/virtualization-tweaks-root-needed.sh
%post --nochroot --logfile=/mnt/sysimage/opt/base-hypervisor-amdcpu.log
sed -i 's/\(quiet\)/\1 amd_iommu=on iommu=pt rd.driver.pre=vfio-pci/i' /mnt/sysimage/etc/default/grub # Load kernel modules in GRUB.
sed -i 's/\(quiet\)/\1 iommu=pt rd.driver.pre=vfio-pci/i' /mnt/sysimage/etc/default/grub # Load kernel modules in GRUB.
echo "options kvm_amd nested=1" >> /mnt/sysimage/etc/modprobe.d/kvm.conf # Add support for nested-virtualization