PCI passthrough on Proxmox - HP PL DL380 G6

DropZII

New Member
Jul 25, 2021
4
0
1
23
Bonjour à tous,
je vous explique mon problème.
Je souhaiterais utiliser le pci passthrough sur proxmox afin d'avoir un gpu sur une vm windows 10.
La virtualisation est activée dans le bios (l'option Intel Vt-d également), intel_iommu est activé, et l'adresse du gpu sur proxmox est 07:00 (en réalité 0000:07:00.0 pour la partie graphique, 0000:07:00.1 pour la partie audio).
J'ai modifié la configuration de la vm (101.conf -> hostpci0: 07:00,pcie=1,x-vga=on), etc...
J'ai suivi à la lettre la documentation proxmox, des tutoriels Français, j'ai essayé avec proxmox 6.4 et proxmox 7 mais rien n'y fait, j'obtiens toujours une erreur qui bloque le démarrage de ma vm :

kvm: -device vfio-pci,host=0000:07:00.0,id=hostpci0.0,bus=ich9-pcie-port-1,addr=0x0.0,multifunction=on: vfio 0000:07:00.0: failed to setup container for group 31: Failed to set iommu for container: Operation not permitted
TASK ERROR: start failed: QEMU exited with code 1

Quelqu'un aurait une piste ? Merci
Cordialement.
 
Please show us your IOMMU groups using this command: for d in /sys/kernel/iommu_groups/*/devices/*; do n=${d#*/iommu_groups/*}; n=${n%%/*}; printf 'IOMMU group %s ' "$n"; lspci -nns "${d##*/}"; done. If this does not display anything, either IOMMU is not fully enabled or it is broken on your HP.

Please check if your HP has the broken interrupt remapping as some are known to have, using this command: lspci -nn | grep -qE '8086:(340[36].*rev 13|3405.*rev (12|13|22))' && echo "Interrupt remapping is broken".
 
Please show us your IOMMU groups using this command: for d in /sys/kernel/iommu_groups/*/devices/*; do n=${d#*/iommu_groups/*}; n=${n%%/*}; printf 'IOMMU group %s ' "$n"; lspci -nns "${d##*/}"; done. If this does not display anything, either IOMMU is not fully enabled or it is broken on your HP.

Please check if your HP has the broken interrupt remapping as some are known to have, using this command: lspci -nn | grep -qE '8086:(340[36].*rev 13|3405.*rev (12|13|22))' && echo "Interrupt remapping is broken".
La première commande m'indique cela :
IOMMU group 31 07:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF106GL [Quadro 2000] [10de:0dd8] (rev a1)
IOMMU group 31 07:00.1 Audio device [0403]: NVIDIA Corporation GF106 High Definition Audio Controller [10de:0be9] (rev a1)
Ce Que veut dire Qui le GPU est bien reconnu et bien est Dans son groupe IOMMU.

La deuxième commande m'indique cela :
Interrupt remapping is broken
 
I don't think that PCI passthrough will work for your system because interrupt remapping is broken. Maybe you can find a fix or work-around somewhere else in this forum, as more people are having this issue with HP systems.
EDIT: Maybe this can help?
 
Last edited:
I don't think that PCI passthrough will work for your system because interrupt remapping is broken. Maybe you can find a fix or work-around somewhere else in this forum, as more people are having this issue with HP systems.
EDIT: Maybe this can help?
D'après la documentation proxmox, on peut peut-être contourner le problème de interrupt remapping :


If your system doesn't support interrupt remapping, you can allow unsafe interrupts with:

echo "options vfio_iommu_type1 allow_unsafe_interrupts=1" > /etc/modprobe.d/iommu_unsafe_interrupts.conf


Mais après essai, cela ne fonctionne toujours pas. Donc le problème ne vient pas de là..
 
Als de handleiding zegt dat dat het oplost en de aanpassing is correct doorgevoerd, dan weet ik het ook even niet. Heb je een update-initramfs -u en herstart gedaan?
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!