[PLUGIN] Intel iGPU SR-IOV - Support Page


Recommended Posts

  • ich777 changed the title to [PLUGIN] Intel iGPU SR-IOV - Support Page

Hello! Thank you for continuing to work on this! I would hugely appreciate any help you may be able to offer here. With the recent Wyze security breach I really want to switch to blueiris and want to be able to pass my igpu through to a windows vm.

 

I removed the old plugin and reinstalled your new one but am getting the exact same  VFIO_dma_map errors:

1. I am able to successfully get the 2 VFs (02.1 and 02.2) to show up in settings > system devices in their own IOMMU groups and bind them to VFIO at boot in Tools > System Devices.

2. The alder lake sound card cannot be separated into its own IOMMU group for my motherboard, so it's in a group with the ISA bridge, SMBus, and Serial Bus. 

3. I double checked that the drive my domains folder is in still has plenty of space (another person with the VFIO_dma_map error encountered this)

4. I thought the error might have something to do with me disabling the sound card in UEFI, but I re-enabled audio and got the same error. 

5. I also tried enabling & disabling multi-monitor igpu setting in UEFI and it had no effect.

 

For anyone else having trouble getting the new VFs to show up make sure you haven't bound the primary VF 02.0 to VFIO at boot as this will prevent the new VFs from showing up. 

 

I'm posting the full VM log here along with my diagnostics in case anyone might be able to help:

-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain-1-Windows 10/master-key.aes"}' \
-blockdev '{"driver":"file","filename":"/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd","node-name":"libvirt-pflash0-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-pflash0-format","read-only":true,"driver":"raw","file":"libvirt-pflash0-storage"}' \
-blockdev '{"driver":"file","filename":"/etc/libvirt/qemu/nvram/[removed]_VARS-pure-efi.fd","node-name":"libvirt-pflash1-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-pflash1-format","read-only":false,"driver":"raw","file":"libvirt-pflash1-storage"}' \
-machine pc-i440fx-7.2,usb=off,dump-guest-core=off,mem-merge=off,memory-backend=pc.ram,pflash0=libvirt-pflash0-format,pflash1=libvirt-pflash1-format \
-accel kvm \
-cpu host,migratable=on,hv-time=on,hv-relaxed=on,hv-vapic=on,hv-spinlocks=0x1fff,hv-vendor-id=none,host-cache-info=on,l3-cache=off \
-m 16384 \
-object '{"qom-type":"memory-backend-ram","id":"pc.ram","size":17179869184}' \
-overcommit mem-lock=off \
-smp 8,sockets=1,dies=1,cores=4,threads=2 \
-uuid [removed]\
-display none \
-no-user-config \
-nodefaults \
-chardev socket,id=charmonitor,fd=35,server=on,wait=off \
-mon chardev=charmonitor,id=monitor,mode=control \
-rtc base=localtime \
-no-hpet \
-no-shutdown \
-boot strict=on \
-device '{"driver":"pci-bridge","chassis_nr":1,"id":"pci.1","bus":"pci.0","addr":"0x2"}' \
-device '{"driver":"pci-bridge","chassis_nr":2,"id":"pci.2","bus":"pci.0","addr":"0x3"}' \
-device '{"driver":"pci-bridge","chassis_nr":3,"id":"pci.3","bus":"pci.0","addr":"0x6"}' \
-device '{"driver":"pci-bridge","chassis_nr":4,"id":"pci.4","bus":"pci.0","addr":"0x8"}' \
-device '{"driver":"pci-bridge","chassis_nr":5,"id":"pci.5","bus":"pci.0","addr":"0x9"}' \
-device '{"driver":"pci-bridge","chassis_nr":6,"id":"pci.6","bus":"pci.0","addr":"0xa"}' \
-device '{"driver":"ich9-usb-ehci1","id":"usb","bus":"pci.0","addr":"0x7.0x7"}' \
-device '{"driver":"ich9-usb-uhci1","masterbus":"usb.0","firstport":0,"bus":"pci.0","multifunction":true,"addr":"0x7"}' \
-device '{"driver":"ich9-usb-uhci2","masterbus":"usb.0","firstport":2,"bus":"pci.0","addr":"0x7.0x1"}' \
-device '{"driver":"ich9-usb-uhci3","masterbus":"usb.0","firstport":4,"bus":"pci.0","addr":"0x7.0x2"}' \
-device '{"driver":"ahci","id":"sata0","bus":"pci.0","addr":"0x4"}' \
-device '{"driver":"virtio-serial-pci","id":"virtio-serial0","bus":"pci.0","addr":"0x5"}' \
-blockdev '{"driver":"file","filename":"/mnt/user/domains/Windows 10/vdisk1.img","node-name":"libvirt-3-storage","cache":{"direct":false,"no-flush":false},"auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-3-format","read-only":false,"cache":{"direct":false,"no-flush":false},"driver":"raw","file":"libvirt-3-storage"}' \
-device '{"driver":"virtio-blk-pci","bus":"pci.0","addr":"0xc","drive":"libvirt-3-format","id":"virtio-disk2","bootindex":1,"write-cache":"on","serial":"vdisk1"}' \
-blockdev '{"driver":"file","filename":"/mnt/user/isos/Win10_22H2_English_x64v1.iso","node-name":"libvirt-2-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-2-format","read-only":true,"driver":"raw","file":"libvirt-2-storage"}' \
-device '{"driver":"ide-cd","bus":"sata0.0","drive":"libvirt-2-format","id":"sata0-0-0","bootindex":2}' \
-blockdev '{"driver":"file","filename":"/mnt/user/isos/virtio-win-0.1.240-1.iso","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw","file":"libvirt-1-storage"}' \
-device '{"driver":"ide-cd","bus":"sata0.1","drive":"libvirt-1-format","id":"sata0-0-1"}' \
-netdev tap,fd=36,id=hostnet0 \
-device '{"driver":"virtio-net","netdev":"hostnet0","id":"net0","mac":"52:54:00:73:76:08","bus":"pci.0","addr":"0xb"}' \
-chardev pty,id=charserial0 \
-device '{"driver":"isa-serial","chardev":"charserial0","id":"serial0","index":0}' \
-chardev socket,id=charchannel0,fd=34,server=on,wait=off \
-device '{"driver":"virtserialport","bus":"virtio-serial0.0","nr":1,"chardev":"charchannel0","id":"channel0","name":"org.qemu.guest_agent.0"}' \
-device '{"driver":"usb-tablet","id":"input0","bus":"usb.0","port":"1"}' \
-audiodev '{"id":"audio1","driver":"none"}' \
-device '{"driver":"vfio-pci","host":"0000:00:02.2","id":"hostdev0","bus":"pci.6","addr":"0x10"}' \
-device '{"driver":"vfio-pci","host":"0000:00:1f.3","id":"hostdev1","bus":"pci.0","addr":"0xd"}' \
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
-msg timestamp=on
char device redirected to /dev/pts/0 (label charserial0)
2024-02-06T08:45:42.252270Z qemu-system-x86_64: vfio: Cannot reset device 0000:00:1f.3, no available reset mechanism.
2024-02-06T08:45:42.256264Z qemu-system-x86_64: vfio: Cannot reset device 0000:00:1f.3, no available reset mechanism.
2024-02-06T08:45:42.755580Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:42.755597Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x38200010c000, 0x4000, 0x147a2884a000) = -22 (Invalid argument)
2024-02-06T08:45:42.755679Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:42.755682Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x382000000000, 0x100000, 0x1476252ff000) = -22 (Invalid argument)
2024-02-06T08:45:42.761136Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:42.761146Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x381800000000, 0x20000000, 0x1475fec00000) = -22 (Invalid argument)
2024-02-06T08:45:42.762136Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:42.762143Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x38200010c000, 0x4000, 0x147a2884a000) = -22 (Invalid argument)
2024-02-06T08:45:42.762282Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:42.762286Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x382000000000, 0x100000, 0x1476252ff000) = -22 (Invalid argument)
2024-02-06T08:45:42.811477Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:42.811492Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x381800000000, 0x20000000, 0x1475fec00000) = -22 (Invalid argument)
2024-02-06T08:45:42.814038Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:42.814046Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x38200010c000, 0x4000, 0x147a2884a000) = -22 (Invalid argument)
2024-02-06T08:45:42.814165Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:42.814169Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x382000000000, 0x100000, 0x1476252ff000) = -22 (Invalid argument)
2024-02-06T08:45:44.531401Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:44.531442Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x381800000000, 0x20000000, 0x1475fec00000) = -22 (Invalid argument)
2024-02-06T08:45:44.533997Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:44.534011Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x38200010c000, 0x4000, 0x147a2884a000) = -22 (Invalid argument)
2024-02-06T08:45:44.534318Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:44.534323Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x382000000000, 0x100000, 0x1476252ff000) = -22 (Invalid argument)
2024-02-06T08:45:44.577147Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:44.577193Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x381800000000, 0x20000000, 0x1475fec00000) = -22 (Invalid argument)
2024-02-06T08:45:44.584370Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:44.584398Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x38200010c000, 0x4000, 0x147a2884a000) = -22 (Invalid argument)
2024-02-06T08:45:44.584584Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:44.584590Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x382000000000, 0x100000, 0x1476252ff000) = -22 (Invalid argument)
2024-02-06T08:45:44.635492Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:44.635553Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x381800000000, 0x20000000, 0x1475fec00000) = -22 (Invalid argument)
2024-02-06T08:45:44.677263Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:44.677285Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x381800000000, 0x20000000, 0x1475fec00000) = -22 (Invalid argument)
2024-02-06T08:45:46.544729Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:46.544760Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x381800000000, 0x20000000, 0x1475fec00000) = -22 (Invalid argument)
2024-02-06T08:45:46.583933Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:46.583951Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x38200010c000, 0x4000, 0x147a2884a000) = -22 (Invalid argument)
2024-02-06T08:45:46.584150Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:46.584156Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x382000000000, 0x100000, 0x1476252ff000) = -22 (Invalid argument)
2024-02-06T08:45:57.747577Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:57.747600Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x38200010c000, 0x4000, 0x147a2884a000) = -22 (Invalid argument)
2024-02-06T08:45:57.747862Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:57.747872Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x382000000000, 0x100000, 0x1476252ff000) = -22 (Invalid argument)

 

