Return to Level1Techs.com

Host wont start - Failed to create D3D11 device

Device Manager

This is the error I get

This is the client side: looking-glass-client -s
[I] main.c:996 | run | Looking Glass (debian/0+b1-3build1)
[I] main.c:997 | run | Locking Method: Atomic
[I] egl.c:187 | egl_initialize | Double buffering is on
[I] egl.c:201 | egl_initialize | Multsampling enabled, max samples: 4
[I] main.c:902 | try_renderer | Using Renderer: EGL
[I] main.c:1183 | run | Using Clipboard: X11
[I] main.c:1259 | run | Waiting for host to signal it’s ready…
[I] egl.c:447 | egl_render_startup | Vendor : Intel
[I] egl.c:448 | egl_render_startup | Renderer: Mesa Intel® UHD Graphics (CML GT2)
[I] egl.c:449 | egl_render_startup | Version : OpenGL ES 3.2 Mesa 20.0.8

I noticed its a different version but the error is still on the host end not being able to spin up looking glass.

you still have the virtual VGA adapter, remove it or better yet, set it’s type in libvirt to none (you have to type this value in ).

<domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
  <name>win10</name>
  <uuid>736f7f45-73d1-46ec-89a5-ccb3f9507ed4</uuid>
  <metadata>
    <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
      <libosinfo:os id="http://microsoft.com/win/10"/>
    </libosinfo:libosinfo>
  </metadata>
  <memory unit="KiB">16777216</memory>
  <currentMemory unit="KiB">16777216</currentMemory>
  <vcpu placement="static" current="1">32</vcpu>
  <os>
    <type arch="x86_64" machine="pc-i440fx-4.2">hvm</type>
    <loader readonly="yes" type="pflash">/usr/share/OVMF/OVMF_CODE.fd</loader>
    <nvram>/var/lib/libvirt/qemu/nvram/win10_VARS.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
    <hyperv>
      <relaxed state="on"/>
      <vapic state="on"/>
      <spinlocks state="on" retries="8191"/>
    </hyperv>
    <vmport state="off"/>
  </features>
  <cpu mode="host-passthrough" check="none">
    <topology sockets="1" cores="4" threads="8"/>
  </cpu>
  <clock offset="localtime">
    <timer name="rtc" tickpolicy="catchup"/>
    <timer name="pit" tickpolicy="delay"/>
    <timer name="hpet" present="no"/>
    <timer name="hypervclock" present="yes"/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <pm>
    <suspend-to-mem enabled="no"/>
    <suspend-to-disk enabled="no"/>
  </pm>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type="file" device="disk">
      <driver name="qemu" type="raw"/>
      <source file="/var/lib/libvirt/images/win10.qcow2"/>
      <target dev="vda" bus="virtio"/>
      <boot order="1"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x08" function="0x0"/>
    </disk>
    <disk type="file" device="cdrom">
      <driver name="qemu" type="raw"/>
      <source file="/home/mntn/Downloads/virtio-win-0.1.190.iso"/>
      <target dev="hda" bus="ide"/>
      <readonly/>
      <boot order="3"/>
      <address type="drive" controller="0" bus="0" target="0" unit="0"/>
    </disk>
    <disk type="file" device="cdrom">
      <driver name="qemu" type="raw"/>
      <source file="/home/mntn/Downloads/Win10_20H2_v2_English_x64.iso"/>
      <target dev="hdb" bus="ide"/>
      <readonly/>
      <boot order="2"/>
      <address type="drive" controller="0" bus="0" target="0" unit="1"/>
    </disk>
    <controller type="usb" index="0" model="qemu-xhci" ports="15">
      <address type="pci" domain="0x0000" bus="0x00" slot="0x05" function="0x0"/>
    </controller>
    <controller type="pci" index="0" model="pci-root"/>
    <controller type="ide" index="0">
      <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x1"/>
    </controller>
    <controller type="sata" index="0">
      <address type="pci" domain="0x0000" bus="0x00" slot="0x06" function="0x0"/>
    </controller>
    <controller type="virtio-serial" index="0">
      <address type="pci" domain="0x0000" bus="0x00" slot="0x07" function="0x0"/>
    </controller>
    <interface type="network">
      <mac address="52:54:00:db:58:21"/>
      <source network="default"/>
      <model type="e1000e"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x03" function="0x0"/>
    </interface>
    <serial type="pty">
      <target type="isa-serial" port="0">
        <model name="isa-serial"/>
      </target>
    </serial>
    <console type="pty">
      <target type="serial" port="0"/>
    </console>
    <channel type="spicevmc">
      <target type="virtio" name="com.redhat.spice.0"/>
      <address type="virtio-serial" controller="0" bus="0" port="1"/>
    </channel>
    <input type="tablet" bus="usb">
      <address type="usb" bus="0" port="1"/>
    </input>
    <input type="mouse" bus="ps2"/>
    <input type="keyboard" bus="ps2"/>
    <graphics type="spice" autoport="yes">
      <listen type="address"/>
      <image compression="off"/>
    </graphics>
    <sound model="ich9">
      <address type="pci" domain="0x0000" bus="0x00" slot="0x04" function="0x0"/>
    </sound>
    <video>
      <model type="cirrus" vram="16384" heads="1" primary="yes"/>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0"/>
    </video>
    <hostdev mode="subsystem" type="pci" managed="yes">
      <source>
        <address domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
      </source>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x09" function="0x0"/>
    </hostdev>
    <redirdev bus="usb" type="spicevmc">
      <address type="usb" bus="0" port="2"/>
    </redirdev>
    <redirdev bus="usb" type="spicevmc">
      <address type="usb" bus="0" port="3"/>
    </redirdev>
    <memballoon model="virtio">
      <address type="pci" domain="0x0000" bus="0x00" slot="0x0a" function="0x0"/>
    </memballoon>
  </devices>
  <qemu:commandline>
    <qemu:arg value="-cpu"/>
    <qemu:arg value="host,hv_time,kvm=off,hv_vendor_id=null"/>
    <qemu:arg value="-device"/>
    <qemu:arg value="ivshmem-plain,memdev=ivshmem,bus=pci.0"/>
    <qemu:arg value="-object"/>
    <qemu:arg value="memory-backend-file,id=ivshmem,share=on,mem-path=/dev/shm/looking-glass,size=32M"/>
  </qemu:commandline>
