Yes, apparently a reboot is required. When I added 0a:00 this time it immediately took proxmox and all vms down when I started the vm- so at least I know it worked and which interface 0a:00 is!
So I rebooted again and added 03:00. When I start the vm I get these errors:
kvm: warning: Unknown firmware file in legacy mode: genroms/multiboot.bin
kvm: -device vfio-pci,host=03:00.0,id=hostpci0.0,bus=pci.0,addr=0x10.0,multifunction=on: vfio: failed to set iommu for container: Operation not permitted
kvm: -device vfio-pci,host=03:00.0,id=hostpci0.0,bus=pci.0,addr=0x10.0,multifunction=on: vfio: failed to setup container for group 20
kvm: -device vfio-pci,host=03:00.0,id=hostpci0.0,bus=pci.0,addr=0x10.0,multifunction=on: vfio: failed to get group 20
kvm: -device vfio-pci,host=03:00.0,id=hostpci0.0,bus=pci.0,addr=0x10.0,multifunction=on: Device initialization failed
TASK ERROR: start failed: command '/usr/bin/kvm -id 100 -chardev 'socket,id=qmp,path=/var/run/qemu-server/100.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -pidfile /var/run/qemu-server/100.pid -daemonize -smbios 'type=1,uuid=1bb0f6da-0cb7-402c-8c93-f62e0dd28bc0' -drive 'if=pflash,unit=0,format=raw,readonly,file=/usr/share/kvm/OVMF_CODE-pure-efi.fd' -drive 'if=pflash,unit=1,id=drive-efidisk0,format=raw,file=/var/lib/vz/images/100/vm-100-disk-3.raw' -name MacOS -smp '4,sockets=2,cores=2,maxcpus=4' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' -vga std -vnc unix:/var/run/qemu-server/100.vnc,x509,password -cpu host,+kvm_pv_unhalt,+kvm_pv_eoi -m 4096 -k en-us -device 'isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc' -smbios 'type=2' -kernel /var/lib/vz/template/qemu/enoch_rev2839_boot -cpu 'Penryn,kvm=off' -readconfig /usr/share/qemu-server/pve-q35.cfg -device 'vfio-pci,host=03:00.0,id=hostpci0.0,bus=pci.0,addr=0x10.0,multifunction=on' -device 'vfio-pci,host=03:00.1,id=hostpci0.1,bus=pci.0,addr=0x10.1' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:1ee95c57b253' -device 'ahci,id=ahci0,multifunction=on,bus=pci.0,addr=0x7' -drive 'file=/var/lib/vz/images/100/vm-100-disk-1.vmdk,if=none,id=drive-sata0,format=vmdk,cache=none,aio=native,detect-zeroes=on' -device 'ide-drive,bus=ahci0.0,drive=drive-sata0,id=sata0' -drive 'file=/var/lib/vz/images/100/vm-100-disk-2.raw,if=none,id=drive-sata1,format=raw,cache=none,aio=native,detect-zeroes=on' -device 'ide-drive,bus=ahci0.1,drive=drive-sata1,id=sata1,bootindex=101' -netdev 'type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown' -device 'e1000,mac=BA:4A:EB:BD:6C:B3,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300' -machine 'type=pc-q35-2.4'' failed: exit code 1
Also here is the output of the iommu groups:
root@pve:~# find /sys/kernel/iommu_groups/ -type l
/sys/kernel/iommu_groups/0/devices/0000:00:00.0
/sys/kernel/iommu_groups/1/devices/0000:00:01.0
/sys/kernel/iommu_groups/2/devices/0000:00:03.0
/sys/kernel/iommu_groups/3/devices/0000:00:07.0
/sys/kernel/iommu_groups/4/devices/0000:00:0d.0
/sys/kernel/iommu_groups/4/devices/0000:00:0d.1
/sys/kernel/iommu_groups/4/devices/0000:00:0d.2
/sys/kernel/iommu_groups/4/devices/0000:00:0d.3
/sys/kernel/iommu_groups/4/devices/0000:00:0d.4
/sys/kernel/iommu_groups/4/devices/0000:00:0d.5
/sys/kernel/iommu_groups/4/devices/0000:00:0d.6
/sys/kernel/iommu_groups/4/devices/0000:00:0d.7
/sys/kernel/iommu_groups/5/devices/0000:00:0e.0
/sys/kernel/iommu_groups/5/devices/0000:00:0e.1
/sys/kernel/iommu_groups/5/devices/0000:00:0e.2
/sys/kernel/iommu_groups/5/devices/0000:00:0e.3
/sys/kernel/iommu_groups/5/devices/0000:00:0e.4
/sys/kernel/iommu_groups/6/devices/0000:00:0f.0
/sys/kernel/iommu_groups/7/devices/0000:00:10.0
/sys/kernel/iommu_groups/7/devices/0000:00:10.1
/sys/kernel/iommu_groups/8/devices/0000:00:11.0
/sys/kernel/iommu_groups/8/devices/0000:00:11.1
/sys/kernel/iommu_groups/9/devices/0000:00:13.0
/sys/kernel/iommu_groups/10/devices/0000:00:14.0
/sys/kernel/iommu_groups/10/devices/0000:00:14.1
/sys/kernel/iommu_groups/10/devices/0000:00:14.2
/sys/kernel/iommu_groups/10/devices/0000:00:14.3
/sys/kernel/iommu_groups/11/devices/0000:00:15.0
/sys/kernel/iommu_groups/12/devices/0000:00:16.0
/sys/kernel/iommu_groups/12/devices/0000:00:16.1
/sys/kernel/iommu_groups/12/devices/0000:00:16.2
/sys/kernel/iommu_groups/12/devices/0000:00:16.3
/sys/kernel/iommu_groups/12/devices/0000:00:16.4
/sys/kernel/iommu_groups/12/devices/0000:00:16.5
/sys/kernel/iommu_groups/12/devices/0000:00:16.6
/sys/kernel/iommu_groups/12/devices/0000:00:16.7
/sys/kernel/iommu_groups/13/devices/0000:00:1a.0
/sys/kernel/iommu_groups/13/devices/0000:00:1a.1
/sys/kernel/iommu_groups/13/devices/0000:00:1a.2
/sys/kernel/iommu_groups/13/devices/0000:00:1a.7
/sys/kernel/iommu_groups/14/devices/0000:00:1b.0
/sys/kernel/iommu_groups/15/devices/0000:00:1c.0
/sys/kernel/iommu_groups/15/devices/0000:00:1c.1
/sys/kernel/iommu_groups/15/devices/0000:00:1c.2
/sys/kernel/iommu_groups/15/devices/0000:00:1c.3
/sys/kernel/iommu_groups/15/devices/0000:00:1c.4
/sys/kernel/iommu_groups/15/devices/0000:00:1c.5
/sys/kernel/iommu_groups/15/devices/0000:09:00.0
/sys/kernel/iommu_groups/15/devices/0000:0a:00.0
/sys/kernel/iommu_groups/15/devices/0000:0b:00.0
/sys/kernel/iommu_groups/15/devices/0000:0c:00.0
/sys/kernel/iommu_groups/16/devices/0000:00:1d.0
/sys/kernel/iommu_groups/16/devices/0000:00:1d.1
/sys/kernel/iommu_groups/16/devices/0000:00:1d.2
/sys/kernel/iommu_groups/16/devices/0000:00:1d.7
/sys/kernel/iommu_groups/17/devices/0000:00:1e.0
/sys/kernel/iommu_groups/18/devices/0000:00:1f.0
/sys/kernel/iommu_groups/18/devices/0000:00:1f.2
/sys/kernel/iommu_groups/18/devices/0000:00:1f.3
/sys/kernel/iommu_groups/19/devices/0000:01:00.0
/sys/kernel/iommu_groups/20/devices/0000:02:02.0
/sys/kernel/iommu_groups/20/devices/0000:03:00.0
/sys/kernel/iommu_groups/20/devices/0000:03:00.1
/sys/kernel/iommu_groups/21/devices/0000:02:04.0
/sys/kernel/iommu_groups/22/devices/0000:05:00.0
/sys/kernel/iommu_groups/22/devices/0000:05:00.1
/sys/kernel/iommu_groups/23/devices/0000:ff:00.0
/sys/kernel/iommu_groups/23/devices/0000:ff:00.1
/sys/kernel/iommu_groups/24/devices/0000:ff:02.0
/sys/kernel/iommu_groups/24/devices/0000:ff:02.1
/sys/kernel/iommu_groups/25/devices/0000:ff:03.0
/sys/kernel/iommu_groups/25/devices/0000:ff:03.1
/sys/kernel/iommu_groups/25/devices/0000:ff:03.4
/sys/kernel/iommu_groups/26/devices/0000:ff:04.0
/sys/kernel/iommu_groups/26/devices/0000:ff:04.1
/sys/kernel/iommu_groups/26/devices/0000:ff:04.2
/sys/kernel/iommu_groups/26/devices/0000:ff:04.3
/sys/kernel/iommu_groups/27/devices/0000:ff:05.0
/sys/kernel/iommu_groups/27/devices/0000:ff:05.1
/sys/kernel/iommu_groups/27/devices/0000:ff:05.2
/sys/kernel/iommu_groups/27/devices/0000:ff:05.3
/sys/kernel/iommu_groups/28/devices/0000:ff:06.0
/sys/kernel/iommu_groups/28/devices/0000:ff:06.1
/sys/kernel/iommu_groups/28/devices/0000:ff:06.2
/sys/kernel/iommu_groups/28/devices/0000:ff:06.3