GPU pass through

sakupataku

New Member
Dec 1, 2023
8
0
1
hi!
i'm a beginner on proxmox. I bought a chinese motherboard and i installed proxmox. i has been great until i bought a GPU because i wanted to pass it through to a windows VM. but i didn't find IOMMU in my BIOS. No IOMMU detected please activate it.

root@server:~# dmesg | grep IOMMU
[ 0.327382] DMAR-IR: IOAPIC id 3 under DRHD base 0xfbffc000 IOMMU 0
[ 0.327384] DMAR-IR: IOAPIC id 1 under DRHD base 0xc7ffc000 IOMMU 1
[ 0.327385] DMAR-IR: IOAPIC id 2 under DRHD base 0xc7ffc000 IOMMU 1

what can i do, if anyone can help
 
intel_iommu=on is missing. Please follow the manual and add intel_iommu=on: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#qm_pci_passthrough

i added it before but it's not working.
so i thought it was because i didn't enable IOMMU. in my bios i can only find VT-d and it's enabled.

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="intel_iommu=on"
GRUB_CMDLINE_LINUX=""


vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
 
i added it before but it's not working.
Did adding intel_iommu=on not work or did IOMMU not work?
so i thought it was because i didn't enable IOMMU. in my bios i can only find VT-d and it's enabled.
Then it's likely that you did not add intel_iommu=on correctly. Did you follow the steps in the manual carefully?
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="intel_iommu=on"
GRUB_CMDLINE_LINUX=""
Your GRUB configuration is different from what I expect from Proxmox. What is the output of cat /proc/cmdline now?
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
vfio_virqfd is no longer a module since kernel 6.2 (which is in the manual).
 
Did adding intel_iommu=on not work or did IOMMU not work?

Then it's likely that you did not add intel_iommu=on correctly. Did you follow the steps in the manual carefully?

Your GRUB configuration is different from what I expect from Proxmox. What is the output of cat /proc/cmdline now?

vfio_virqfd is no longer a module since kernel 6.2 (which is in the manual).
server:~# dmesg | grep -e DMAR -e IOMMU
[ 0.010794] ACPI: DMAR 0x000000007998F4B8 000180 (v01 ALASKA A M I 00000001 INTL 20091013)
[ 0.010830] ACPI: Reserving DMAR table memory at [mem 0x7998f4b8-0x7998f637]
[ 0.326937] DMAR: Host address width 46
[ 0.326938] DMAR: DRHD base: 0x000000fbffc000 flags: 0x0
[ 0.326945] DMAR: dmar0: reg_base_addr fbffc000 ver 1:0 cap 8d2078c106f0466 ecap f020df
[ 0.326947] DMAR: DRHD base: 0x000000c7ffc000 flags: 0x1
[ 0.326956] DMAR: dmar1: reg_base_addr c7ffc000 ver 1:0 cap 8d2078c106f0466 ecap f020df
[ 0.326958] DMAR: RMRR base: 0x0000007bb51000 end: 0x0000007bb60fff
[ 0.326960] DMAR: ATSR flags: 0x0
[ 0.326962] DMAR: RHSA base: 0x000000c7ffc000 proximity domain: 0x0
[ 0.326963] DMAR: RHSA base: 0x000000fbffc000 proximity domain: 0x1
[ 0.326965] DMAR-IR: IOAPIC id 3 under DRHD base 0xfbffc000 IOMMU 0
[ 0.326967] DMAR-IR: IOAPIC id 1 under DRHD base 0xc7ffc000 IOMMU 1
[ 0.326968] DMAR-IR: IOAPIC id 2 under DRHD base 0xc7ffc000 IOMMU 1
[ 0.326970] DMAR-IR: HPET id 0 under DRHD base 0xc7ffc000
[ 0.326971] DMAR-IR: Queued invalidation will be enabled to support x2apic and Intr-remapping.
[ 0.327781] DMAR-IR: Enabled IRQ remapping in x2apic mode
root@server:~#



isn't there supposed the be this line "DMAR: IOMMU enabled" or "DMAR: IOMMU disabled"?
Does't this mean the motherboard can't support IOMMU?
 
server:~# cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-6.5.11-4-pve root=/dev/mapper/pve-root ro quiet
intel_iommu=on is still missing. Therefore IOMMU is not enabled and we cannot determine anything. Please add intel_iommu=on as described in the Proxmox manual: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysboot_edit_kernel_cmdline (or start reading at https://pve.proxmox.com/pve-docs/pve-admin-guide.html#qm_pci_passthrough ).

EDIT: If you are having trouble with parts of the manual, finding out which bootloader is used, editing files or apply the changes, please ask questions about it.
 
Last edited:
intel_iommu=on is still missing. Therefore IOMMU is not enabled and we cannot determine anything. Please add intel_iommu=on as described in the Proxmox manual: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysboot_edit_kernel_cmdline (or start reading at https://pve.proxmox.com/pve-docs/pve-admin-guide.html#qm_pci_passthrough ).

EDIT: If you are having trouble with parts of the manual, finding out which bootloader is used, editing files or apply the changes, please ask questions about it.
Thanks it worked. i mad a mistake when i was adding the configurations. Thanks a lot!