Looking glass launch issues

Hi all,

I appreciate you all’s time. I will try to be as descriptive and concise as possible… missing information is due to my own ignorance, so feel free to enlighten and I will do my best to provide what is requested.

Configuration:
VM:

  • Windows 10 Pro

Client:

  • Linux Mint 21.2LTS

CPU:

  • Threadripper pro 3955wx

GPU:

  • Client: NVIDIA Quadro RTX 5000
  • Passthrough: AMD Radeon pro 5700 w/ headless dongle in usb-c port

Looking glass version:

  • B6

Issue:
Upon executing ‘looking-glass-client’ I am getting the following output:

looking-glass-client
[I] 6238218042 main.c:1785 | main | Looking Glass (B6)
[I] 6238218064 main.c:1786 | main | Locking Method: Atomic
[I] 6238236782 cpuinfo.c:37 | lgDebugCPU | CPU Model: AMD Ryzen Threadripper PRO 3955WX 16-Cores
[I] 6238236804 cpuinfo.c:38 | lgDebugCPU | CPU: 1 sockets, 16 cores, 32 threads
[I] 6238248410 main.c:1162 | lg_run | Using font: /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf
[I] 6238248716 ivshmem.c:128 | ivshmemOpenDev | KVMFR Device : /dev/shm/looking-glass
[I] 6238253825 audio.c:159 | audio_init | Using AudioDev: PipeWire
[I] 6238253850 ps.c:245 | purespice_connect | Connecting to socket 127.0.0.1:5900
[I] 6238270387 rsa.c:178 | rsa_encryptPassword | Using Nettle
[I] 6238271376 ps.c:268 | purespice_connect | Connected
[I] 6238271467 agent.c:103 | agent_connect | Connected to the spice guest agent
[I] 6238271491 channel_main.c:167 | onMessage_mainName | Guest name: win10Workstation
[I] 6238271526 channel_main.c:183 | onMessage_mainUUID | Guest UUID: 77076829-7312-4208-88f0-9b67a2d4bdb6
[I] 6238281516 ps.c:644 | ps_connectChannel | RECORD channel connected
[I] 6238293560 ps.c:644 | ps_connectChannel | PLAYBACK channel connected
[I] 6238304876 ps.c:644 | ps_connectChannel | INPUTS channel connected
[I] 6238304938 channel.c:312 | onMessage_notify | [notify] keyboard channel is insecure
[I] 6238305067 egl.c:267 | egl_initialize | Double buffering is off
[I] 6238305109 main.c:1116 | tryRenderer | Using Renderer: EGL
[I] 6238307339 x11.c:230 | x11CheckEWMHSupport | EWMH-complient window manager detected: Mutter (Muffin)
[I] 6238307615 x11.c:463 | x11Init | X11 XInput 2.0 in use
[I] 6238321327 x11.c:1433 | x11GetEGLDisplay | Using eglGetPlatformDisplayEXT
[I] 6238339144 egl.c:745 | egl_renderStartup | Multisampling enabled, max samples: 4
[I] 6238437540 egl.c:828 | egl_renderStartup | Single buffer mode
[I] 6238520550 egl.c:855 | egl_renderStartup | EGL : 1.5
[I] 6238520589 egl.c:856 | egl_renderStartup | Vendor : NVIDIA Corporation
[I] 6238520652 egl.c:857 | egl_renderStartup | Renderer: Quadro RTX 5000/PCIe/SSE2
[I] 6238520715 egl.c:858 | egl_renderStartup | Version : OpenGL ES 3.2 NVIDIA 535.113.01
[I] 6238520780 egl.c:859 | egl_renderStartup | EGL APIs: OpenGL_ES OpenGL
[I] 6238520886 egl.c:930 | egl_renderStartup | Debug messages disabled, enable with egl:debug=true
[I] 6238555086 eglutil.c:35 | swapWithDamageInit | Using EGL_KHR_swap_buffers_with_damage
[I] 6238735634 main.c:1467 | lg_run | ================================================================================
[I] 6238735674 main.c:1468 | lg_run | The host application seems to not be running
[I] 6238735713 main.c:1469 | lg_run | Waiting for the host application to start…
[I] 6239747215 ps.c:644 | ps_connectChannel | DISPLAY channel connected
[I] 6239759199 ps.c:644 | ps_connectChannel | CURSOR channel connected
[I] 6239783538 main.c:896 | spice_surfaceCreate | Create SPICE surface: id: 0, size: 2560x1600
[I] 6267762233 main.c:1474 | lg_run | ================================================================================
[I] 6267762290 main.c:1488 | lg_run | Check the host log in your guest at %ProgramData%\Looking Glass (host)\looking-glass-host.txt
[I] 6267762338 main.c:1489 | lg_run | Continuing to wait…
[I] 6279453680 channel.c:258 | channel_internal_disconnect | CURSOR channel disconnected
[I] 6279454850 channel.c:258 | channel_internal_disconnect | DISPLAY channel disconnected
[I] 6279454903 channel.c:258 | channel_internal_disconnect | RECORD channel disconnected
[I] 6279454962 channel.c:258 | channel_internal_disconnect | PLAYBACK channel disconnected
[I] 6279455028 channel.c:258 | channel_internal_disconnect | INPUTS channel disconnected
[I] 6279455123 channel.c:258 | channel_internal_disconnect | MAIN channel disconnected
[I] 6279455175 ps.c:330 | purespice_disconnect | Disconnected

