problem with configuration gpu passthrough

Arslan97

New Member
Aug 26, 2024
2
0
1
hi guys, i have a problem with my server...
i have proxmox installed and a vm debian i'm trying to do the passhtrough of the gpu but it still not working.
when i start the vm gives me this "kvm: -device vfio-pci,host=0000:04:00.1,id=hostpci0.1,bus=ich9-pcie-port-1,addr=0x0.1: vfio 0000:04:00.1: failed to setup container for group 13: Failed to set iommu for container: Operation not permitted"
anyone can help me ??
the gpu is a 1060.
 
04:00.1 is probably the audio function of the GPU. Are you passing the VGA and audio functions separately with All Functions enabled, perhaps? Please show the VM configuration (file from /etc/pve/qemu-server/ or qm config VM_ID_NUMBER).
 
Code:
bios: ovmf
boot: order=scsi0;ide2;net0
cores: 4
cpu: host
efidisk0: local-lvm:vm-100-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
hostpci0: 0000:04:00.0
ide2: local:iso/debian-12.6.0-amd64-netinst.iso,media=cdrom,size=631M
machine: q35
memory: 4096
meta: creation-qemu=9.0.2,ctime=1724625775
name: Debian12
net0: virtio=BC:24:11:2D:F4:D8,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: local-lvm:vm-100-disk-1,iothread=1,size=32G
scsihw: virtio-scsi-single
smbios1: uuid=d74a78ed-8263-470c-a609-9967bd8f000c
sockets: 1
vmgenid: 37a58772-7a04-4960-9fa5-e38ed1d3336c
i was still using all function mode,noe i have left it.. i need only the video.but now i have this error

Code:
kvm: -device vfio-pci,host=0000:04:00.0,id=hostpci0,bus=pci.0,addr=0x10: vfio 0000:04:00.0: failed to setup container for group 1: Failed to set group container: Invalid argument
TASK ERROR: start failed: QEMU exited with code 1
 
You might have a RMRR problem (check with journalctl). Are you using a HP server? I have no experience with that issue but you might want search the forum for possible solutions.