hal9000-diagnostics-20240206-0053.zip

Link to comment
1 hour ago, WobbleBobble2 said:

Hello! Thank you for continuing to work on this! I would hugely appreciate any help you may be able to offer here. With the recent Wyze security breach I really want to switch to blueiris and want to be able to pass my igpu through to a windows vm.

 

I removed the old plugin and reinstalled your new one but am getting the exact same  VFIO_dma_map errors:

1. I am able to successfully get the 2 VFs (02.1 and 02.2) to show up in settings > system devices in their own IOMMU groups and bind them to VFIO at boot in Tools > System Devices.

2. The alder lake sound card cannot be separated into its own IOMMU group for my motherboard, so it's in a group with the ISA bridge, SMBus, and Serial Bus. 

3. I double checked that the drive my domains folder is in still has plenty of space (another person with the VFIO_dma_map error encountered this)

4. I thought the error might have something to do with me disabling the sound card in UEFI, but I re-enabled audio and got the same error. 

5. I also tried enabling & disabling multi-monitor igpu setting in UEFI and it had no effect.

 

For anyone else having trouble getting the new VFs to show up make sure you haven't bound the primary VF 02.0 to VFIO at boot as this will prevent the new VFs from showing up. 

 

I'm posting the full VM log here along with my diagnostics in case anyone might be able to help:

-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain-1-Windows 10/master-key.aes"}' \
-blockdev '{"driver":"file","filename":"/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd","node-name":"libvirt-pflash0-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-pflash0-format","read-only":true,"driver":"raw","file":"libvirt-pflash0-storage"}' \
-blockdev '{"driver":"file","filename":"/etc/libvirt/qemu/nvram/[removed]_VARS-pure-efi.fd","node-name":"libvirt-pflash1-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-pflash1-format","read-only":false,"driver":"raw","file":"libvirt-pflash1-storage"}' \
-machine pc-i440fx-7.2,usb=off,dump-guest-core=off,mem-merge=off,memory-backend=pc.ram,pflash0=libvirt-pflash0-format,pflash1=libvirt-pflash1-format \
-accel kvm \
-cpu host,migratable=on,hv-time=on,hv-relaxed=on,hv-vapic=on,hv-spinlocks=0x1fff,hv-vendor-id=none,host-cache-info=on,l3-cache=off \
-m 16384 \
-object '{"qom-type":"memory-backend-ram","id":"pc.ram","size":17179869184}' \
-overcommit mem-lock=off \
-smp 8,sockets=1,dies=1,cores=4,threads=2 \
-uuid [removed]\
-display none \
-no-user-config \
-nodefaults \
-chardev socket,id=charmonitor,fd=35,server=on,wait=off \
-mon chardev=charmonitor,id=monitor,mode=control \
-rtc base=localtime \
-no-hpet \
-no-shutdown \
-boot strict=on \
-device '{"driver":"pci-bridge","chassis_nr":1,"id":"pci.1","bus":"pci.0","addr":"0x2"}' \
-device '{"driver":"pci-bridge","chassis_nr":2,"id":"pci.2","bus":"pci.0","addr":"0x3"}' \
-device '{"driver":"pci-bridge","chassis_nr":3,"id":"pci.3","bus":"pci.0","addr":"0x6"}' \
-device '{"driver":"pci-bridge","chassis_nr":4,"id":"pci.4","bus":"pci.0","addr":"0x8"}' \
-device '{"driver":"pci-bridge","chassis_nr":5,"id":"pci.5","bus":"pci.0","addr":"0x9"}' \
-device '{"driver":"pci-bridge","chassis_nr":6,"id":"pci.6","bus":"pci.0","addr":"0xa"}' \
-device '{"driver":"ich9-usb-ehci1","id":"usb","bus":"pci.0","addr":"0x7.0x7"}' \
-device '{"driver":"ich9-usb-uhci1","masterbus":"usb.0","firstport":0,"bus":"pci.0","multifunction":true,"addr":"0x7"}' \
-device '{"driver":"ich9-usb-uhci2","masterbus":"usb.0","firstport":2,"bus":"pci.0","addr":"0x7.0x1"}' \
-device '{"driver":"ich9-usb-uhci3","masterbus":"usb.0","firstport":4,"bus":"pci.0","addr":"0x7.0x2"}' \
-device '{"driver":"ahci","id":"sata0","bus":"pci.0","addr":"0x4"}' \
-device '{"driver":"virtio-serial-pci","id":"virtio-serial0","bus":"pci.0","addr":"0x5"}' \
-blockdev '{"driver":"file","filename":"/mnt/user/domains/Windows 10/vdisk1.img","node-name":"libvirt-3-storage","cache":{"direct":false,"no-flush":false},"auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-3-format","read-only":false,"cache":{"direct":false,"no-flush":false},"driver":"raw","file":"libvirt-3-storage"}' \
-device '{"driver":"virtio-blk-pci","bus":"pci.0","addr":"0xc","drive":"libvirt-3-format","id":"virtio-disk2","bootindex":1,"write-cache":"on","serial":"vdisk1"}' \
-blockdev '{"driver":"file","filename":"/mnt/user/isos/Win10_22H2_English_x64v1.iso","node-name":"libvirt-2-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-2-format","read-only":true,"driver":"raw","file":"libvirt-2-storage"}' \
-device '{"driver":"ide-cd","bus":"sata0.0","drive":"libvirt-2-format","id":"sata0-0-0","bootindex":2}' \
-blockdev '{"driver":"file","filename":"/mnt/user/isos/virtio-win-0.1.240-1.iso","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw","file":"libvirt-1-storage"}' \
-device '{"driver":"ide-cd","bus":"sata0.1","drive":"libvirt-1-format","id":"sata0-0-1"}' \
-netdev tap,fd=36,id=hostnet0 \
-device '{"driver":"virtio-net","netdev":"hostnet0","id":"net0","mac":"52:54:00:73:76:08","bus":"pci.0","addr":"0xb"}' \
-chardev pty,id=charserial0 \
-device '{"driver":"isa-serial","chardev":"charserial0","id":"serial0","index":0}' \
-chardev socket,id=charchannel0,fd=34,server=on,wait=off \
-device '{"driver":"virtserialport","bus":"virtio-serial0.0","nr":1,"chardev":"charchannel0","id":"channel0","name":"org.qemu.guest_agent.0"}' \
-device '{"driver":"usb-tablet","id":"input0","bus":"usb.0","port":"1"}' \
-audiodev '{"id":"audio1","driver":"none"}' \
-device '{"driver":"vfio-pci","host":"0000:00:02.2","id":"hostdev0","bus":"pci.6","addr":"0x10"}' \
-device '{"driver":"vfio-pci","host":"0000:00:1f.3","id":"hostdev1","bus":"pci.0","addr":"0xd"}' \
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
-msg timestamp=on
char device redirected to /dev/pts/0 (label charserial0)
2024-02-06T08:45:42.252270Z qemu-system-x86_64: vfio: Cannot reset device 0000:00:1f.3, no available reset mechanism.
2024-02-06T08:45:42.256264Z qemu-system-x86_64: vfio: Cannot reset device 0000:00:1f.3, no available reset mechanism.
2024-02-06T08:45:42.755580Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:42.755597Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x38200010c000, 0x4000, 0x147a2884a000) = -22 (Invalid argument)
2024-02-06T08:45:42.755679Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:42.755682Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x382000000000, 0x100000, 0x1476252ff000) = -22 (Invalid argument)
2024-02-06T08:45:42.761136Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:42.761146Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x381800000000, 0x20000000, 0x1475fec00000) = -22 (Invalid argument)
2024-02-06T08:45:42.762136Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:42.762143Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x38200010c000, 0x4000, 0x147a2884a000) = -22 (Invalid argument)
2024-02-06T08:45:42.762282Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:42.762286Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x382000000000, 0x100000, 0x1476252ff000) = -22 (Invalid argument)
2024-02-06T08:45:42.811477Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:42.811492Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x381800000000, 0x20000000, 0x1475fec00000) = -22 (Invalid argument)
2024-02-06T08:45:42.814038Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:42.814046Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x38200010c000, 0x4000, 0x147a2884a000) = -22 (Invalid argument)
2024-02-06T08:45:42.814165Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:42.814169Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x382000000000, 0x100000, 0x1476252ff000) = -22 (Invalid argument)
2024-02-06T08:45:44.531401Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:44.531442Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x381800000000, 0x20000000, 0x1475fec00000) = -22 (Invalid argument)
2024-02-06T08:45:44.533997Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:44.534011Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x38200010c000, 0x4000, 0x147a2884a000) = -22 (Invalid argument)
2024-02-06T08:45:44.534318Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:44.534323Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x382000000000, 0x100000, 0x1476252ff000) = -22 (Invalid argument)
2024-02-06T08:45:44.577147Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:44.577193Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x381800000000, 0x20000000, 0x1475fec00000) = -22 (Invalid argument)
2024-02-06T08:45:44.584370Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:44.584398Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x38200010c000, 0x4000, 0x147a2884a000) = -22 (Invalid argument)
2024-02-06T08:45:44.584584Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:44.584590Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x382000000000, 0x100000, 0x1476252ff000) = -22 (Invalid argument)
2024-02-06T08:45:44.635492Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:44.635553Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x381800000000, 0x20000000, 0x1475fec00000) = -22 (Invalid argument)
2024-02-06T08:45:44.677263Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:44.677285Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x381800000000, 0x20000000, 0x1475fec00000) = -22 (Invalid argument)
2024-02-06T08:45:46.544729Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:46.544760Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x381800000000, 0x20000000, 0x1475fec00000) = -22 (Invalid argument)
2024-02-06T08:45:46.583933Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:46.583951Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x38200010c000, 0x4000, 0x147a2884a000) = -22 (Invalid argument)
2024-02-06T08:45:46.584150Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:46.584156Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x382000000000, 0x100000, 0x1476252ff000) = -22 (Invalid argument)
2024-02-06T08:45:57.747577Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:57.747600Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x38200010c000, 0x4000, 0x147a2884a000) = -22 (Invalid argument)
2024-02-06T08:45:57.747862Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-06T08:45:57.747872Z qemu-system-x86_64: vfio_dma_map(0x147620e48800, 0x382000000000, 0x100000, 0x1476252ff000) = -22 (Invalid argument)

 