</domain>

That’s the XMLi am using with VM QEMU.

You cant have a virtual GPU, it does’t support DirectX and thus DXGI capture wont function.

Aka, in virt-manager.

I used this

  <video>
      <model type="none"/>
    </video>

And nothing happens on the client side.

debian/0+b1-3build1

What is this? I have no idea which version ths refers to.
Your host is B2, your client should be also.

I installed it from apt-get.

sudo apt-get install looking-glass-client

I dont know what source it pulled it in from.

I am trying it out with the one I downloaded from git and built it on my machine from the same commit point; which is version: B2-rc4-11-g8692e9af80+1

This is what I did: git checkout 76710ef2. then built it from there.

Then the Debian package maintainer has stupidly removed the critical versioning information needed for debugging. I just had a look at the package in sid also, it’s extremely old.

Nobody should be packaging LG yet, it’s still in Beta and changes extremely frequently, least of all a distro that has such a slow/long release cycle. Please use the B2 stable sources from the LG website and the host binary provided for it. Do not use git unless you’re intending to do development and provide PRs.

https://looking-glass.io/downloads

If this still does not work for you, please obtain and provide the host log and the client CLI output.

Just downloaded the one from the url and unzipped that now it matches the versioning.

/looking-glass/looking-glass-B2-0-g76710ef201/client/build$ ./looking-glass-client 
  9443524641 [I]               main.c:1675 | main                           | Looking Glass (B2-0-g76710ef201)
  9443524659 [I]               main.c:1676 | main                           | Locking Method: Atomic
  9443612188 [I]            ivshmem.c:180  | ivshmemOpenDev                 | KVMFR Device     : /dev/shm/looking-glass
  9443664865 [I]                egl.c:188  | egl_initialize                 | Double buffering is off
  9443687782 [I]                egl.c:202  | egl_initialize                 | Multisampling enabled, max samples: 4
  9443687796 [I]               main.c:1101 | try_renderer                   | Using Renderer: EGL
  9443717340 [I]               main.c:1428 | lg_run                         | Using Clipboard: X11
  9443723488 [I]                egl.c:405  | egl_render_startup             | Supported extensions: EGL_EXT_platform_base EGL_EXT_device_base EGL_EXT_device_enumeration EGL_EXT_device_query EGL_KHR_client_get_all_proc_addresses EGL_EXT_client_extensions EGL_KHR_debug EGL_KHR_platform_x11 EGL_EXT_platform_x11 EGL_EXT_platform_device EGL_EXT_platform_wayland EGL_MESA_platform_gbm EGL_MESA_platform_surfaceless
  9443723502 [I]                egl.c:411  | egl_render_startup             | use native: false
  9443736926 [I]                egl.c:500  | egl_render_startup             | Vendor  : Intel
  9443736940 [I]                egl.c:501  | egl_render_startup             | Renderer: Mesa Intel(R) UHD Graphics (CML GT2)
  9443736943 [I]                egl.c:502  | egl_render_startup             | Version : OpenGL ES 3.2 Mesa 20.0.8
  9443948598 [ ]               main.c:1516 | lg_run                         | ================================================================================
  9443948620 [I]               main.c:1517 | lg_run                         | The host application seems to not be running
  9443948624 [I]               main.c:1518 | lg_run                         | Waiting for the host application to start...

