Unable to find IVSHMEM device, terminating service

Hi,
I’ve been following the installation instructions , but I guess I messed up something because i get the subject error in the host log file. the host app exits immediately upon running.
In the windows device manager I see a “IVSHMEM device” under “System devices”. when I try to update the driver with the driver in the host app folder windows says that I already have the latest version of the driver installed.
Any idea why the host app cannot find the driver?
Thanks

the log:
![log|688x550](upload://hrDlzKXA5irfN4EQ6hGhF07wkHT.png)
or here:
 http://paste.c-net.org/BrooksDossier

Failed to find the IVSHMEM device - #2 by Netboy3 try this topic.
hopefully the links in it will help.

1 Like

If you installed version B6, which is the currently stable version, the installer will also install the IVSHMEM driver so there’s no need to separately install it. The later entries on the service log you posted (after 4:53) indicate the service starts successfully. If you need further assistance, please post the host application log (not the service log). Please post the full log in text format, not screen captures.

Thank you guys for your help.
I’m using the B6 version.
I’m attaching both log files in text format.
suddenly I cant post links. please add “://” “.” and “/”:
https pastebin com uE4FFkVi
https pastebin com CD2hEwHT
Thank you!

Pasting the logs here:

[2023-07-07 09:34:25] Startup
[2023-07-07 09:34:25] Unable to find the IVSHMEM device, terminating the service
[2023-07[2023-07-07 09:48:48] Startup
[2023-07-07 09:48:48] Unable to find the IVSHMEM device, terminating the service
[2023-07-[2023-07-07 16:28:29] Startup
[2023-07-07 16:28:29] Unable to find the IVSHMEM device, terminating the service
[2023-07-07 16:53:12] Startup
[2023-07-07 16:53:18] Host application exited with code 0x40
[2023-07-07 16:53:18] Host application failed to start 1 times, waiting 1000 ms...
[2023-07-07 16:53:21] Host application exited with code 0x40
[2023-07-07 16:53:21] Host application failed to start 2 times, waiting 2000 ms...
[2023-07-07 16:53:25] Host application exited with code 0x40
[2023-07-07 16:53:25] Host application failed to start 3 times, waiting 4000 ms...
[2023-07-07 16:53:31] Host application exited with code 0x40
[2023-07-07 16:53:31] Host application failed to start 4 times, waiting 8000 ms...
[2023-07-07 16:53:41] Host application exited with code 0x40
[2023-07-07 16:53:41] Host application failed to start 5 times, waiting 16000 ms...
[2023-07-07 16:53:59] Host application exited with code 0x40
[2023-07-07 16:53:59] Host application failed to start 5 times; will not restart
[2023-07-07 16:53:59] Finished

[I] 1316219222 time.c:85 | windowsSetTimerResolution | System timer resolution: 488.2 μs
[W] 1316221859 platform.c:500 | boostPriority | Failed to set realtime GPU priority.
[I] 1316222935 platform.c:501 | boostPriority | This is not a failure, please do not report this as an issue.
[I] 1316224168 platform.c:502 | boostPriority | To fix this, install and run the Looking Glass host as a service.
[I] 1316225386 platform.c:503 | boostPriority | looking-glass-host.exe InstallService
[I] 1316226378 app.c:771 | app_main | Looking Glass Host (B6)
[I] 1316226769 cpuinfo.c:37 | lgDebugCPU | CPU Model: AMD Ryzen 7 5800H with Radeon Graphics
[I] 1316227168 cpuinfo.c:38 | lgDebugCPU | CPU: 1 sockets, 4 cores, 4 threads
[E] 1316228619 vector.c:120 | vector_ptrTo | Assertion failed: index < vector->size && “Out of bounds access”
1316229239 [E] ivshmem.c:149 | ivshmemInit | SetupDiEnumDeviceInterfaces failed: 0x00000057 (The parameter is incorrect.)
[E] 1316229798 app.c:777 | app_main | Failed to find the IVSHMEM device
[I] 1778053884 time.c:85 | windowsSetTimerResolution | System timer resolution: 488.2 μs
[I] 1778063746 app.c:771 | app_main | Looking Glass Host (B6)
[I] 1778064220 cpuinfo.c:37 | lgDebugCPU | CPU Model: AMD Ryzen 7 5800H with Radeon Graphics
[I] 1778064664 cpuinfo.c:38 | lgDebugCPU | CPU: 1 sockets, 4 cores, 4 threads
[I] 1778066225 ivshmem.c:132 | ivshmemInit | IVSHMEM 0* on bus 0x1, device 0x1, function 0x0
[I] 1778069862 app.c:788 | app_main | IVSHMEM Size : 32 MiB
[I] 1778070284 app.c:789 | app_main | IVSHMEM Address : 0x2C00000
[I] 1778070637 app.c:790 | app_main | Max Pointer Size : 1024 KiB
[I] 1778070989 app.c:791 | app_main | KVMFR Version : 19
[I] 1778071345 app.c:809 | app_main | Trying : DXGI
[I] 1778074701 dxgi.c:319 | dxgi_init | Not using unsupported adapter: Microsoft Basic Render Driver
[I] 1778075217 dxgi.c:319 | dxgi_init | Not using unsupported adapter: Microsoft Basic Render Driver
[E] 1778075653 dxgi.c:384 | dxgi_init | Failed to locate a valid output device
[I] 1778076055 app.c:809 | app_main | Trying : NVFBC
[I] 1778119287 wrapper.cpp:90 | NvFBCInit | NvFBC SDK Version: 112
[E] 1784928451 app.c:829 | app_main | Failed to find a supported capture interface
[I] 1784930923 app.c:982 | app_main | Host application exited
[I] 1786164398 time.c:85 | windowsSetTimerResolution | System timer resolution: 488.2 μs
[I] 1786164911 app.c:771 | app_main | Looking Glass Host (B6)
[I] 1786165313 cpuinfo.c:37 | lgDebugCPU | CPU Model: AMD Ryzen 7 5800H with Radeon Graphics
[I] 1786165708 cpuinfo.c:38 | lgDebugCPU | CPU: 1 sockets, 4 cores, 4 threads
[I] 1786167102 ivshmem.c:132 | ivshmemInit | IVSHMEM 0* on bus 0x1, device 0x1, function 0x0
[I] 1786170102 app.c:788 | app_main | IVSHMEM Size : 32 MiB
[I] 1786170420 app.c:789 | app_main | IVSHMEM Address : 0x2CB0000
[I] 1786170827 app.c:790 | app_main | Max Pointer Size : 1024 KiB
[I] 1786171140 app.c:791 | app_main | KVMFR Version : 19
[I] 1786171499 app.c:809 | app_main | Trying : DXGI
[I] 1786174866 dxgi.c:319 | dxgi_init | Not using unsupported adapter: Microsoft Basic Render Driver
[I] 1786175502 dxgi.c:319 | dxgi_init | Not using unsupported adapter: Microsoft Basic Render Driver
[E] 1786176034 dxgi.c:384 | dxgi_init | Failed to locate a valid output device
[I] 1786176418 app.c:809 | app_main | Trying : NVFBC
[I] 1786181543 wrapper.cpp:90 | NvFBCInit | NvFBC SDK Version: 112
[E] 1788573864 app.c:829 | app_main | Failed to find a supported capture interface
[I] 1788577422 app.c:982 | app_main | Host application exited
[I] 1790997619 time.c:85 | windowsSetTimerResolution | System timer resolution: 488.2 μs
[I] 1790998152 app.c:771 | app_main | Looking Glass Host (B6)
[I] 1790998556 cpuinfo.c:37 | lgDebugCPU | CPU Model: AMD Ryzen 7 5800H with Radeon Graphics
[I] 1790998943 cpuinfo.c:38 | lgDebugCPU | CPU: 1 sockets, 4 cores, 4 threads
[I] 1791000440 ivshmem.c:132 | ivshmemInit | IVSHMEM 0* on bus 0x1, device 0x1, function 0x0
[I] 1791003782 app.c:788 | app_main | IVSHMEM Size : 32 MiB
[I] 1791004102 app.c:789 | app_main | IVSHMEM Address : 0x2D30000
[I] 1791004419 app.c:790 | app_main | Max Pointer Size : 1024 KiB
[I] 1791004731 app.c:791 | app_main | KVMFR Version : 19
[I] 1791005030 app.c:809 | app_main | Trying : DXGI
[I] 1791007875 dxgi.c:319 | dxgi_init | Not using unsupported adapter: Microsoft Basic Render Driver
[I] 1791008361 dxgi.c:319 | dxgi_init | Not using unsupported adapter: Microsoft Basic Render Driver
[E] 1791008782 dxgi.c:384 | dxgi_init | Failed to locate a valid output device
[I] 1791009136 app.c:809 | app_main | Trying : NVFBC
[I] 1791013784 wrapper.cpp:90 | NvFBCInit | NvFBC SDK Version: 112
[E] 1793406427 app.c:829 | app_main | Failed to find a supported capture interface
[I] 1793409249 app.c:982 | app_main | Host application exited
[I] 1798227312 time.c:85 | windowsSetTimerResolution | System timer resolution: 488.2 μs
[I] 1798227939 app.c:771 | app_main | Looking Glass Host (B6)
[I] 1798228450 cpuinfo.c:37 | lgDebugCPU | CPU Model: AMD Ryzen 7 5800H with Radeon Graphics
[I] 1798229006 cpuinfo.c:38 | lgDebugCPU | CPU: 1 sockets, 4 cores, 4 threads
[I] 1798231031 ivshmem.c:132 | ivshmemInit | IVSHMEM 0* on bus 0x1, device 0x1, function 0x0
[I] 1798233898 app.c:788 | app_main | IVSHMEM Size : 32 MiB
[I] 1798234227 app.c:789 | app_main | IVSHMEM Address : 0x2CC0000
[I] 1798234552 app.c:790 | app_main | Max Pointer Size : 1024 KiB
[I] 1798234879 app.c:791 | app_main | KVMFR Version : 19
[I] 1798235186 app.c:809 | app_main | Trying : DXGI
[I] 1798238661 dxgi.c:319 | dxgi_init | Not using unsupported adapter: Microsoft Basic Render Driver
[I] 1798239240 dxgi.c:319 | dxgi_init | Not using unsupported adapter: Microsoft Basic Render Driver
[E] 1798239675 dxgi.c:384 | dxgi_init | Failed to locate a valid output device
[I] 1798240094 app.c:809 | app_main | Trying : NVFBC
[I] 1798244628 wrapper.cpp:90 | NvFBCInit | NvFBC SDK Version: 112
[E] 1800637431 app.c:829 | app_main | Failed to find a supported capture interface
[I] 1800639983 app.c:982 | app_main | Host application exited
[I] 1800905457 time.c:85 | windowsSetTimerResolution | System timer resolution: 488.2 μs
[W] 1800905879 platform.c:500 | boostPriority | Failed to set realtime GPU priority.
[I] 1800906290 platform.c:501 | boostPriority | This is not a failure, please do not report this as an issue.
[I] 1800906768 platform.c:502 | boostPriority | To fix this, install and run the Looking Glass host as a service.
[I] 1800907262 platform.c:503 | boostPriority | looking-glass-host.exe InstallService
[I] 1800907648 app.c:771 | app_main | Looking Glass Host (B6)
[I] 1800908042 cpuinfo.c:37 | lgDebugCPU | CPU Model: AMD Ryzen 7 5800H with Radeon Graphics
[I] 1800908489 cpuinfo.c:38 | lgDebugCPU | CPU: 1 sockets, 4 cores, 4 threads
[I] 1800910035 ivshmem.c:132 | ivshmemInit | IVSHMEM 0* on bus 0x1, device 0x1, function 0x0
[I] 1800913644 app.c:788 | app_main | IVSHMEM Size : 32 MiB
[I] 1800913995 app.c:789 | app_main | IVSHMEM Address : 0x2C20000
[I] 1800914331 app.c:790 | app_main | Max Pointer Size : 1024 KiB
[I] 1800914677 app.c:791 | app_main | KVMFR Version : 19
[I] 1800914992 app.c:809 | app_main | Trying : DXGI
[I] 1800918733 dxgi.c:319 | dxgi_init | Not using unsupported adapter: Microsoft Basic Render Driver
[I] 1800919275 dxgi.c:319 | dxgi_init | Not using unsupported adapter: Microsoft Basic Render Driver
[E] 1800919707 dxgi.c:384 | dxgi_init | Failed to locate a valid output device
[I] 1800920095 app.c:809 | app_main | Trying : NVFBC
[I] 1800924902 wrapper.cpp:90 | NvFBCInit | NvFBC SDK Version: 112
[E] 1803320207 app.c:829 | app_main | Failed to find a supported capture interface
[I] 1803321721 app.c:982 | app_main | Host application exited
[I] 1810239143 time.c:85 | windowsSetTimerResolution | System timer resolution: 488.2 μs
[I] 1810239686 app.c:771 | app_main | Looking Glass Host (B6)
[I] 1810240139 cpuinfo.c:37 | lgDebugCPU | CPU Model: AMD Ryzen 7 5800H with Radeon Graphics
[I] 1810240634 cpuinfo.c:38 | lgDebugCPU | CPU: 1 sockets, 4 cores, 4 threads
[I] 1810242125 ivshmem.c:132 | ivshmemInit | IVSHMEM 0* on bus 0x1, device 0x1, function 0x0
[I] 1810245536 app.c:788 | app_main | IVSHMEM Size : 32 MiB
[I] 1810245933 app.c:789 | app_main | IVSHMEM Address : 0x2BF0000
[I] 1810246374 app.c:790 | app_main | Max Pointer Size : 1024 KiB
[I] 1810246770 app.c:791 | app_main | KVMFR Version : 19
[I] 1810247109 app.c:809 | app_main | Trying : DXGI
[I] 1810250840 dxgi.c:319 | dxgi_init | Not using unsupported adapter: Microsoft Basic Render Driver
[I] 1810251535 dxgi.c:319 | dxgi_init | Not using unsupported adapter: Microsoft Basic Render Driver
[E] 1810252113 dxgi.c:384 | dxgi_init | Failed to locate a valid output device
[I] 1810252616 app.c:809 | app_main | Trying : NVFBC
[I] 1810258199 wrapper.cpp:90 | NvFBCInit | NvFBC SDK Version: 112
[E] 1812651835 app.c:829 | app_main | Failed to find a supported capture interface
[I] 1812654761 app.c:982 | app_main | Host application exited
[I] 1831792910 time.c:85 | windowsSetTimerResolution | System timer resolution: 488.2 μs
[I] 1831793463 app.c:771 | app_main | Looking Glass Host (B6)
[I] 1831793878 cpuinfo.c:37 | lgDebugCPU | CPU Model: AMD Ryzen 7 5800H with Radeon Graphics
[I] 1831794344 cpuinfo.c:38 | lgDebugCPU | CPU: 1 sockets, 4 cores, 4 threads
[I] 1831795753 ivshmem.c:132 | ivshmemInit | IVSHMEM 0* on bus 0x1, device 0x1, function 0x0
[I] 1831798859 app.c:788 | app_main | IVSHMEM Size : 32 MiB
[I] 1831799242 app.c:789 | app_main | IVSHMEM Address : 0x2C60000
[I] 1831799570 app.c:790 | app_main | Max Pointer Size : 1024 KiB
[I] 1831799952 app.c:791 | app_main | KVMFR Version : 19
[I] 1831800322 app.c:809 | app_main | Trying : DXGI
[I] 1831803754 dxgi.c:319 | dxgi_init | Not using unsupported adapter: Microsoft Basic Render Driver
[I] 1831804310 dxgi.c:319 | dxgi_init | Not using unsupported adapter: Microsoft Basic Render Driver
[E] 1831804798 dxgi.c:384 | dxgi_init | Failed to locate a valid output device
[I] 1831805227 app.c:809 | app_main | Trying : NVFBC
[I] 1831810060 wrapper.cpp:90 | NvFBCInit | NvFBC SDK Version: 112
[E] 1834203640 app.c:829 | app_main | Failed to find a supported capture interface
[I] 1834206068 app.c:982 | app_main | Host application exited
[I] 2425712036 time.c:85 | windowsSetTimerResolution | System timer resolution: 488.2 μs
[W] 2425712694 platform.c:500 | boostPriority | Failed to set realtime GPU priority.
[I] 2425713054 platform.c:501 | boostPriority | This is not a failure, please do not report this as an issue.
[I] 2425713534 platform.c:502 | boostPriority | To fix this, install and run the Looking Glass host as a service.
[I] 2425714032 platform.c:503 | boostPriority | looking-glass-host.exe InstallService
[I] 2425714476 app.c:771 | app_main | Looking Glass Host (B6)
[I] 2425714837 cpuinfo.c:37 | lgDebugCPU | CPU Model: AMD Ryzen 7 5800H with Radeon Graphics
[I] 2425715296 cpuinfo.c:38 | lgDebugCPU | CPU: 1 sockets, 4 cores, 4 threads
[I] 2425716659 ivshmem.c:132 | ivshmemInit | IVSHMEM 0* on bus 0x1, device 0x1, function 0x0
[I] 2425719857 app.c:788 | app_main | IVSHMEM Size : 32 MiB
[I] 2425720361 app.c:789 | app_main | IVSHMEM Address : 0x2C40000
[I] 2425720795 app.c:790 | app_main | Max Pointer Size : 1024 KiB
[I] 2425721229 app.c:791 | app_main | KVMFR Version : 19
[I] 2425721609 app.c:809 | app_main | Trying : DXGI
[I] 2425725558 dxgi.c:319 | dxgi_init | Not using unsupported adapter: Microsoft Basic Render Driver
[I] 2425726179 dxgi.c:319 | dxgi_init | Not using unsupported adapter: Microsoft Basic Render Driver
[E] 2425726679 dxgi.c:384 | dxgi_init | Failed to locate a valid output device
[I] 2425727124 app.c:809 | app_main | Trying : NVFBC
[I] 2425739569 wrapper.cpp:90 | NvFBCInit | NvFBC SDK Version: 112
[E] 2428174681 app.c:829 | app_main | Failed to find a supported capture interface
[I] 2428176337 app.c:982 | app_main | Host application exited
[I] 2492833904 time.c:85 | windowsSetTimerResolution | System timer resolution: 488.2 μs
[W] 2492834328 platform.c:500 | boostPriority | Failed to set realtime GPU priority.
[I] 2492834743 platform.c:501 | boostPriority | This is not a failure, please do not report this as an issue.
[I] 2492835222 platform.c:502 | boostPriority | To fix this, install and run the Looking Glass host as a service.
[I] 2492836305 platform.c:503 | boostPriority | looking-glass-host.exe InstallService
[I] 2492836780 app.c:771 | app_main | Looking Glass Host (B6)
[I] 2492837146 cpuinfo.c:37 | lgDebugCPU | CPU Model: AMD Ryzen 7 5800H with Radeon Graphics
[I] 2492837541 cpuinfo.c:38 | lgDebugCPU | CPU: 1 sockets, 4 cores, 4 threads
[I] 2492839009 ivshmem.c:132 | ivshmemInit | IVSHMEM 0* on bus 0x1, device 0x1, function 0x0
[I] 2492841932 app.c:788 | app_main | IVSHMEM Size : 32 MiB
[I] 2492842268 app.c:789 | app_main | IVSHMEM Address : 0x2D60000
[I] 2492842601 app.c:790 | app_main | Max Pointer Size : 1024 KiB
[I] 2492842926 app.c:791 | app_main | KVMFR Version : 19
[I] 2492843240 app.c:809 | app_main | Trying : DXGI
[I] 2492846991 dxgi.c:319 | dxgi_init | Not using unsupported adapter: Microsoft Basic Render Driver
[I] 2492849035 dxgi.c:319 | dxgi_init | Not using unsupported adapter: Microsoft Basic Render Driver
[E] 2492849462 dxgi.c:384 | dxgi_init | Failed to locate a valid output device
[I] 2492849887 app.c:809 | app_main | Trying : NVFBC
[I] 2492854947 wrapper.cpp:90 | NvFBCInit | NvFBC SDK Version: 112
[E] 2495248797 app.c:829 | app_main | Failed to find a supported capture interface
[I] 2495251436 app.c:982 | app_main | Host application exited
[I] 2738760375 time.c:85 | windowsSetTimerResolution | System timer resolution: 488.2 μs
[W] 2738760869 platform.c:500 | boostPriority | Failed to set realtime GPU priority.
[I] 2738761279 platform.c:501 | boostPriority | This is not a failure, please do not report this as an issue.
[I] 2738761807 platform.c:502 | boostPriority | To fix this, install and run the Looking Glass host as a service.
[I] 2738762309 platform.c:503 | boostPriority | looking-glass-host.exe InstallService
[I] 2738762681 app.c:771 | app_main | Looking Glass Host (B6)
[I] 2738763105 cpuinfo.c:37 | lgDebugCPU | CPU Model: AMD Ryzen 7 5800H with Radeon Graphics
[I] 2738763558 cpuinfo.c:38 | lgDebugCPU | CPU: 1 sockets, 4 cores, 4 threads
[I] 2738765409 ivshmem.c:132 | ivshmemInit | IVSHMEM 0* on bus 0x1, device 0x1, function 0x0
[I] 2738768515 app.c:788 | app_main | IVSHMEM Size : 32 MiB
[I] 2738768846 app.c:789 | app_main | IVSHMEM Address : 0x2BF0000
[I] 2738769176 app.c:790 | app_main | Max Pointer Size : 1024 KiB
[I] 2738769505 app.c:791 | app_main | KVMFR Version : 19
[I] 2738769820 app.c:809 | app_main | Trying : DXGI
[I] 2738773387 dxgi.c:319 | dxgi_init | Not using unsupported adapter: Microsoft Basic Render Driver
[I] 2738773897 dxgi.c:319 | dxgi_init | Not using unsupported adapter: Microsoft Basic Render Driver
[E] 2738774324 dxgi.c:384 | dxgi_init | Failed to locate a valid output device
[I] 2738774708 app.c:809 | app_main | Trying : NVFBC
[I] 2738780222 wrapper.cpp:90 | NvFBCInit | NvFBC SDK Version: 112
[E] 2741174393 app.c:829 | app_main | Failed to find a supported capture interface
[I] 2741176927 app.c:982 | app_main | Host application exited

So I see my video driver in windows is Microsoft Basic Render Driver, even though I pci-passthrough my NVIDIA card.
Any idea what to use for display and vga?
Thanks.

Here is my qemu invocation:

sudo chown $USER /dev/vfio/11
qemu-system-x86_64 --enable-kvm -smp cpus=4 -cpu host -m 8G \
-mem-prealloc \
-drive file=windows-disk.qcow2,media=disk \
-usb -device usb-mouse \
-no-hpet -net nic -net user \
-device pcie-root-port,id=pcie.1,addr=1c.0,slot=1,chassis=1 \
-device vfio-pci,host=01:00.0,bus=pcie.1,addr=00.0,x-vga=on,multifunction=on \
-device vfio-pci,host=01:00.1,bus=pcie.1,addr=00.1 \
-device ivshmem-plain,memdev=ivshmem,bus=pcie.1 \
-object memory-backend-file,id=ivshmem,share=on,mem-path=/dev/shm/looking-glass,size=32M \
-display spice-app \
-vga virtio

I assume it’s the way I configured my display.
This docs/B6/install/#keyboard-mouse-display-audio page says:

  • Find your <video> device, and set <model type='vga'/>
  • If you can’t find it, make sure you have a <graphics> device, save and edit again.

Do you know how do these translate to qemu parameters?
Thanks.