hal9000-diagnostics-20240206-0053.zip 154.6 kB · 0 downloads

 

Hey...

I guess there is an issue with the sound card. Maybe it lacks FLR (Function Level Reset).

I suggest you check for that icon in system devices:

 

 image.png.fa47e3be09320441e4ee80b1219556a7.png

 

When you don't passthrough your sound card, does the vm start successfully just with vf1? 

Link to comment
1 hour ago, giganode said:

 

Hey...

I guess there is an issue with the sound card. Maybe it lacks FLR (Function Level Reset).

I suggest you check for that icon in system devices:

 

 image.png.fa47e3be09320441e4ee80b1219556a7.png

 

When you don't passthrough your sound card, does the vm start successfully just with vf1? 

I can confirm that cycle arrow icon is NOT visible next to my intel audio controller. I've attached my full IOMMU groups. I'll try not binding the audio device at startup and also not passing through a sound card. I don't need audio on the vm.

 

thanks for the quick reply!

Screenshot 2024-02-19 at 3.00.53 PM.jpg

Link to comment
7 hours ago, giganode said:

 

Hey...

I guess there is an issue with the sound card. Maybe it lacks FLR (Function Level Reset).

I suggest you check for that icon in system devices:

 

 image.png.fa47e3be09320441e4ee80b1219556a7.png

 

When you don't passthrough your sound card, does the vm start successfully just with vf1? 

I stopped binding the sound card at startup (tools>system devices)  and set Sound Card to "none" in VM settings. But still getting the same error "VFIO_MAP_DMA failed". 

 

text  error  warn  system  array  login  