Great, host log too please.

Also note that IGP performance is quite poor when exceeding FHD (1080p) or 60FPS due to system memory bandwidth constraints. it’s recommended you use a discrete GPU for your host, even if it’s older/slow.

Its just stuck on that. Not sure how I can access the log without a monitor or a shell.

Mount the drive/image on the host. Or plug in a physical monitor to the GPU to obtain it.

I have a 4K built in display with the laptop–internal graphics should handle for basic word processing/browsing.

I am trying to run it on a single monitor–built in display.

In this case you have a better option, please see:

https://wiki.archlinux.org/index.php/Intel_GVT-g#Display_virtual_GPU_output

   879447583 [I]           platform.c:329  | app_init                       | System timer resolution: 48.82 ns
   879450067 [I]                app.c:445  | app_main                       | Looking Glass Host (B2-0-g76710ef201)
   879460301 [E]            ivshmem.c:72   | ivshmemOpen                    | Unable to enumerate the device, is it attached?: 0x00000103 (No more data is available.)
   879463580 [E]                app.c:450  | app_main                       | Failed to open the IVSHMEM device
   879588246 [I]           platform.c:329  | app_init                       | System timer resolution: 48.82 ns
   879595718 [I]                app.c:445  | app_main                       | Looking Glass Host (B2-0-g76710ef201)
   879603700 [E]            ivshmem.c:72   | ivshmemOpen                    | Unable to enumerate the device, is it attached?: 0x00000103 (No more data is available.)
   879604996 [E]                app.c:450  | app_main                       | Failed to open the IVSHMEM device
   879729676 [I]           platform.c:329  | app_init                       | System timer resolution: 48.82 ns
   879730798 [I]                app.c:445  | app_main                       | Looking Glass Host (B2-0-g76710ef201)
   879739933 [E]            ivshmem.c:72   | ivshmemOpen                    | Unable to enumerate the device, is it attached?: 0x00000103 (No more data is available.)
   879741325 [E]                app.c:450  | app_main                       | Failed to open the IVSHMEM device
   879867607 [I]           platform.c:329  | app_init                       | System timer resolution: 48.82 ns
   879868738 [I]                app.c:445  | app_main                       | Looking Glass Host (B2-0-g76710ef201)
   879879084 [E]            ivshmem.c:72   | ivshmemOpen                    | Unable to enumerate the device, is it attached?: 0x00000103 (No more data is available.)
   879880468 [E]                app.c:450  | app_main                       | Failed to open the IVSHMEM device
   880032935 [I]           platform.c:329  | app_init                       | System timer resolution: 48.82 ns
   880033997 [I]                app.c:445  | app_main                       | Looking Glass Host (B2-0-g76710ef201)
   880043711 [E]            ivshmem.c:72   | ivshmemOpen                    | Unable to enumerate the device, is it attached?: 0x00000103 (No more data is available.)
   880045104 [E]                app.c:450  | app_main                       | Failed to open the IVSHMEM device
   880146217 [I]           platform.c:329  | app_init                       | System timer resolution: 48.82 ns
   880147198 [I]                app.c:445  | app_main                       | Looking Glass Host (B2-0-g76710ef201)
   880156204 [E]            ivshmem.c:72   | ivshmemOpen                    | Unable to enumerate the device, is it attached?: 0x00000103 (No more data is available.)
   880157619 [E]                app.c:450  | app_main                       | Failed to open the IVSHMEM device
   880411913 [I]           platform.c:329  | app_init                       | System timer resolution: 48.82 ns
   880413104 [I]                app.c:445  | app_main                       | Looking Glass Host (B2-0-g76710ef201)
   880424073 [E]            ivshmem.c:72   | ivshmemOpen                    | Unable to enumerate the device, is it attached?: 0x00000103 (No more data is available.)
   880425570 [E]                app.c:450  | app_main                       | Failed to open the IVSHMEM device
   880517676 [I]           platform.c:329  | app_init                       | System timer resolution: 48.82 ns
   880518488 [I]                app.c:445  | app_main                       | Looking Glass Host (B2-0-g76710ef201)
   880525639 [E]            ivshmem.c:72   | ivshmemOpen                    | Unable to enumerate the device, is it attached?: 0x00000103 (No more data is available.)
   880526754 [E]                app.c:450  | app_main                       | Failed to open the IVSHMEM device
   880674519 [I]           platform.c:329  | app_init                       | System timer resolution: 48.82 ns
   880675583 [I]                app.c:445  | app_main                       | Looking Glass Host (B2-0-g76710ef201)
   880683678 [E]            ivshmem.c:72   | ivshmemOpen                    | Unable to enumerate the device, is it attached?: 0x00000103 (No more data is available.)
   880684925 [E]                app.c:450  | app_main                       | Failed to open the IVSHMEM device
   880844940 [I]           platform.c:329  | app_init                       | System timer resolution: 48.82 ns
   880846118 [I]                app.c:445  | app_main                       | Looking Glass Host (B2-0-g76710ef201)
   880855591 [E]            ivshmem.c:72   | ivshmemOpen                    | Unable to enumerate the device, is it attached?: 0x00000103 (No more data is available.)
   880857062 [E]                app.c:450  | app_main                       | Failed to open the IVSHMEM device
   881044923 [I]           platform.c:329  | app_init                       | System timer resolution: 48.82 ns
   881045985 [I]                app.c:445  | app_main                       | Looking Glass Host (B2-0-g76710ef201)
   881054132 [E]            ivshmem.c:72   | ivshmemOpen                    | Unable to enumerate the device, is it attached?: 0x00000103 (No more data is available.)
   881055436 [E]                app.c:450  | app_main                       | Failed to open the IVSHMEM device
   881223060 [I]           platform.c:329  | app_init                       | System timer resolution: 48.82 ns
   881224037 [I]                app.c:445  | app_main                       | Looking Glass Host (B2-0-g76710ef201)
   881231682 [E]            ivshmem.c:72   | ivshmemOpen                    | Unable to enumerate the device, is it attached?: 0x00000103 (No more data is available.)
   881232842 [E]                app.c:450  | app_main                       | Failed to open the IVSHMEM device
   881375621 [I]           platform.c:329  | app_init                       | System timer resolution: 48.82 ns
   881376879 [I]                app.c:445  | app_main                       | Looking Glass Host (B2-0-g76710ef201)
   881388069 [E]            ivshmem.c:72   | ivshmemOpen                    | Unable to enumerate the device, is it attached?: 0x00000103 (No more data is available.)
   881389917 [E]                app.c:450  | app_main                       | Failed to open the IVSHMEM device
   881507970 [I]           platform.c:329  | app_init                       | System timer resolution: 48.82 ns
   881508981 [I]                app.c:445  | app_main                       | Looking Glass Host (B2-0-g76710ef201)
   881516639 [E]            ivshmem.c:72   | ivshmemOpen                    | Unable to enumerate the device, is it attached?: 0x00000103 (No more data is available.)
   881518041 [E]                app.c:450  | app_main                       | Failed to open the IVSHMEM device

DId you remove/uninstall the IVSHMEM device or driver?

I installed one after I installed the host software.

You must have the IVSHMEM device attached and the driver installed.