some configuration to enable PCI(e) passthrough.
-IOMMU
-+++++
+.IOMMU
The IOMMU has to be activated on the kernel commandline. The easiest way is to
-enable trough grub. Edit `'/etc/default/grub'' and add the following to th
+enable trough grub. Edit `'/etc/default/grub'' and add the following to the
'GRUB_CMDLINE_LINUX_DEFAULT' variable:
* for Intel CPUs:
amd_iommu=on
----
+[[qm_pci_passthrough_update_grub]]
To bring this change in effect, make sure you run:
----
# update-grub
----
-Kernel Modules
-++++++++++++++
+.Kernel Modules
You have to make sure the following modules are loaded. This can be achieved by
adding them to `'/etc/modules''
# update-initramfs -u -k all
----
-Finish Configuration
-++++++++++++++++++++
+.Finish Configuration
Finally reboot to bring the changes into effect and check that it is indeed
enabled.
* *romfile=<path>*, is an optional path to a ROM file for the device to use.
This is a relative path under */usr/share/kvm/*.
-Example
-+++++++
+.Example
An example of PCIe passthrough with a GPU set to primary:
----
+
To make this change persistent you can use the `sysfsutils` Debian package.
-After installation configure it via */etc/sysfs.conf* or a `FILE.conf' inf
+After installation configure it via */etc/sysfs.conf* or a `FILE.conf' in
*/etc/sysfs.d/*.
VM Configuration