-blockdev '{"driver":"file","filename":"/mnt/user/isos/virtio-win-0.1.240-1.iso","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw","file":"libvirt-1-storage"}' \
-device '{"driver":"ide-cd","bus":"sata0.1","drive":"libvirt-1-format","id":"sata0-0-1"}' \
-netdev tap,fd=36,id=hostnet0 \
-device '{"driver":"virtio-net","netdev":"hostnet0","id":"net0","mac":"52:54:00:73:76:08","bus":"pci.0","addr":"0xc"}' \
-chardev pty,id=charserial0 \
-device '{"driver":"isa-serial","chardev":"charserial0","id":"serial0","index":0}' \
-chardev socket,id=charchannel0,fd=34,server=on,wait=off \
-device '{"driver":"virtserialport","bus":"virtio-serial0.0","nr":1,"chardev":"charchannel0","id":"channel0","name":"org.qemu.guest_agent.0"}' \
-device '{"driver":"usb-tablet","id":"input0","bus":"usb.0","port":"1"}' \
-audiodev '{"id":"audio1","driver":"none"}' \
-vnc 0.0.0.0:0,websocket=5700,audiodev=audio1 \
-k en-us \
-device '{"driver":"qxl-vga","id":"video0","max_outputs":1,"ram_size":67108864,"vram_size":67108864,"vram64_size_mb":0,"vgamem_mb":16,"bus":"pci.0","addr":"0x2"}' \
-device '{"driver":"virtio-balloon-pci","id":"balloon0","bus":"pci.0","addr":"0xe"}' \
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
-msg timestamp=on
char device redirected to /dev/pts/0 (label charserial0)
qxl_send_events: spice-server bug: guest stopped, ignoring
2024-02-20T05:13:29.846302Z qemu-system-x86_64: terminating on signal 15 from pid 18602 (/usr/sbin/libvirtd)
2024-02-20 05:13:30.271+0000: shutting down, reason=shutdown
2024-02-20 05:14:00.278+0000: starting up libvirt version: 8.7.0, qemu version: 7.2.0, kernel: 6.1.64-Unraid, hostname: HAL9000
LC_ALL=C \
PATH=/bin:/sbin:/usr/bin:/usr/sbin \
HOME='/var/lib/libvirt/qemu/domain-6-Windows 10' \
XDG_DATA_HOME='/var/lib/libvirt/qemu/domain-6-Windows 10/.local/share' \
XDG_CACHE_HOME='/var/lib/libvirt/qemu/domain-6-Windows 10/.cache' \
XDG_CONFIG_HOME='/var/lib/libvirt/qemu/domain-6-Windows 10/.config' \
/usr/local/sbin/qemu \
-name 'guest=Windows 10,debug-threads=on' \
-S \
-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain-6-Windows 10/master-key.aes"}' \
-blockdev '{"driver":"file","filename":"/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd","node-name":"libvirt-pflash0-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-pflash0-format","read-only":true,"driver":"raw","file":"libvirt-pflash0-storage"}' \
-blockdev '{"driver":"file","filename":"/etc/libvirt/qemu/nvram/9ff111d8-9ac0-34f8-4fdf-cbc8b866a6fa_VARS-pure-efi.fd","node-name":"libvirt-pflash1-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-pflash1-format","read-only":false,"driver":"raw","file":"libvirt-pflash1-storage"}' \
-machine pc-i440fx-7.2,usb=off,dump-guest-core=off,mem-merge=off,memory-backend=pc.ram,pflash0=libvirt-pflash0-format,pflash1=libvirt-pflash1-format \
-accel kvm \
-cpu host,migratable=on,hv-time=on,hv-relaxed=on,hv-vapic=on,hv-spinlocks=0x1fff,hv-vendor-id=none,host-cache-info=on,l3-cache=off \
-m 16384 \
-object '{"qom-type":"memory-backend-ram","id":"pc.ram","size":17179869184}' \
-overcommit mem-lock=off \
-smp 8,sockets=1,dies=1,cores=4,threads=2 \
-uuid 9ff111d8-9ac0-34f8-4fdf-cbc8b866a6fa \
-display none \
-no-user-config \
-nodefaults \
-chardev socket,id=charmonitor,fd=35,server=on,wait=off \
-mon chardev=charmonitor,id=monitor,mode=control \
-rtc base=localtime \
-no-hpet \
-no-shutdown \
-boot strict=on \
-device '{"driver":"pci-bridge","chassis_nr":1,"id":"pci.1","bus":"pci.0","addr":"0x3"}' \
-device '{"driver":"pci-bridge","chassis_nr":2,"id":"pci.2","bus":"pci.0","addr":"0x6"}' \
-device '{"driver":"pci-bridge","chassis_nr":3,"id":"pci.3","bus":"pci.0","addr":"0xb"}' \
-device '{"driver":"pci-bridge","chassis_nr":4,"id":"pci.4","bus":"pci.0","addr":"0x8"}' \
-device '{"driver":"pci-bridge","chassis_nr":5,"id":"pci.5","bus":"pci.0","addr":"0x9"}' \
-device '{"driver":"pci-bridge","chassis_nr":6,"id":"pci.6","bus":"pci.0","addr":"0xa"}' \
-device '{"driver":"ich9-usb-ehci1","id":"usb","bus":"pci.0","addr":"0x7.0x7"}' \
-device '{"driver":"ich9-usb-uhci1","masterbus":"usb.0","firstport":0,"bus":"pci.0","multifunction":true,"addr":"0x7"}' \
-device '{"driver":"ich9-usb-uhci2","masterbus":"usb.0","firstport":2,"bus":"pci.0","addr":"0x7.0x1"}' \
-device '{"driver":"ich9-usb-uhci3","masterbus":"usb.0","firstport":4,"bus":"pci.0","addr":"0x7.0x2"}' \
-device '{"driver":"ahci","id":"sata0","bus":"pci.0","addr":"0x4"}' \
-device '{"driver":"virtio-serial-pci","id":"virtio-serial0","bus":"pci.0","addr":"0x5"}' \
-blockdev '{"driver":"file","filename":"/mnt/user/domains/Windows 10/vdisk1.img","node-name":"libvirt-3-storage","cache":{"direct":false,"no-flush":false},"auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-3-format","read-only":false,"cache":{"direct":false,"no-flush":false},"driver":"raw","file":"libvirt-3-storage"}' \
-device '{"driver":"virtio-blk-pci","bus":"pci.0","addr":"0xc","drive":"libvirt-3-format","id":"virtio-disk2","bootindex":1,"write-cache":"on","serial":"vdisk1"}' \
-blockdev '{"driver":"file","filename":"/mnt/user/isos/Win10_22H2_English_x64v1.iso","node-name":"libvirt-2-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-2-format","read-only":true,"driver":"raw","file":"libvirt-2-storage"}' \
-device '{"driver":"ide-cd","bus":"sata0.0","drive":"libvirt-2-format","id":"sata0-0-0","bootindex":2}' \
-blockdev '{"driver":"file","filename":"/mnt/user/isos/virtio-win-0.1.240-1.iso","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw","file":"libvirt-1-storage"}' \
-device '{"driver":"ide-cd","bus":"sata0.1","drive":"libvirt-1-format","id":"sata0-0-1"}' \
-netdev tap,fd=36,id=hostnet0 \
-device '{"driver":"virtio-net","netdev":"hostnet0","id":"net0","mac":"52:54:00:73:76:08","bus":"pci.0","addr":"0x2"}' \
-chardev pty,id=charserial0 \
-device '{"driver":"isa-serial","chardev":"charserial0","id":"serial0","index":0}' \
-chardev socket,id=charchannel0,fd=34,server=on,wait=off \
-device '{"driver":"virtserialport","bus":"virtio-serial0.0","nr":1,"chardev":"charchannel0","id":"channel0","name":"org.qemu.guest_agent.0"}' \
-device '{"driver":"usb-tablet","id":"input0","bus":"usb.0","port":"1"}' \
-audiodev '{"id":"audio1","driver":"none"}' \
-device '{"driver":"vfio-pci","host":"0000:00:02.1","id":"hostdev0","bus":"pci.6","addr":"0x10"}' \
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
-msg timestamp=on
char device redirected to /dev/pts/0 (label charserial0)
2024-02-20T05:14:06.722207Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-20T05:14:06.722263Z qemu-system-x86_64: vfio_dma_map(0x14c7a0048800, 0x381000000000, 0x20000000, 0x14c77de00000) = -2 (No such file or directory)
2024-02-20T05:14:06.774309Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-20T05:14:06.774325Z qemu-system-x86_64: vfio_dma_map(0x14c7a0048800, 0x381000000000, 0x20000000, 0x14c77de00000) = -22 (Invalid argument)
2024-02-20T05:14:43.108555Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-20T05:14:43.108571Z qemu-system-x86_64: vfio_dma_map(0x14c7a0048800, 0x381000000000, 0x20000000, 0x14c77de00000) = -22 (Invalid argument)
2024-02-20T05:14:46.343716Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-20T05:14:46.343732Z qemu-system-x86_64: vfio_dma_map(0x14c7a0048800, 0x381000000000, 0x20000000, 0x14c77de00000) = -22 (Invalid argument)
2024-02-20T05:14:46.398145Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-20T05:14:46.398160Z qemu-system-x86_64: vfio_dma_map(0x14c7a0048800, 0x381000000000, 0x20000000, 0x14c77de00000) = -22 (Invalid argument)
2024-02-20T05:14:48.175406Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-20T05:14:48.175432Z qemu-system-x86_64: vfio_dma_map(0x14c7a0048800, 0x381000000000, 0x20000000, 0x14c77de00000) = -22 (Invalid argument)
2024-02-20T05:14:48.203421Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-20T05:14:48.203440Z qemu-system-x86_64: vfio_dma_map(0x14c7a0048800, 0x381000000000, 0x20000000, 0x14c77de00000) = -22 (Invalid argument)
2024-02-20T05:14:48.249706Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-20T05:14:48.249734Z qemu-system-x86_64: vfio_dma_map(0x14c7a0048800, 0x381000000000, 0x20000000, 0x14c77de00000) = -22 (Invalid argument)
2024-02-20T05:14:48.276368Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-20T05:14:48.276391Z qemu-system-x86_64: vfio_dma_map(0x14c7a0048800, 0x381000000000, 0x20000000, 0x14c77de00000) = -22 (Invalid argument)
2024-02-20T05:14:50.563239Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-20T05:14:50.563261Z qemu-system-x86_64: vfio_dma_map(0x14c7a0048800, 0x381000000000, 0x20000000, 0x14c77de00000) = -22 (Invalid argument)

 

Link to comment
9 hours ago, jakeshake said:

Hello,

 

Thank you for keeping the pace going with this plug-in.

 

I am curious - are you able to output video from a Windows VM using the HDMI or Display Port with the iGPU using this plug-in?

 

No, you should still see the terminal output from unraid via hdmi.

 

Use RDP, Sunshine or some similar tech. Parsec is not recommended right now.

  • Like 1
Link to comment
3 hours ago, WobbleBobble2 said:

I stopped binding the sound card at startup (tools>system devices)  and set Sound Card to "none" in VM settings. But still getting the same error "VFIO_MAP_DMA failed". 

 

text  error  warn  system  array  login  

-blockdev '{"driver":"file","filename":"/mnt/user/isos/virtio-win-0.1.240-1.iso","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw","file":"libvirt-1-storage"}' \
-device '{"driver":"ide-cd","bus":"sata0.1","drive":"libvirt-1-format","id":"sata0-0-1"}' \
-netdev tap,fd=36,id=hostnet0 \
-device '{"driver":"virtio-net","netdev":"hostnet0","id":"net0","mac":"52:54:00:73:76:08","bus":"pci.0","addr":"0xc"}' \
-chardev pty,id=charserial0 \
-device '{"driver":"isa-serial","chardev":"charserial0","id":"serial0","index":0}' \
-chardev socket,id=charchannel0,fd=34,server=on,wait=off \
-device '{"driver":"virtserialport","bus":"virtio-serial0.0","nr":1,"chardev":"charchannel0","id":"channel0","name":"org.qemu.guest_agent.0"}' \
-device '{"driver":"usb-tablet","id":"input0","bus":"usb.0","port":"1"}' \
-audiodev '{"id":"audio1","driver":"none"}' \
-vnc 0.0.0.0:0,websocket=5700,audiodev=audio1 \
-k en-us \
-device '{"driver":"qxl-vga","id":"video0","max_outputs":1,"ram_size":67108864,"vram_size":67108864,"vram64_size_mb":0,"vgamem_mb":16,"bus":"pci.0","addr":"0x2"}' \
-device '{"driver":"virtio-balloon-pci","id":"balloon0","bus":"pci.0","addr":"0xe"}' \
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
-msg timestamp=on
char device redirected to /dev/pts/0 (label charserial0)
qxl_send_events: spice-server bug: guest stopped, ignoring
2024-02-20T05:13:29.846302Z qemu-system-x86_64: terminating on signal 15 from pid 18602 (/usr/sbin/libvirtd)
2024-02-20 05:13:30.271+0000: shutting down, reason=shutdown
2024-02-20 05:14:00.278+0000: starting up libvirt version: 8.7.0, qemu version: 7.2.0, kernel: 6.1.64-Unraid, hostname: HAL9000
LC_ALL=C \
PATH=/bin:/sbin:/usr/bin:/usr/sbin \
HOME='/var/lib/libvirt/qemu/domain-6-Windows 10' \
XDG_DATA_HOME='/var/lib/libvirt/qemu/domain-6-Windows 10/.local/share' \
XDG_CACHE_HOME='/var/lib/libvirt/qemu/domain-6-Windows 10/.cache' \
XDG_CONFIG_HOME='/var/lib/libvirt/qemu/domain-6-Windows 10/.config' \
/usr/local/sbin/qemu \
-name 'guest=Windows 10,debug-threads=on' \
-S \
-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain-6-Windows 10/master-key.aes"}' \
-blockdev '{"driver":"file","filename":"/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd","node-name":"libvirt-pflash0-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-pflash0-format","read-only":true,"driver":"raw","file":"libvirt-pflash0-storage"}' \
-blockdev '{"driver":"file","filename":"/etc/libvirt/qemu/nvram/9ff111d8-9ac0-34f8-4fdf-cbc8b866a6fa_VARS-pure-efi.fd","node-name":"libvirt-pflash1-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-pflash1-format","read-only":false,"driver":"raw","file":"libvirt-pflash1-storage"}' \
-machine pc-i440fx-7.2,usb=off,dump-guest-core=off,mem-merge=off,memory-backend=pc.ram,pflash0=libvirt-pflash0-format,pflash1=libvirt-pflash1-format \
-accel kvm \
-cpu host,migratable=on,hv-time=on,hv-relaxed=on,hv-vapic=on,hv-spinlocks=0x1fff,hv-vendor-id=none,host-cache-info=on,l3-cache=off \
-m 16384 \
-object '{"qom-type":"memory-backend-ram","id":"pc.ram","size":17179869184}' \
-overcommit mem-lock=off \
-smp 8,sockets=1,dies=1,cores=4,threads=2 \
-uuid 9ff111d8-9ac0-34f8-4fdf-cbc8b866a6fa \
-display none \
-no-user-config \
-nodefaults \
-chardev socket,id=charmonitor,fd=35,server=on,wait=off \
-mon chardev=charmonitor,id=monitor,mode=control \
-rtc base=localtime \
-no-hpet \
-no-shutdown \
-boot strict=on \
-device '{"driver":"pci-bridge","chassis_nr":1,"id":"pci.1","bus":"pci.0","addr":"0x3"}' \
-device '{"driver":"pci-bridge","chassis_nr":2,"id":"pci.2","bus":"pci.0","addr":"0x6"}' \
-device '{"driver":"pci-bridge","chassis_nr":3,"id":"pci.3","bus":"pci.0","addr":"0xb"}' \
-device '{"driver":"pci-bridge","chassis_nr":4,"id":"pci.4","bus":"pci.0","addr":"0x8"}' \
-device '{"driver":"pci-bridge","chassis_nr":5,"id":"pci.5","bus":"pci.0","addr":"0x9"}' \
-device '{"driver":"pci-bridge","chassis_nr":6,"id":"pci.6","bus":"pci.0","addr":"0xa"}' \
-device '{"driver":"ich9-usb-ehci1","id":"usb","bus":"pci.0","addr":"0x7.0x7"}' \
-device '{"driver":"ich9-usb-uhci1","masterbus":"usb.0","firstport":0,"bus":"pci.0","multifunction":true,"addr":"0x7"}' \
-device '{"driver":"ich9-usb-uhci2","masterbus":"usb.0","firstport":2,"bus":"pci.0","addr":"0x7.0x1"}' \
-device '{"driver":"ich9-usb-uhci3","masterbus":"usb.0","firstport":4,"bus":"pci.0","addr":"0x7.0x2"}' \
-device '{"driver":"ahci","id":"sata0","bus":"pci.0","addr":"0x4"}' \
-device '{"driver":"virtio-serial-pci","id":"virtio-serial0","bus":"pci.0","addr":"0x5"}' \
-blockdev '{"driver":"file","filename":"/mnt/user/domains/Windows 10/vdisk1.img","node-name":"libvirt-3-storage","cache":{"direct":false,"no-flush":false},"auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-3-format","read-only":false,"cache":{"direct":false,"no-flush":false},"driver":"raw","file":"libvirt-3-storage"}' \
-device '{"driver":"virtio-blk-pci","bus":"pci.0","addr":"0xc","drive":"libvirt-3-format","id":"virtio-disk2","bootindex":1,"write-cache":"on","serial":"vdisk1"}' \
-blockdev '{"driver":"file","filename":"/mnt/user/isos/Win10_22H2_English_x64v1.iso","node-name":"libvirt-2-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-2-format","read-only":true,"driver":"raw","file":"libvirt-2-storage"}' \
-device '{"driver":"ide-cd","bus":"sata0.0","drive":"libvirt-2-format","id":"sata0-0-0","bootindex":2}' \
-blockdev '{"driver":"file","filename":"/mnt/user/isos/virtio-win-0.1.240-1.iso","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw","file":"libvirt-1-storage"}' \
-device '{"driver":"ide-cd","bus":"sata0.1","drive":"libvirt-1-format","id":"sata0-0-1"}' \
-netdev tap,fd=36,id=hostnet0 \
-device '{"driver":"virtio-net","netdev":"hostnet0","id":"net0","mac":"52:54:00:73:76:08","bus":"pci.0","addr":"0x2"}' \
-chardev pty,id=charserial0 \
-device '{"driver":"isa-serial","chardev":"charserial0","id":"serial0","index":0}' \
-chardev socket,id=charchannel0,fd=34,server=on,wait=off \
-device '{"driver":"virtserialport","bus":"virtio-serial0.0","nr":1,"chardev":"charchannel0","id":"channel0","name":"org.qemu.guest_agent.0"}' \
-device '{"driver":"usb-tablet","id":"input0","bus":"usb.0","port":"1"}' \
-audiodev '{"id":"audio1","driver":"none"}' \
-device '{"driver":"vfio-pci","host":"0000:00:02.1","id":"hostdev0","bus":"pci.6","addr":"0x10"}' \
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
-msg timestamp=on
char device redirected to /dev/pts/0 (label charserial0)
2024-02-20T05:14:06.722207Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-20T05:14:06.722263Z qemu-system-x86_64: vfio_dma_map(0x14c7a0048800, 0x381000000000, 0x20000000, 0x14c77de00000) = -2 (No such file or directory)
2024-02-20T05:14:06.774309Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-20T05:14:06.774325Z qemu-system-x86_64: vfio_dma_map(0x14c7a0048800, 0x381000000000, 0x20000000, 0x14c77de00000) = -22 (Invalid argument)
2024-02-20T05:14:43.108555Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-20T05:14:43.108571Z qemu-system-x86_64: vfio_dma_map(0x14c7a0048800, 0x381000000000, 0x20000000, 0x14c77de00000) = -22 (Invalid argument)
2024-02-20T05:14:46.343716Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-20T05:14:46.343732Z qemu-system-x86_64: vfio_dma_map(0x14c7a0048800, 0x381000000000, 0x20000000, 0x14c77de00000) = -22 (Invalid argument)
2024-02-20T05:14:46.398145Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-20T05:14:46.398160Z qemu-system-x86_64: vfio_dma_map(0x14c7a0048800, 0x381000000000, 0x20000000, 0x14c77de00000) = -22 (Invalid argument)
2024-02-20T05:14:48.175406Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-20T05:14:48.175432Z qemu-system-x86_64: vfio_dma_map(0x14c7a0048800, 0x381000000000, 0x20000000, 0x14c77de00000) = -22 (Invalid argument)
2024-02-20T05:14:48.203421Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-20T05:14:48.203440Z qemu-system-x86_64: vfio_dma_map(0x14c7a0048800, 0x381000000000, 0x20000000, 0x14c77de00000) = -22 (Invalid argument)
2024-02-20T05:14:48.249706Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-20T05:14:48.249734Z qemu-system-x86_64: vfio_dma_map(0x14c7a0048800, 0x381000000000, 0x20000000, 0x14c77de00000) = -22 (Invalid argument)
2024-02-20T05:14:48.276368Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-20T05:14:48.276391Z qemu-system-x86_64: vfio_dma_map(0x14c7a0048800, 0x381000000000, 0x20000000, 0x14c77de00000) = -22 (Invalid argument)
2024-02-20T05:14:50.563239Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument
2024-02-20T05:14:50.563261Z qemu-system-x86_64: vfio_dma_map(0x14c7a0048800, 0x381000000000, 0x20000000, 0x14c77de00000) = -22 (Invalid argument)

 

 