Looking-glass-log output:

[I] 39410332 time.c:85 | windowsSetTimerResolution | System timer resolution: 500.0 μs
[I] 39411233 app.c:771 | app_main | Looking Glass Host (B6)
[I] 39411964 cpuinfo.c:37 | lgDebugCPU | CPU Model: AMD Ryzen Threadripper PRO 3955WX 16-Cores
[I] 39412837 cpuinfo.c:38 | lgDebugCPU | CPU: 1 sockets, 8 cores, 16 threads
[I] 39414299 ivshmem.c:132 | ivshmemInit | IVSHMEM 0* on bus 0x6, device 0x1, function 0x0
[I] 39435304 app.c:788 | app_main | IVSHMEM Size : 512 MiB
[I] 39435642 app.c:789 | app_main | IVSHMEM Address : 0x2CE0000
[I] 39435969 app.c:790 | app_main | Max Pointer Size : 1024 KiB
[I] 39436288 app.c:791 | app_main | KVMFR Version : 19
[I] 39436599 app.c:809 | app_main | Trying : DXGI
[I] 39439174 dxgi.c:319 | dxgi_init | Not using unsupported adapter: Microsoft Basic Render Driver
[I] 39440096 dxgi.c:319 | dxgi_init | Not using unsupported adapter: Microsoft Basic Render Driver
[E] 39440977 dxgi.c:384 | dxgi_init | Failed to locate a valid output device
[I] 39441730 app.c:809 | app_main | Trying : NVFBC
39442953 [E] wrapper.cpp:61 | NvFBCInit | Failed to load NvFBC64.dll: 0x0000007e (The specified module could not be found.)
[E] 39443954 app.c:829 | app_main | Failed to find a supported capture interface
[I] 39461715 app.c:982 | app_main | Host application exited

looking-glass-host-service output:

[2023-10-29 16:08:41] Startup
[2023-10-29 16:08:41] Host application exited with code 0x40
[2023-10-29 16:08:41] Host application failed to start 1 times, waiting 1000 ms…
[2023-10-29 16:08:43] Host application exited with code 0x40
[2023-10-29 16:08:43] Host application failed to start 2 times, waiting 2000 ms…
[2023-10-29 16:08:45] Host application exited with code 0x40
[2023-10-29 16:08:45] Host application failed to start 3 times, waiting 4000 ms…
[2023-10-29 16:08:49] Host application exited with code 0x40
[2023-10-29 16:08:49] Host application failed to start 4 times, waiting 8000 ms…
[2023-10-29 16:08:57] Host application exited with code 0x40
[2023-10-29 16:08:57] Host application failed to start 5 times, waiting 16000 ms…
[2023-10-29 16:09:13] Host application exited with code 0x40
[2023-10-29 16:09:13] Host application failed to start 5 times; will not restart
[2023-10-29 16:09:13] Finished

Thank you!
WM

The amd driver is giving a code 43 within the windows VM.

Double checked isolation and got the following:
lspci -k output:

63:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon Pro W5700]
Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon Pro W5700]
Kernel driver in use: vfio-pci
Kernel modules: amdgpu
63:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 HDMI Audio
Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 HDMI Audio
Kernel driver in use: vfio-pci
Kernel modules: snd_hda_intel

I am not sure what to change in order to force the driver to work… I assume that the issue is either within the VM, or there is some sort of quirk with my setup…?

LG can’t find a working GPU driver to connect to. This is usually because of a failed GPU driver which seems to be the issue on your next post.

Please note that LG requisite requires a fully operational VM with a functioning GPU passthrough. This forum is limited to assisting users with LG specific issues. You might want to seek assistance in the VFIO forum or VFIO Discord server.

Thank you for the info!