Host application failed to start 5 times; will not restart

I could never get looking-glass to work
Disabling the qxl graphics card has no effect

Environment archliux
qemu 6.1.0-2
Virtual Machine Manager 3.2.0
virtio-win10-prewhql-0.1-161
looking-glass-host-B4[25c88a1c]

<devices>
...
   <shmem name="looking-glass">
      <model type="ivshmem-plain"/>
      <size unit="M">32</size>
      <address type="pci" domain="0x0000" bus="0x08" slot="0x01" function="0x0"/>
    </shmem>
</devices>

looking-glass-host-service.txt

 [2021-09-26 05:52:35] Startup
[2021-09-26 05:52:35] Host application exited with code 0x40
[2021-09-26 05:52:35] Host application failed to start 1 times, waiting 1000 ms...
[2021-09-26 05:52:36] Host application exited with code 0x40
[2021-09-26 05:52:36] Host application failed to start 2 times, waiting 2000 ms...
[2021-09-26 05:52:38] Host application exited with code 0x40
[2021-09-26 05:52:38] Host application failed to start 3 times, waiting 4000 ms...
[2021-09-26 05:52:42] Host application exited with code 0x40
[2021-09-26 05:52:42] Host application failed to start 4 times, waiting 8000 ms...
[2021-09-26 05:52:50] Host application exited with code 0x40
[2021-09-26 05:52:50] Host application failed to start 5 times, waiting 16000 ms...
[2021-09-26 05:53:06] Host application exited with code 0x40
[2021-09-26 05:53:06] Host application failed to start 5 times; will not restart
[2021-09-26 05:53:06] Finished

looking-glass-host.txt