Okay, please take a look at this topic as this is not an issue related to the plugin.

Link to comment
21 minutes ago, neunghaha28 said:

I'm using ich777's plugin.

The plugin is the same and I'm still compiling the plugin packages for this new plugin for @giganode.

 

21 minutes ago, neunghaha28 said:

If possible, please explain the steps.

  1. Uninstall my plugin
  2. Shutdown all VMs
  3. Install the plugin from the CA App
  4. Recreate your VFs
  5. Check the configurations in your VMs if everything is correct
  6. Use as usual

 

It is basically the same as you switched over first from the very first plugin to my plugin.

 

The change was done since I don't have any hardware that supports Intel iGPU SR-IOV, this was also the reason why I haven't published in the CA App.

Thanks to @giganode for his contributions and continuing with the plugin and support for the plugin. :)

  • Like 2
  • Thanks 1
Link to comment
6 minutes ago, ich777 said:

The plugin is the same and I'm still compiling the plugin packages that include the driver but @giganode will continue to support and provide the plugin itself.

 

  1. Uninstall my plugin
  2. Shutdown all VMs
  3. Install the plugin from the CA App
  4. Recreate your VFs
  5. Check the configurations in your VMs if everything is correct
  6. Use as usual

 

It is basically the same as you switched over first from the very first plugin to my plugin.

 

The change was done since I don't have any hardware that supports Intel iGPU SR-IOV, this was also the reason why I haven't published in the CA App.

Thanks to @giganode for continuing with the plugin. :)

Thank you @ich777 

I have followed the steps to migrate from ich777 to giganode, everything still works fine. without having to reboot any device

 

And Thank you @giganode that brings it into community applications, making it easily accessible to others

  • Like 2
Link to comment
18 minutes ago, just4lyl said:

After successfully installing the plug-in, binding vfio and restarting,

