ich777 Posted February 20 Share Posted February 20 Just now, WobbleBobble2 said: Ok I installed the edk2 firmware from 6.11.5 as directed above I don't think that this is a firmware issue from the VMs... 1 minute ago, WobbleBobble2 said: I am using the SR-IOV plug in currently under development here. I already saw your posts and waited for your post here... I'm not too sure what the exact issue here is because I don't have any suitable hardware to test the SR-IOV plugin. Maybe @SimonF has a clue. Quote Link to comment
SimonF Posted February 20 Share Posted February 20 37 minutes ago, ich777 said: I don't think that this is a firmware issue from the VMs... I already saw your posts and waited for your post here... I'm not too sure what the exact issue here is because I don't have any suitable hardware to test the SR-IOV plugin. Maybe @SimonF has a clue. @WobbleBobble2 I see this in the log. Feb 19 15:04:32 HAL9000 kernel: i915 0000:00:02.0: Enabled 2 VFs Feb 19 15:04:33 HAL9000 kernel: i915 0000:00:02.1: [drm] *ERROR* tlb invalidation response timed out for seqno 23 Not sure what may cause, how much memory do you have allocated in bios to igpu? Quote Link to comment
WobbleBobble2 Posted February 20 Share Posted February 20 (edited) 1 hour ago, SimonF said: @WobbleBobble2 I see this in the log. Feb 19 15:04:32 HAL9000 kernel: i915 0000:00:02.0: Enabled 2 VFs Feb 19 15:04:33 HAL9000 kernel: i915 0000:00:02.1: [drm] *ERROR* tlb invalidation response timed out for seqno 23 Not sure what may cause, how much memory do you have allocated in bios to igpu? Thanks so much for taking a look at this! I just checked BIOS and I had memory allocated to iGPU set to "Auto." I just changed it to the maximum allowed, which is 1024mb, but no joy. Same errors (see way below for the VM log errors). However, investigating my unraid log following your lead, it seems the VM is incorrectly attempting to use VF1 (02.0) despite me setting it to VF2 in (00:02.2) VM settings (see attached image). Here are what I think are the relevant Unraid logs starting from when I started the VM. Diagnostics also attached. Could this be an issue with how I setup the VM originally or a bug in how Unraid selects which VF to use? RELEVANT UNRAID LOGS FROM WHEN I STARTED VM: Feb 20 12:21:09 HAL9000 kernel: virbr0: port 1(vnet1) entered blocking state Feb 20 12:21:09 HAL9000 kernel: virbr0: port 1(vnet1) entered disabled state Feb 20 12:21:09 HAL9000 kernel: device vnet1 entered promiscuous mode Feb 20 12:21:09 HAL9000 kernel: virbr0: port 1(vnet1) entered blocking state Feb 20 12:21:09 HAL9000 kernel: virbr0: port 1(vnet1) entered listening state Feb 20 12:21:11 HAL9000 kernel: i915 0000:00:02.0: VF1 FLR Feb 20 12:21:11 HAL9000 kernel: i915 0000:00:02.0: VF1 FLR Feb 20 12:21:11 HAL9000 kernel: virbr0: port 1(vnet1) entered learning state Feb 20 12:21:12 HAL9000 kernel: kvm: vcpu 1: requested 180228 ns lapic timer period limited to 200000 ns Feb 20 12:21:12 HAL9000 kernel: kvm: vcpu 3: requested 180228 ns lapic timer period limited to 200000 ns Feb 20 12:21:12 HAL9000 kernel: kvm: vcpu 2: requested 180228 ns lapic timer period limited to 200000 ns Feb 20 12:21:12 HAL9000 kernel: kvm: vcpu 4: requested 180228 ns lapic timer period limited to 200000 ns Feb 20 12:21:12 HAL9000 kernel: kvm: vcpu 5: requested 180228 ns lapic timer period limited to 200000 ns Feb 20 12:21:12 HAL9000 kernel: kvm: vcpu 6: requested 180228 ns lapic timer period limited to 200000 ns Feb 20 12:21:13 HAL9000 kernel: virbr0: port 1(vnet1) entered forwarding state Feb 20 12:21:13 HAL9000 kernel: virbr0: topology change detected, propagating Feb 20 12:21:25 HAL9000 dnsmasq-dhcp[24945]: DHCPREQUEST(virbr0) 192.168.122.66 52:54:00:73:76:08 Feb 20 12:21:25 HAL9000 dnsmasq-dhcp[24945]: DHCPACK(virbr0) 192.168.122.66 52:54:00:73:76:08 DESKTOP-3DODJSO Feb 20 12:21:32 HAL9000 kernel: virbr0: port 1(vnet1) entered disabled state Feb 20 12:21:32 HAL9000 kernel: device vnet1 left promiscuous mode Feb 20 12:21:32 HAL9000 kernel: virbr0: port 1(vnet1) entered disabled state Feb 20 12:21:32 HAL9000 kernel: i915 0000:00:02.0: VF1 FLR Feb 20 12:21:56 HAL9000 kernel: virbr0: port 1(vnet2) entered blocking state Feb 20 12:21:56 HAL9000 kernel: virbr0: port 1(vnet2) entered disabled state Feb 20 12:21:56 HAL9000 kernel: device vnet2 entered promiscuous mode Feb 20 12:21:56 HAL9000 kernel: virbr0: port 1(vnet2) entered blocking state Feb 20 12:21:56 HAL9000 kernel: virbr0: port 1(vnet2) entered listening state Feb 20 12:21:58 HAL9000 kernel: i915 0000:00:02.0: VF2 FLR Feb 20 12:21:58 HAL9000 kernel: i915 0000:00:02.0: VF2 FLR Feb 20 12:21:59 HAL9000 kernel: virbr0: port 1(vnet2) entered learning state Feb 20 12:22:01 HAL9000 kernel: virbr0: port 1(vnet2) entered forwarding state Feb 20 12:22:01 HAL9000 kernel: virbr0: topology change detected, propagating Feb 20 12:22:13 HAL9000 dnsmasq-dhcp[24945]: DHCPDISCOVER(virbr0) 192.168.122.66 52:54:00:73:76:08 Feb 20 12:22:13 HAL9000 dnsmasq-dhcp[24945]: DHCPOFFER(virbr0) 192.168.122.66 52:54:00:73:76:08 Feb 20 12:22:13 HAL9000 dnsmasq-dhcp[24945]: DHCPREQUEST(virbr0) 192.168.122.66 52:54:00:73:76:08 Feb 20 12:22:13 HAL9000 dnsmasq-dhcp[24945]: DHCPACK(virbr0) 192.168.122.66 52:54:00:73:76:08 DESKTOP-3DODJSO Feb 20 12:24:05 HAL9000 kernel: x86/split lock detection: #AC: CPU 0/KVM/10686 took a split_lock trap at address: 0xfffff8022da42fb3 VM LOGS WITH SAME ERROR AS BEFORE: text error warn system array login 2024-02-20 20:13:29.205+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-1-Windows 10' \ XDG_DATA_HOME='/var/lib/libvirt/qemu/domain-1-Windows 10/.local/share' \ XDG_CACHE_HOME='/var/lib/libvirt/qemu/domain-1-Windows 10/.cache' \ XDG_CONFIG_HOME='/var/lib/libvirt/qemu/domain-1-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-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/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-20T20:13:31.598676Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-02-20T20:13:31.598726Z qemu-system-x86_64: vfio_dma_map(0x1533b5448800, 0x381000000000, 0x20000000, 0x153393200000) = -2 (No such file or directory) 2024-02-20T20:13:31.649529Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-02-20T20:13:31.649545Z qemu-system-x86_64: vfio_dma_map(0x1533b5448800, 0x381000000000, 0x20000000, 0x153393200000) = -22 (Invalid argument) 2024-02-20T20:13:36.144856Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-02-20T20:13:36.144938Z qemu-system-x86_64: vfio_dma_map(0x1533b5448800, 0x381000000000, 0x20000000, 0x153393200000) = -22 (Invalid argument) 2024-02-20T20:13:36.197494Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-02-20T20:13:36.197533Z qemu-system-x86_64: vfio_dma_map(0x1533b5448800, 0x381000000000, 0x20000000, 0x153393200000) = -22 (Invalid argument) 2024-02-20T20:13:36.252206Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-02-20T20:13:36.252249Z qemu-system-x86_64: vfio_dma_map(0x1533b5448800, 0x381000000000, 0x20000000, 0x153393200000) = -22 (Invalid argument) 2024-02-20T20:13:36.283888Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-02-20T20:13:36.283912Z qemu-system-x86_64: vfio_dma_map(0x1533b5448800, 0x381000000000, 0x20000000, 0x153393200000) = -22 (Invalid argument) 2024-02-20T20:13:38.413536Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-02-20T20:13:38.413555Z qemu-system-x86_64: vfio_dma_map(0x1533b5448800, 0x381000000000, 0x20000000, 0x153393200000) = -22 (Invalid argument) hal9000-diagnostics-20240220-1224.zip Edited February 20 by WobbleBobble2 Quote Link to comment
WobbleBobble2 Posted February 20 Share Posted February 20 2 hours ago, ich777 said: I don't think that this is a firmware issue from the VMs... I already saw your posts and waited for your post here... I'm not too sure what the exact issue here is because I don't have any suitable hardware to test the SR-IOV plugin. Maybe @SimonF has a clue. No worries - thanks for helping with this! 1 Quote Link to comment
SimonF Posted February 20 Share Posted February 20 23 minutes ago, WobbleBobble2 said: Thanks so much for taking a look at this! I just checked BIOS and I had memory allocated to iGPU set to "Auto." I just changed it to the maximum allowed, which is 1024mb, but no joy. Same errors (see way below for the VM log errors). However, investigating my unraid log following your lead, it seems the VM is incorrectly attempting to use VF1 (02.0) despite me setting it to VF2 in (00:02.2) VM settings (see attached image). Here are what I think are the relevant Unraid logs starting from when I started the VM. Diagnostics also attached. Could this be an issue with how I setup the VM originally or a bug in how Unraid selects which VF to use? RELEVANT UNRAID LOGS FROM WHEN I STARTED VM: Feb 20 12:21:09 HAL9000 kernel: virbr0: port 1(vnet1) entered blocking state Feb 20 12:21:09 HAL9000 kernel: virbr0: port 1(vnet1) entered disabled state Feb 20 12:21:09 HAL9000 kernel: device vnet1 entered promiscuous mode Feb 20 12:21:09 HAL9000 kernel: virbr0: port 1(vnet1) entered blocking state Feb 20 12:21:09 HAL9000 kernel: virbr0: port 1(vnet1) entered listening state Feb 20 12:21:11 HAL9000 kernel: i915 0000:00:02.0: VF1 FLR Feb 20 12:21:11 HAL9000 kernel: i915 0000:00:02.0: VF1 FLR Feb 20 12:21:11 HAL9000 kernel: virbr0: port 1(vnet1) entered learning state Feb 20 12:21:12 HAL9000 kernel: kvm: vcpu 1: requested 180228 ns lapic timer period limited to 200000 ns Feb 20 12:21:12 HAL9000 kernel: kvm: vcpu 3: requested 180228 ns lapic timer period limited to 200000 ns Feb 20 12:21:12 HAL9000 kernel: kvm: vcpu 2: requested 180228 ns lapic timer period limited to 200000 ns Feb 20 12:21:12 HAL9000 kernel: kvm: vcpu 4: requested 180228 ns lapic timer period limited to 200000 ns Feb 20 12:21:12 HAL9000 kernel: kvm: vcpu 5: requested 180228 ns lapic timer period limited to 200000 ns Feb 20 12:21:12 HAL9000 kernel: kvm: vcpu 6: requested 180228 ns lapic timer period limited to 200000 ns Feb 20 12:21:13 HAL9000 kernel: virbr0: port 1(vnet1) entered forwarding state Feb 20 12:21:13 HAL9000 kernel: virbr0: topology change detected, propagating Feb 20 12:21:25 HAL9000 dnsmasq-dhcp[24945]: DHCPREQUEST(virbr0) 192.168.122.66 52:54:00:73:76:08 Feb 20 12:21:25 HAL9000 dnsmasq-dhcp[24945]: DHCPACK(virbr0) 192.168.122.66 52:54:00:73:76:08 DESKTOP-3DODJSO Feb 20 12:21:32 HAL9000 kernel: virbr0: port 1(vnet1) entered disabled state Feb 20 12:21:32 HAL9000 kernel: device vnet1 left promiscuous mode Feb 20 12:21:32 HAL9000 kernel: virbr0: port 1(vnet1) entered disabled state Feb 20 12:21:32 HAL9000 kernel: i915 0000:00:02.0: VF1 FLR Feb 20 12:21:56 HAL9000 kernel: virbr0: port 1(vnet2) entered blocking state Feb 20 12:21:56 HAL9000 kernel: virbr0: port 1(vnet2) entered disabled state Feb 20 12:21:56 HAL9000 kernel: device vnet2 entered promiscuous mode Feb 20 12:21:56 HAL9000 kernel: virbr0: port 1(vnet2) entered blocking state Feb 20 12:21:56 HAL9000 kernel: virbr0: port 1(vnet2) entered listening state Feb 20 12:21:58 HAL9000 kernel: i915 0000:00:02.0: VF2 FLR Feb 20 12:21:58 HAL9000 kernel: i915 0000:00:02.0: VF2 FLR Feb 20 12:21:59 HAL9000 kernel: virbr0: port 1(vnet2) entered learning state Feb 20 12:22:01 HAL9000 kernel: virbr0: port 1(vnet2) entered forwarding state Feb 20 12:22:01 HAL9000 kernel: virbr0: topology change detected, propagating Feb 20 12:22:13 HAL9000 dnsmasq-dhcp[24945]: DHCPDISCOVER(virbr0) 192.168.122.66 52:54:00:73:76:08 Feb 20 12:22:13 HAL9000 dnsmasq-dhcp[24945]: DHCPOFFER(virbr0) 192.168.122.66 52:54:00:73:76:08 Feb 20 12:22:13 HAL9000 dnsmasq-dhcp[24945]: DHCPREQUEST(virbr0) 192.168.122.66 52:54:00:73:76:08 Feb 20 12:22:13 HAL9000 dnsmasq-dhcp[24945]: DHCPACK(virbr0) 192.168.122.66 52:54:00:73:76:08 DESKTOP-3DODJSO Feb 20 12:24:05 HAL9000 kernel: x86/split lock detection: #AC: CPU 0/KVM/10686 took a split_lock trap at address: 0xfffff8022da42fb3 VM LOGS WITH SAME ERROR AS BEFORE: text error warn system array login 2024-02-20 20:13:29.205+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-1-Windows 10' \ XDG_DATA_HOME='/var/lib/libvirt/qemu/domain-1-Windows 10/.local/share' \ XDG_CACHE_HOME='/var/lib/libvirt/qemu/domain-1-Windows 10/.cache' \ XDG_CONFIG_HOME='/var/lib/libvirt/qemu/domain-1-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-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/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-20T20:13:31.598676Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-02-20T20:13:31.598726Z qemu-system-x86_64: vfio_dma_map(0x1533b5448800, 0x381000000000, 0x20000000, 0x153393200000) = -2 (No such file or directory) 2024-02-20T20:13:31.649529Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-02-20T20:13:31.649545Z qemu-system-x86_64: vfio_dma_map(0x1533b5448800, 0x381000000000, 0x20000000, 0x153393200000) = -22 (Invalid argument) 2024-02-20T20:13:36.144856Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-02-20T20:13:36.144938Z qemu-system-x86_64: vfio_dma_map(0x1533b5448800, 0x381000000000, 0x20000000, 0x153393200000) = -22 (Invalid argument) 2024-02-20T20:13:36.197494Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-02-20T20:13:36.197533Z qemu-system-x86_64: vfio_dma_map(0x1533b5448800, 0x381000000000, 0x20000000, 0x153393200000) = -22 (Invalid argument) 2024-02-20T20:13:36.252206Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-02-20T20:13:36.252249Z qemu-system-x86_64: vfio_dma_map(0x1533b5448800, 0x381000000000, 0x20000000, 0x153393200000) = -22 (Invalid argument) 2024-02-20T20:13:36.283888Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-02-20T20:13:36.283912Z qemu-system-x86_64: vfio_dma_map(0x1533b5448800, 0x381000000000, 0x20000000, 0x153393200000) = -22 (Invalid argument) 2024-02-20T20:13:38.413536Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-02-20T20:13:38.413555Z qemu-system-x86_64: vfio_dma_map(0x1533b5448800, 0x381000000000, 0x20000000, 0x153393200000) = -22 (Invalid argument) hal9000-diagnostics-20240220-1224.zip 159.03 kB · 0 downloads Looking at your XML, it looks correct. <hostdev mode="subsystem" type="pci" managed="yes"> <driver name="vfio"/> <source> <address domain="0x0000" bus="0x00" slot="0x02" function="0x2"/> </source> <address type="pci" domain="0x0000" bus="0x06" slot="0x10" function="0x0"/> </hostdev> <memballoon model="none"/> </devices> also using the correct lines in the qemu command. But looks like it is missing a find, Have you raised an issue on github for the dev. I don't enough about the srvio process. -device '{"driver":"vfio-pci","host":"0000:00:02.2","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-20T20:21:59.338500Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-02-20T20:21:59.338541Z qemu-system-x86_64: vfio_dma_map(0x14c496248800, 0x381800000000, 0x20000000, 0x14c474000000) = -2 (No such file or directory) Quote Link to comment
giganode Posted February 20 Share Posted February 20 31 minutes ago, WobbleBobble2 said: Thanks so much for taking a look at this! I just checked BIOS and I had memory allocated to iGPU set to "Auto." I just changed it to the maximum allowed, which is 1024mb, but no joy. Same errors (see way below for the VM log errors). However, investigating my unraid log following your lead, it seems the VM is incorrectly attempting to use VF1 (02.0) despite me setting it to VF2 in (00:02.2) VM settings (see attached image). What makes you think it uses 02.0 instead of 02.1 or 02.1? Have you tried waiting for a few minutes to see if the vm comes up? Quote Link to comment
giganode Posted February 20 Share Posted February 20 (edited) 36 minutes ago, WobbleBobble2 said: No worries - thanks for helping with this! Do you have the VFs bound to vfio? If yes, unbind them and reboot. At best, unbind everything unless absolutely necessary. Edited February 20 by giganode Quote Link to comment
WobbleBobble2 Posted February 20 Share Posted February 20 1 hour ago, SimonF said: But looks like it is missing a find, Have you raised an issue on github for the dev. Thanks so much again for helping! The dev just replied here! 1 hour ago, giganode said: Do you have the VFs bound to vfio? If yes, unbind them and reboot. At best, unbind everything unless absolutely necessary. Yes they are bound to VFIO at boot. I thought I needed to do that to passthrough the iGPU but I guess not. Ok I just unbound both of them and rebooted, but unfortunately exact same behavior. I've attached the VM logs below and updated diagnostics. text error warn system array login 2024-02-20 22:30:23.339+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-1-Windows 10' \ XDG_DATA_HOME='/var/lib/libvirt/qemu/domain-1-Windows 10/.local/share' \ XDG_CACHE_HOME='/var/lib/libvirt/qemu/domain-1-Windows 10/.cache' \ XDG_CONFIG_HOME='/var/lib/libvirt/qemu/domain-1-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-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/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":"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"}' \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \ -msg timestamp=on char device redirected to /dev/pts/0 (label charserial0) 2024-02-20T22:30:25.723211Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-02-20T22:30:25.723258Z qemu-system-x86_64: vfio_dma_map(0x14a2a4c48800, 0x381800000000, 0x20000000, 0x14a282a00000) = -2 (No such file or directory) 2024-02-20T22:30:25.778823Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-02-20T22:30:25.778839Z qemu-system-x86_64: vfio_dma_map(0x14a2a4c48800, 0x381800000000, 0x20000000, 0x14a282a00000) = -22 (Invalid argument) 2024-02-20T22:30:27.473292Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-02-20T22:30:27.473349Z qemu-system-x86_64: vfio_dma_map(0x14a2a4c48800, 0x381800000000, 0x20000000, 0x14a282a00000) = -22 (Invalid argument) 2024-02-20T22:30:27.517960Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-02-20T22:30:27.518004Z qemu-system-x86_64: vfio_dma_map(0x14a2a4c48800, 0x381800000000, 0x20000000, 0x14a282a00000) = -22 (Invalid argument) 2024-02-20T22:30:27.591884Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-02-20T22:30:27.591939Z qemu-system-x86_64: vfio_dma_map(0x14a2a4c48800, 0x381800000000, 0x20000000, 0x14a282a00000) = -22 (Invalid argument) 2024-02-20T22:30:27.644339Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-02-20T22:30:27.644361Z qemu-system-x86_64: vfio_dma_map(0x14a2a4c48800, 0x381800000000, 0x20000000, 0x14a282a00000) = -22 (Invalid argument) 2024-02-20T22:30:29.429010Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-02-20T22:30:29.429040Z qemu-system-x86_64: vfio_dma_map(0x14a2a4c48800, 0x381800000000, 0x20000000, 0x14a282a00000) = -22 (Invalid argument) 1 hour ago, giganode said: What makes you think it uses 02.0 instead of 02.1 or 02.1? Have you tried waiting for a few minutes to see if the vm comes up? I'm just referring to the following lines from the Unraid Logs. I'm not a dev and have very little linux experience so my interpretation could be totally wrong, but I saw references to 02.0 but not 02.1 or 02.2: Feb 20 12:21:32 HAL9000 kernel: i915 0000:00:02.0: VF1 FLR Feb 20 12:21:58 HAL9000 kernel: i915 0000:00:02.0: VF2 FLR Feb 20 12:21:58 HAL9000 kernel: i915 0000:00:02.0: VF2 FLR Yes I have tried waiting at least 30 minutes but the VMs never recover. Thank you again for responding here! I was about to post in your support thread but you beat me to it!!! hal9000-diagnostics-20240220-1430.zip Quote Link to comment
SimonF Posted March 13 Share Posted March 13 On 2/10/2024 at 10:27 PM, mackid1993 said: I've been getting these errors for months and have no adverse effects from them minus the errors in the log. My VM is super stable and GPU passthrough works fine. Not sure if you want to test to see if this stops the error? You cannt use limit= on 6.12.8 thou. I have tested my VM runs with the new settings seems to remain persistant. But dont have the error to see if this fixes. https://github.com/tianocore/edk2/discussions/4662 <cpu mode='host-passthrough' check='none' migratable='on'> <topology sockets='1' dies='1' cores='1' threads='2'/> <cache mode='passthrough'/> <maxphysaddr mode='passthrough'/> </cpu> Quote Link to comment
Raider_M Posted March 19 Share Posted March 19 On 3/14/2024 at 5:43 AM, SimonF said: <cpu mode='host-passthrough' check='none' migratable='on'> <topology sockets='1' dies='1' cores='1' threads='2'/> <cache mode='passthrough'/> <maxphysaddr mode='passthrough'/> </cpu> Hey, I have been getting the errors too. I found my way to this thread via the intel-igpu-sr-iov page I still get the errors trying this fix Quote Link to comment
PaulW08 Posted March 26 Share Posted March 26 On 3/19/2024 at 8:03 AM, Raider_M said: Hey, I have been getting the errors too. I found my way to this thread via the intel-igpu-sr-iov page I still get the errors trying this fix On 3/19/2024 at 8:03 AM, Raider_M said: Hey, I have been getting the errors too. I found my way to this thread via the intel-igpu-sr-iov page I still get the errors trying this fix Exact same issue for me. I was passing through an Arc A380 and it was super stable for months. I removed it and am using the intel-igpu-sr-iov plugin and now my machine crashes once a day. Not just the VM but my entire Unraid machine locks up and I have to physically reboot it. May go back to the A380 but was trying to save some watts. Quote Link to comment
auiayuiox Posted April 15 Share Posted April 15 This started happening with my Ubuntu 22.04 VM after I did an apt upgrade (maybe new stuff in linux-firmware?). I pass through the iGPU for access to QuickSync. I can get the VM to boot if I force shut it down and start it up again cold. Quote Link to comment
KoNeko Posted April 21 Share Posted April 21 (edited) I have the same problem. VM always works perfectly. Wanted to start it today and got this error. I have a windows 10 VM with a nvidia GPU pass-thru. But i also removed the GPU from the VM so its VNC only still same problem. I think i have the problem since i updated to the latest unraid 6.12.10 and i also updated the windows 10 VM as i always do. i also run a win11 VM without pass-thru and also no extra gpu-drivers installed but that one still runs. Quote 2024-04-21T10:40:49.176325Z qemu-system-x86_64: vfio: Unable to power on device, stuck in D3 2024-04-21T10:40:49.358317Z qemu-system-x86_64: vfio: Unable to power on device, stuck in D3 2024-04-21T10:40:50.271542Z qemu-system-x86_64: VFIO_MAP_DMA failed: Bad address Edited April 21 by KoNeko Quote Link to comment
sgtn Posted April 27 Share Posted April 27 (edited) Same problem here. My VMs runs fine as long as I'm using a virtual gpu. Tried it with Linux Mint and Win 11. As soon as I want to use my hardware gpus it runs into the same error. Tried it with a Nvidia Quadro P400 and an AMD Radeon Pro VII. Both the same. Here is the log file: text error warn system array login 2024-04-27T18:36:13.684290Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-04-27T18:36:13.684296Z qemu-system-x86_64: vfio_dma_map(0x14dc170fc600, 0x381c00000000, 0x10000000, 0x14d7fd3f0000) = -22 (Invalid argument) 2024-04-27T18:44:08.006008Z qemu-system-x86_64: terminating on signal 15 from pid 15617 (/usr/sbin/libvirtd) 2024-04-27 18:44:08.407+0000: shutting down, reason=destroyed 2024-04-27 18:56:40.657+0000: Starting external device: TPM Emulator /usr/bin/swtpm socket --ctrl 'type=unixio,path=/run/libvirt/qemu/swtpm/7-Windows 11-swtpm.sock,mode=0600' --tpmstate dir=/var/lib/libvirt/swtpm/238c0edb-a29c-5167-a285-78214c7dd87b/tpm2,mode=0600 --log 'file=/var/log/swtpm/libvirt/qemu/Windows 11-swtpm.log' --terminate --tpm2 2024-04-27 18:56:40.683+0000: starting up libvirt version: 8.7.0, qemu version: 7.2.0, kernel: 6.1.82-Unraid, hostname: sgtnunraid LC_ALL=C \ PATH=/bin:/sbin:/usr/bin:/usr/sbin \ HOME='/var/lib/libvirt/qemu/domain-7-Windows 11' \ XDG_DATA_HOME='/var/lib/libvirt/qemu/domain-7-Windows 11/.local/share' \ XDG_CACHE_HOME='/var/lib/libvirt/qemu/domain-7-Windows 11/.cache' \ XDG_CONFIG_HOME='/var/lib/libvirt/qemu/domain-7-Windows 11/.config' \ /usr/local/sbin/qemu \ -name 'guest=Windows 11,debug-threads=on' \ -S \ -object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain-7-Windows 11/master-key.aes"}' \ -blockdev '{"driver":"file","filename":"/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi-tpm.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/238c0edb-a29c-5167-a285-78214c7dd87b_VARS-pure-efi-tpm.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-q35-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 238c0edb-a29c-5167-a285-78214c7dd87b \ -no-user-config \ -nodefaults \ -chardev socket,id=charmonitor,fd=43,server=on,wait=off \ -mon chardev=charmonitor,id=monitor,mode=control \ -rtc base=localtime \ -no-hpet \ -no-shutdown \ -boot strict=on \ -device '{"driver":"pcie-root-port","port":16,"chassis":1,"id":"pci.1","bus":"pcie.0","multifunction":true,"addr":"0x2"}' \ -device '{"driver":"pcie-root-port","port":17,"chassis":2,"id":"pci.2","bus":"pcie.0","addr":"0x2.0x1"}' \ -device '{"driver":"pcie-root-port","port":18,"chassis":3,"id":"pci.3","bus":"pcie.0","addr":"0x2.0x2"}' \ -device '{"driver":"pcie-root-port","port":19,"chassis":4,"id":"pci.4","bus":"pcie.0","addr":"0x2.0x3"}' \ -device '{"driver":"pcie-root-port","port":20,"chassis":5,"id":"pci.5","bus":"pcie.0","addr":"0x2.0x4"}' \ -device '{"driver":"pcie-root-port","port":21,"chassis":6,"id":"pci.6","bus":"pcie.0","addr":"0x2.0x5"}' \ -device '{"driver":"pcie-pci-bridge","id":"pci.7","bus":"pci.1","addr":"0x0"}' \ -device '{"driver":"ich9-usb-ehci1","id":"usb","bus":"pcie.0","addr":"0x7.0x7"}' \ -device '{"driver":"ich9-usb-uhci1","masterbus":"usb.0","firstport":0,"bus":"pcie.0","multifunction":true,"addr":"0x7"}' \ -device '{"driver":"ich9-usb-uhci2","masterbus":"usb.0","firstport":2,"bus":"pcie.0","addr":"0x7.0x1"}' \ -device '{"driver":"ich9-usb-uhci3","masterbus":"usb.0","firstport":4,"bus":"pcie.0","addr":"0x7.0x2"}' \ -device '{"driver":"virtio-serial-pci","id":"virtio-serial0","bus":"pci.2","addr":"0x0"}' \ -blockdev '{"driver":"file","filename":"/mnt/user/domains/Windows 11/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.3","addr":"0x0","drive":"libvirt-3-format","id":"virtio-disk2","bootindex":1,"write-cache":"on","serial":"vdisk1"}' \ -blockdev '{"driver":"file","filename":"/mnt/user/isos/Windows11.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":"ide.0","drive":"libvirt-2-format","id":"sata0-0-0","bootindex":2}' \ -blockdev '{"driver":"file","filename":"/mnt/user/isos/virtio-win-0.1.248-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":"ide.1","drive":"libvirt-1-format","id":"sata0-0-1"}' \ -netdev tap,fd=44,id=hostnet0 \ -device '{"driver":"e1000","netdev":"hostnet0","id":"net0","mac":"52:54:00:3b:bc:34","bus":"pci.7","addr":"0x1"}' \ -chardev pty,id=charserial0 \ -device '{"driver":"isa-serial","chardev":"charserial0","id":"serial0","index":0}' \ -chardev socket,id=charchannel0,fd=41,server=on,wait=off \ -device '{"driver":"virtserialport","bus":"virtio-serial0.0","nr":1,"chardev":"charchannel0","id":"channel0","name":"org.qemu.guest_agent.0"}' \ -chardev 'socket,id=chrtpm,path=/run/libvirt/qemu/swtpm/7-Windows 11-swtpm.sock' \ -tpmdev emulator,id=tpm-tpm0,chardev=chrtpm \ -device '{"driver":"tpm-tis","tpmdev":"tpm-tpm0","id":"tpm0"}' \ -device '{"driver":"usb-tablet","id":"input0","bus":"usb.0","port":"1"}' \ -audiodev '{"id":"audio1","driver":"none"}' \ -vnc 0.0.0.0:2,websocket=5702,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":"pcie.0","addr":"0x1"}' \ -device '{"driver":"vfio-pci","host":"0000:03:00.0","id":"hostdev0","bus":"pci.4","addr":"0x0"}' \ -device '{"driver":"vfio-pci","host":"0000:03:00.1","id":"hostdev1","bus":"pci.5","addr":"0x0"}' \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \ -msg timestamp=on char device redirected to /dev/pts/4 (label charserial0) qxl_send_events: spice-server bug: guest stopped, ignoring 2024-04-27T18:56:42.808272Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-04-27T18:56:42.808314Z qemu-system-x86_64: vfio_dma_map(0x14c2dbcfc600, 0x381800000000, 0x400000000, 0x14bed2000000) = -2 (No such file or directory) 2024-04-27T18:56:42.809994Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-04-27T18:56:42.810000Z qemu-system-x86_64: vfio_dma_map(0x14c2dbcfc600, 0x381c00000000, 0x10000000, 0x14bec2000000) = -22 (Invalid argument) 2024-04-27T18:56:42.979266Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-04-27T18:56:42.979279Z qemu-system-x86_64: vfio_dma_map(0x14c2dbcfc600, 0x381800000000, 0x400000000, 0x14bed2000000) = -22 (Invalid argument) 2024-04-27T18:56:42.981030Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-04-27T18:56:42.981036Z qemu-system-x86_64: vfio_dma_map(0x14c2dbcfc600, 0x381c00000000, 0x10000000, 0x14bec2000000) = -22 (Invalid argument) 2024-04-27T18:56:43.008906Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-04-27T18:56:43.008918Z qemu-system-x86_64: vfio_dma_map(0x14c2dbcfc600, 0x381800000000, 0x400000000, 0x14bed2000000) = -22 (Invalid argument) 2024-04-27T18:56:43.010623Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-04-27T18:56:43.010629Z qemu-system-x86_64: vfio_dma_map(0x14c2dbcfc600, 0x381c00000000, 0x10000000, 0x14bec2000000) = -22 (Invalid argument) And here is my Diagnostics, too. I would be very grateful for any help! diagnostics.zip Edited April 27 by sgtn Quote Link to comment
KoNeko Posted April 28 Share Posted April 28 On 4/21/2024 at 12:37 PM, KoNeko said: I have the same problem. VM always works perfectly. Wanted to start it today and got this error. I have a windows 10 VM with a nvidia GPU pass-thru. But i also removed the GPU from the VM so its VNC only still same problem. I think i have the problem since i updated to the latest unraid 6.12.10 and i also updated the windows 10 VM as i always do. i also run a win11 VM without pass-thru and also no extra gpu-drivers installed but that one still runs. mine got solved. at least i can start the VM again. I updated the Nvidia driver on my unraid and restarted the server. I also changed the machine to Q35 not sure if that last one helped. But after it got back up i could start my VM again. Quote Link to comment
bianmi Posted May 8 Share Posted May 8 I have the same problem, unraid 6.12.10, windows 11 VM with pass-thru a nvidia RTX 4070Ti, M.2 SSD, and a USB controller. The VM runs ok, except must force-stop. 2024-05-07 15:14:52.138+0000: starting up libvirt version: 8.7.0, qemu version: 7.2.0, kernel: 6.1.79-Unraid, hostname: Unraid LC_ALL=C \ PATH=/bin:/sbin:/usr/bin:/usr/sbin \ HOME=/var/lib/libvirt/qemu/domain-10-Win11_GPU \ XDG_DATA_HOME=/var/lib/libvirt/qemu/domain-10-Win11_GPU/.local/share \ XDG_CACHE_HOME=/var/lib/libvirt/qemu/domain-10-Win11_GPU/.cache \ XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain-10-Win11_GPU/.config \ /usr/local/sbin/qemu \ -name guest=Win11_GPU,debug-threads=on \ -S \ -object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain-10-Win11_GPU/master-key.aes"}' \ -blockdev '{"driver":"file","filename":"/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi-tpm.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/2eb907d3-7753-8604-a63b-3da6af734374_VARS-pure-efi-tpm.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,host-cache-info=on,l3-cache=off \ -m 49152 \ -object '{"qom-type":"memory-backend-ram","id":"pc.ram","size":51539607552}' \ -overcommit mem-lock=off \ -smp 12,sockets=1,dies=1,cores=6,threads=2 \ -uuid 2eb907d3-7753-8604-a63b-3da6af734374 \ -display none \ -no-user-config \ -nodefaults \ -chardev socket,id=charmonitor,fd=36,server=on,wait=off \ -mon chardev=charmonitor,id=monitor,mode=control \ -rtc base=localtime,driftfix=slew \ -global kvm-pit.lost_tick_policy=delay \ -no-hpet \ -no-shutdown \ -boot strict=on \ -device '{"driver":"qemu-xhci","p2":15,"p3":15,"id":"usb","bus":"pci.0","addr":"0x7"}' \ -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/isos/win11.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/domains/virtio-win-0.1.248-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=37,id=hostnet0 \ -device '{"driver":"virtio-net","netdev":"hostnet0","id":"net0","mac":"52:54:00:50:a2:00","bus":"pci.0","addr":"0x2"}' \ -chardev pty,id=charserial0 \ -device '{"driver":"isa-serial","chardev":"charserial0","id":"serial0","index":0}' \ -chardev socket,id=charchannel0,fd=35,server=on,wait=off \ -device '{"driver":"virtserialport","bus":"virtio-serial0.0","nr":1,"chardev":"charchannel0","id":"channel0","name":"org.qemu.guest_agent.0"}' \ -chardev socket,id=chrtpm,path=/run/libvirt/qemu/swtpm/10-Win11_GPU-swtpm.sock \ -tpmdev emulator,id=tpm-tpm0,chardev=chrtpm \ -device '{"driver":"tpm-tis","tpmdev":"tpm-tpm0","id":"tpm0"}' \ -device '{"driver":"usb-tablet","id":"input0","bus":"usb.0","port":"2"}' \ -audiodev '{"id":"audio1","driver":"none"}' \ -device '{"driver":"vfio-pci","host":"0000:01:00.0","id":"hostdev0","bus":"pci.0","addr":"0x3","romfile":"/mnt/cache/domains/RTX4070Ti_patched.rom"}' \ -device '{"driver":"vfio-pci","host":"0000:01:00.1","id":"hostdev1","bus":"pci.0","addr":"0x6"}' \ -device '{"driver":"vfio-pci","host":"0000:02:00.0","id":"hostdev2","bootindex":1,"bus":"pci.0","addr":"0x8"}' \ -device '{"driver":"vfio-pci","host":"0000:05:00.0","id":"hostdev3","bus":"pci.0","addr":"0x9"}' \ -device '{"driver":"usb-host","hostdevice":"/dev/bus/usb/001/003","id":"hostdev4","bus":"usb.0","port":"1"}' \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \ -msg timestamp=on char device redirected to /dev/pts/0 (label charserial0) 2024-05-07T15:15:00.263790Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-05-07T15:15:00.263827Z qemu-system-x86_64: vfio_dma_map(0x146231aa2000, 0x380000000000, 0x400000000, 0x145e30400000) = -2 (No such file or directory) 2024-05-07T15:15:00.265299Z qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument 2024-05-07T15:15:00.265304Z qemu-system-x86_64: vfio_dma_map(0x146231aa2000, 0x380400000000, 0x2000000, 0x145e2da00000) = -22 (Invalid argument) ...... Quote Link to comment
bianmi Posted May 8 Share Posted May 8 with google, I found this link: https://forum.proxmox.com/threads/vfio_map_dma-failed-invalid-argument.125888/ maybe need kernel upgrade? Quote Link to comment
KoNeko Posted May 24 Share Posted May 24 I had the same problem again. it seems after i stop my VM and try to start it again. it gives that error. When i restart my whole server. the VM works again as long as it keeps running. Quote Link to comment
yins Posted Monday at 02:39 PM Share Posted Monday at 02:39 PM (edited) so do I.my cpu is 13500t,asrock b760m,i can see the error log(qemu-system-x86_64: VFIO_MAP_DMA failed: Invalid argument) when i started my dsm and windows vm,but the vm could work with the error.But i can feel the ui of my unraid become slow,and could be crashes sometimes。 Edited Monday at 02:40 PM by yins wrong words Quote Link to comment
Recommended Posts
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.