[I]     36650145             delay.c:41   | delayInit                      | System timer resolution: 488200 ns
[I]     36650788               app.c:514  | app_main                       | Looking Glass Host (B4)
[I]     36656320               app.c:530  | app_main                       | IVSHMEM Size     : 32 MiB
[I]     36656598               app.c:531  | app_main                       | IVSHMEM Address  : 0x2A00000
[I]     36656913               app.c:532  | app_main                       | Max Pointer Size : 1024 KiB
[I]     36657227               app.c:533  | app_main                       | KVMFR Version    : 10
[I]     36657671               app.c:593  | app_main                       | Max Frame Size   : 14 MiB
[I]     36657978               app.c:614  | app_main                       | Trying           : DXGI
[I]     36659596              dxgi.c:307  | dxgi_init                      | Device Name      : \\.\DISPLAY1
[I]     36659936              dxgi.c:308  | dxgi_init                      | Device Descripion: Microsoft Basic Render Driver
[I]     36660266              dxgi.c:309  | dxgi_init                      | Device Vendor ID : 0x1414
[I]     36660572              dxgi.c:310  | dxgi_init                      | Device Device ID : 0x8c
[I]     36660943              dxgi.c:311  | dxgi_init                      | Device Video Mem : 0 MiB
[I]     36661570              dxgi.c:312  | dxgi_init                      | Device Sys Mem   : 0 MiB
[I]     36662132              dxgi.c:313  | dxgi_init                      | Shared Sys Mem   : 773 MiB
    36663840 [E]               dxgi.c:377  | dxgi_init                      | Failed to create D3D11 device: 0x887a0004 (#specified device interface or feature level is not supported on this system)
[I]     36664773               app.c:614  | app_main                       | Trying           : NVFBC (NVidia Frame Buffer Capture)
    36665749 [E]          wrapper.cpp:61   | NvFBCInit                      | Failed to load NvFBC64.dll: 0x0000007e (#specified module cannot be found)
[E]     36666501               app.c:634  | app_main                       | Failed to find a supported capture interface

looking-glass-client

[I]   6295522358              main.c:1064 | main                           | Looking Glass (B4)
[I]   6295522390              main.c:1065 | main                           | Locking Method: Atomic
[I]   6295526340           ivshmem.c:127  | ivshmemOpenDev                 | KVMFR Device     : /dev/shm/looking-glass
[I]   6295565401               egl.c:274  | egl_initialize                 | Double buffering is off
[I]   6295565414              main.c:671  | tryRenderer                    | Using Renderer: EGL
[I]   6295584380               x11.c:303  | x11Init                        | X11 XInput 2.0 in use
[I]   6295588771               x11.c:925  | x11GetEGLDisplay               | Using eglGetPlatformDisplayEXT
[I]   6295667112               egl.c:634  | egl_render_startup             | Multisampling enabled, max samples: 4
[I]   6295710995               egl.c:685  | egl_render_startup             | Single buffer mode
[I]   6295971027               egl.c:701  | egl_render_startup             | EGL       : 1.5
[I]   6295971043               egl.c:702  | egl_render_startup             | Vendor    : NVIDIA Corporation
[I]   6295971046               egl.c:703  | egl_render_startup             | Renderer  : NVIDIA GeForce GTX 1660 Ti/PCIe/SSE2
[I]   6295971049               egl.c:704  | egl_render_startup             | Version   : OpenGL ES 3.2 NVIDIA 470.74
[I]   6295971056               egl.c:705  | egl_render_startup             | EGL APIs  : OpenGL_ES OpenGL
[I]   6295971063               egl.c:706  | egl_render_startup             | Extensions: EGL_EXT_buffer_age EGL_EXT_client_sync EGL_EXT_create_context_robustness EGL_EXT_im
age_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_MESA_image_dma_buf_export EGL_EXT_output_base EGL_EXT_stream_acquire_mode EGL_EXT_sync_reuse EGL_IMG_context_p
riority EGL_KHR_config_attribs EGL_KHR_create_context_no_error EGL_KHR_context_flush_control EGL_KHR_create_context EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KH
R_partial_update EGL_KHR_swap_buffers_with_damage EGL_KHR_no_config_context EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_textu
re_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_reusable_sync EGL_KHR_stream EGL_KHR_stream_attrib EGL_KHR_stream
_consumer_gltexture EGL_KHR_stream_cross_process_fd EGL_KHR_stream_fifo EGL_KHR_stream_producer_eglsurface EGL_KHR_surfaceless_context EGL_KHR_wait_sync EGL_NV_nvrm_fence_s
ync EGL_NV_post_sub_buffer EGL_NV_quadruple_buffer EGL_NV_stream_consumer_eglimage EGL_NV_stream_cross_display EGL_NV_stream_cross_object EGL_NV_stream_cross_process EGL_NV
_stream_cross_system EGL_NV_stream_dma EGL_NV_stream_flush EGL_NV_stream_metadata EGL_NV_stream_remote EGL_NV_stream_reset EGL_NV_stream_socket EGL_NV_stream_socket_inet EG
L_NV_stream_socket_unix EGL_NV_stream_sync EGL_NV_stream_fifo_next EGL_NV_stream_fifo_synchronous EGL_NV_stream_consumer_gltexture_yuv EGL_NV_stream_attrib EGL_NV_stream_or
igin EGL_NV_system_time EGL_NV_output_drm_flip_event EGL_NV_triple_buffer EGL_WL_bind_wayland_display EGL_WL_wayland_eglstream
[W]   6295971076               egl.c:721  | egl_render_startup             | NVIDIA driver detected, ignoring broken DMA support
[I]   6296187599              main.c:897  | lg_run                         | ================================================================================
[I]   6296187618              main.c:898  | lg_run                         | The host application seems to not be running
[I]   6296187620              main.c:899  | lg_run                         | Waiting for the host application to start...
[I]   6325189501              main.c:904  | lg_run                         | ================================================================================
[I]   6325189521              main.c:905  | lg_run                         | Please check the host application is running and is the correct version
[I]   6325189523              main.c:906  | lg_run                         | Check the host log in your guest at %ProgramData%\Looking Glass (host)\looking-glass-host.txt
[I]   6325189528              main.c:907  | lg_run                         | Continuing to wait...

Here’s the root cause:

No idea how to solve it, I’m not using looking glass.

Looks like you have no drivers installed on the LG Host side, i.e. in the VM:

[I]     36659936              dxgi.c:308  | dxgi_init                      | Device Descripion: Microsoft Basic Render Driver

This driver should only get loaded when nothing else is available.


Also… use the LG category for LG issues…

installation instructions do not mention the need for drivers.
How do I get the driver

Because that is pretty self-explanatory and basic knowledge which is just assumed when you’re playing around with this level of virtualisation.

The same way you get it on a regular Windows installation.

Oh, I remember trying to install nvidia drivers earlier, but the installer said no hardware was detected so the installation was stopped.