1.thumb.png.9d5c120a74f534d10c2d57fa7d0382d5.png

the virtual machine cannot start automatically, but it can be started manually, and there is an error message.

2.png.492dacbab9032e1a28043a665073621b.png

 

Don't bind the VFs to vfio. Please unbind, reboot and try again 🙂

Link to comment
6 minutes ago, just4lyl said:

Thank you for your reply. If I don't bind vfio, will it affect the plex hardware decoding in docker?

 

No it doesn't. You can run a VM and transcode within plex simultaneously.

 

You just have to make sure that you do not passthrough the iGPU itself. Pass a VF trough to a vm and everything should be fine 🙂

Link to comment

adding to Wobble's issues.

I too am experiencing problems with the plugin.

I am getting the same DMA error's as cited in his original post

I have two VM's, Manjaro, and Win11. The win11 vm can display in 640x480 resolution. Manjaro vm gives up a black screen, despite having installed the drivers

I do not have audio in the vm. I chose the VF and not the main board in the template.

The VM's behave normally when I switch to VNC.

Using NoMachine as the remoting software, which is usually rock solid.

hmmmm

 

Link to comment

Well, unraid 6.12.8 running on a NUC NUC13ANBi7

Installed the plug-in, rebooted

Changed the output of my windows VM to 0:2:1

Installed the Intel GPU drivers

rebooted the VM just in case..

Et Voila, GPU IRIS XE shows up in taskmanager

Done? It works, plex in a seperate docker works still.. i am amazed, no more weird settings to change or add.. just works?

I am exited. 

 

  • Like 1
Link to comment
On 2/21/2024 at 2:23 PM, bucky2076 said:

adding to Wobble's issues.

I too am experiencing problems with the plugin.

I am getting the same DMA error's as cited in his original post

I have two VM's, Manjaro, and Win11. The win11 vm can display in 640x480 resolution. Manjaro vm gives up a black screen, despite having installed the drivers

I do not have audio in the vm. I chose the VF and not the main board in the template.

The VM's behave normally when I switch to VNC.

Using NoMachine as the remoting software, which is usually rock solid.

hmmmm

 

[removed while still confirming solution with giganode]

 

HUGE shout out to Giganode for guiding a newb like me through this setup!! 

429031293_Screenshot2024-02-22at1_36_48PM.jpg.198ddd44ca8db196c52632c9d629c6bf.jpg

Edited by WobbleBobble2
Link to comment
On 2/20/2024 at 12:59 AM, jakeshake said:

Hello,

 

Thank you for keeping the pace going with this plug-in.

 

I am curious - are you able to output video from a Windows VM using the HDMI or Display Port with the iGPU using this plug-in?

 

You should also be able to use a real monitor with an hdmi dongle. Still need to verify this though.

Link to comment
17 hours ago, WobbleBobble2 said:

Giganode helped me figure out that Parsec remote software does not work, but windows remote desktop does! So I am still getting the DMA errors but I am now able to start the VM successfully despite the errors and log in via windows remote desktop. I had to log into the VM via VNC and setup windows remote desktop first. Then I switched back to the iGPU and made several other edits to the VM as guided by GigaNode, including switching the network adapter to a bridge br0, which allowed me to log into the VM remote desktop from my laptop. I'll post the full steps used once Giganode confirms they are the right steps for other folks too, but for now you can try switching to remote desktop instead of using NoMachine as a starting point. 

 

HUGE shout out to Giganode for guiding a newb like me through this setup!! 

429031293_Screenshot2024-02-22at1_36_48PM.jpg.198ddd44ca8db196c52632c9d629c6bf.jpg

 

giganode,

Thank you for your effort and time on this plug-in !

I upgraded my 11 year old unRaid hardware (which went surprising well) but I have been pulling my hair out for a week trying to get this VM igpu working. Your plugin is what finally did the trick.

 

WobbleBobble,

It appears I am at the same point as you. I have the same graphics 770, same "VFIO_MAP_DMA failed" error, using windows remote destop to access,  and same problem with binding the soundcard.

I don't have a solution but if/when I do, I'll be sure to post.

Please also continue to share if you find a fix on your end.

Thank you,

 

image.png.4d88dfb7a3e64ff8dea87174ce1ef3b8.png

image.png.32d9879123fbd611c0c3900554f41197.png

image.png.938418814ca479d36e9505851addd986.png

image.png.e7f8dd5e4b15f5db9d2fafb3e7f46b7d.png

 

Edited by Dabear3
Link to comment

Rocking an i5-12400. I installed the plugin and got the drivers working in my Windows VM. No problems whatsoever.


However, is QSV supposed to work in an SR-IOV setup? It works okay on the host, but in the Windows 10 guest, Handbrake seems to be failing to encode using QSV for an "unknown reason".

 

Hardware acceleration seems to work perfectly elsewhere. It seems to be just QSV who's messing up. Has anyone had success with QSV?

Link to comment
1 hour ago, Dabear3 said:

 

giganode,

Thank you for your effort and time on this plug-in !

I upgraded my 11 year old unRaid hardware (which went surprising well) but I have been pulling my hair out for a week trying to get this VM igpu working. Your plugin is what finally did the trick.

 

WobbleBobble,

It appears I am at the same point as you. I have the same graphics 770, same "VFIO_MAP_DMA failed" error, using windows remote destop to access,  and same problem with binding the soundcard.

I don't have a solution but if/when I do, I'll be sure to post.

Please also continue to share if you find a fix on your end.

Thank you,

 

image.png.4d88dfb7a3e64ff8dea87174ce1ef3b8.png

image.png.32d9879123fbd611c0c3900554f41197.png

image.png.938418814ca479d36e9505851addd986.png

image.png.e7f8dd5e4b15f5db9d2fafb3e7f46b7d.png

 

 

Thank you!

 

Unbind all devices from vfio and reboot your system. You don't need the audio controller for sound.

You can install Steam and then use their builtin audio device or you install this Virtual Soundcard and use Moonlight/Sunshine.

 

 

In terms of the VFIO_MAP_DMA errors at the moment I think that this is a hardware specific error message.

My main gets the same messages (13500 also with UHD 770) but my N100  does not.

But anyway, it seems that it does not have an impact to the vm. So unless there are issues affecting the vm I suggest we take a look from time to time and observe the situation. Maybe future updates will eliminate this error 😊

 

 

btw.. I just did some testing with my Windows11-VM and got some good results:

 

image.thumb.png.3afefae256cbc53e640d418cbd80c8f5.png

Furmark

image.png.8eb2d986a8f17676cefd6f73018df9f0.png 

Youtube Stats for Nerds

 

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.