Intel iGPU passthru to Proxmox VM
Hey there! 👋 In this section, we'll be covering the Full iGPU Passthrough to a Proxmox Virtual Machine for an Intel integrated iGPU.
Warning: You will lose the ability to use the onboard graphics card to access the Proxmox console since Proxmox won't be able to use the Intel's GPU.
- Edit the grub configuration file
/etc/default/gruband find the line that starts withGRUB_CMDLINE_LINUX_DEFAULT. By default, it should look like this:GRUB_CMD_LINUX_DEFAULT="quiet" - Add
intel_iommu=on iommu=ptto this line. - Update the grub configuration for the next reboot with
update-grub. -
Add
vfiomodules to/etc/modulesto allow PCI passthrough: -
Update configuration changes made in your
/etcfilesystem: - Reboot Proxmox.
- Verify that
IOMMUis enabled:dmesg | grep -e DMAR -e IOMMU - Note: There should be a line that looks like
DMAR: IOMMU enabled. If there is no output, something is wrong. - Find the PCI address of the iGPU:
lspci -nnv | grep VGA. This should result in output similar to this (If you have multiple VGA, look for the one that has theIntelin the name): - Create or edit your VM. Make sure the
Machinetype is set toq35. - Open the web GUI and navigate to the
Hardwaretab of the VM you want to add a vGPU. ClickAddabove the device list and then choosePCI Device. Open theDevicedropdown and select the iGPU, which you can find using its PCI address. This list uses a different format for the PCI addresses id,00:02.0is listed as `0000:00:02.0 - Select
All Functions,ROM-Bar,PCI-Expressand then clickAdd. - Connect to the VM via SSH or any other remote access protocol you prefer. Install the latest version of Intel's Graphics Driver or use the Intel Driver & Support Assistant.
-
Linux VM: Boot the VM. To test the iGPU passthrough was successful, you can use the following command:
- The output should include the Intel iGPU:
-
Now we need to check if the GPU's Driver initialization is working.
The output should include the renderD128.
In conclusion, successfully passing through an Intel iGPU to a Proxmox VM involves several critical steps, from modifying the GRUB configuration to ensuring the correct modules are loaded and the VM is properly configured. By following these steps, you can harness the power of your integrated GPU within a virtual environment, enhancing the performance and capabilities of your virtual machines. This process not only allows for better resource utilization but also opens up new possibilities for running graphically intensive applications within your VMs.