X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=blobdiff_plain;f=qm-pci-passthrough.adoc;h=d9b842a28f31d30c7a2aa0b47ffc1bba220c2dc5;hp=a347e31a5e4b277028e767190d513583b8d76435;hb=fee30a6bcb938182d65d6b08658d1f422ebeaedb;hpb=5e235b991be83dcd141c3f2fdcf3d357bc3442e9 diff --git a/qm-pci-passthrough.adoc b/qm-pci-passthrough.adoc index a347e31..d9b842a 100644 --- a/qm-pci-passthrough.adoc +++ b/qm-pci-passthrough.adoc @@ -33,7 +33,7 @@ Further, server grade hardware has often better support than consumer grade hardware, but even then, many modern system can support this. Please refer to your hardware vendor to check if they support this feature -under Linux for your specific setup +under Linux for your specific setup. Configuration @@ -45,9 +45,10 @@ some configuration to enable PCI(e) passthrough. .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 the -'GRUB_CMDLINE_LINUX_DEFAULT' variable: +The IOMMU has to be activated on the +xref:sysboot_edit_kernel_cmdline[kernel commandline]. + +The command line parameters are: * for Intel CPUs: + @@ -60,12 +61,6 @@ enable trough grub. Edit `'/etc/default/grub'' and add the following to the amd_iommu=on ---- -[[qm_pci_passthrough_update_grub]] -To bring this change in effect, make sure you run: - ----- -# update-grub ----- .Kernel Modules @@ -87,6 +82,9 @@ After changing anything modules related, you need to refresh your # update-initramfs -u -k all ---- +If you are using `systemd-boot` make sure to +xref:sysboot_systemd_boot_refresh[sync the new initramfs to the bootable partitions]. + .Finish Configuration Finally reboot to bring the changes into effect and check that it is indeed @@ -295,7 +293,7 @@ vendor. Mediated Devices (vGPU, GVT-g) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Mediated devices are another method to use reuse features and performance from +Mediated devices are another method to reuse features and performance from physical hardware for virtualized hardware. These are found most common in virtualized GPU setups such as Intels GVT-g and Nvidias vGPUs used in their GRID technology. @@ -309,17 +307,16 @@ Host Configuration ^^^^^^^^^^^^^^^^^^ In general your card's driver must support that feature, otherwise it will -not work. So please refer to your vendor for compatbile drivers and how to +not work. So please refer to your vendor for compatible drivers and how to configure them. -Intels drivers for GVT-g are integraded in the Kernel and should work -with the 5th, 6th and 7th generation Intel Core Processors, further E3 v4, E3 -v5 and E3 v6 Xeon Processors are supported. +Intels drivers for GVT-g are integrated in the Kernel and should work +with 5th, 6th and 7th generation Intel Core Processors, as well as E3 v4, E3 +v5 and E3 v6 Xeon Processors. -To enable it for Intel Graphcs, you have to make sure to load the module -'kvmgt' (for example via `/etc/modules`) and to enable it on the Kernel -commandline. For this you can edit `'/etc/default/grub'' and add the following -to the 'GRUB_CMDLINE_LINUX_DEFAULT' variable: +To enable it for Intel Graphics, you have to make sure to load the module +'kvmgt' (for example via `/etc/modules`) and to enable it on the +xref:sysboot_edit_kernel_cmdline[Kernel commandline] and add the following parameter: ---- i915.enable_gvt=1 @@ -327,8 +324,7 @@ to the 'GRUB_CMDLINE_LINUX_DEFAULT' variable: After that remember to xref:qm_pci_passthrough_update_initramfs[update the `initramfs`], -xref:qm_pci_passthrough_update_grub[update grub] and -reboot your host. +and reboot your host. VM Configuration ^^^^^^^^^^^^^^^^