Qemu Virt-Manager Spice OpenGL not working

Trying to enable opengl for the GUI Virtual Machine Manager on Qemu but i keep getting error messages.

I followed the Virt-Manager guide on the manjaro wiki

Having spice display as local and port/tls to auto I get this error.

Error starting domain: internal error: qemu unexpectedly closed the monitor: 2019-05-02T16:26:01.414109Z qemu-system-x86_64: SPICE GL support is local-only for now and incompatible with -spice port/tls-port

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 75, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 111, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 66, in newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1420, in startup
    self._backend.create()
  File "/usr/lib/python3.7/site-packages/libvirt.py", line 1080, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirt.libvirtError: internal error: qemu unexpectedly closed the monitor: 2019-05-02T16:26:01.414109Z qemu-system-x86_64: SPICE GL support is local-only for now and incompatible with -spice port/tls-port

Unticking port/tls I get this error:

Error starting domain: unsupported configuration: spice TLS port set in XML configuration, but TLS is disabled in qemu.conf

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 75, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 111, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 66, in newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1420, in startup
    self._backend.create()
  File "/usr/lib/python3.7/site-packages/libvirt.py", line 1080, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirt.libvirtError: unsupported configuration: spice TLS port set in XML configuration, but TLS is disabled in qemu.conf

I don't know how to resolve this to get a VM loaded under OpenGL.
Trying to just use a virtual machine locally in the manager with OpenGL.
I beleive I need to change something in the config to get this working.

I updated to qemu-git as a test which didn't fix the issue though it did fix a minor unrelated thing the Virtual Machine Manager randomly closing with Listen type: None when accessing a running VM console.

I got slightly furthur.

In Spice Server Enabling OpenGL the Virt-Manager with 'Listen Type' 'None' and going to the VM 'Console' display instantly close the Virt-Manager windows.
Setting 'Listen Type' to 'None' without OpenGL works.

So something is not working with OpenGL and spice.

The Virt-Manager log from loading a running vm to the windows closing is this:

[Mon, 06 May 2019 13:10:36 virt-manager 6962] DEBUG (cli:203) Launched with command line: /usr/share/virt-manager/virt-manager
[Mon, 06 May 2019 13:10:36 virt-manager 6962] DEBUG (virt-manager:176) virt-manager version: 2.1.0
[Mon, 06 May 2019 13:10:36 virt-manager 6962] DEBUG (virt-manager:177) virtManager import: <module 'virtManager' from '/usr/share/virt-manager/virtManager/__init__.py'>
[Mon, 06 May 2019 13:10:36 virt-manager 6964] DEBUG (virt-manager:214) PyGObject version: 3.32.1
[Mon, 06 May 2019 13:10:36 virt-manager 6964] DEBUG (virt-manager:218) GTK version: 3.24.8
[Mon, 06 May 2019 13:10:36 virt-manager 6964] DEBUG (systray:202) Showing systray: False
[Mon, 06 May 2019 13:10:36 virt-manager 6964] DEBUG (inspection:41) python guestfs is not installed
[Mon, 06 May 2019 13:10:36 virt-manager 6964] DEBUG (engine:114) Loading stored URIs:
qemu:///system
[Mon, 06 May 2019 13:10:36 virt-manager 6964] DEBUG (engine:528) processing cli command uri= show_window=manager domain=
[Mon, 06 May 2019 13:10:36 virt-manager 6964] DEBUG (engine:530) No cli action requested, launching default window
[Mon, 06 May 2019 13:10:36 virt-manager 6964] DEBUG (manager:187) Showing manager
[Mon, 06 May 2019 13:10:36 virt-manager 6964] DEBUG (engine:388) window counter incremented to 1
[Mon, 06 May 2019 13:10:36 virt-manager 6964] DEBUG (engine:282) Initial gtkapplication activated
[Mon, 06 May 2019 13:10:36 virt-manager 6964] DEBUG (connection:565) conn=qemu:///system changed to state=Connecting
[Mon, 06 May 2019 13:10:36 virt-manager 6964] DEBUG (connection:1002) Scheduling background open thread for qemu:///system
[Mon, 06 May 2019 13:10:40 virt-manager 6964] DEBUG (connection:1042) libvirt version=5002000
[Mon, 06 May 2019 13:10:40 virt-manager 6964] DEBUG (connection:1044) daemon version=5002000
[Mon, 06 May 2019 13:10:40 virt-manager 6964] DEBUG (connection:1045) conn version=4000050
[Mon, 06 May 2019 13:10:40 virt-manager 6964] DEBUG (connection:1047) qemu:///system capabilities:
<capabilities>

  <host>
    <uuid>00000000-0000-0000-0000-1c6f653e1423</uuid>
    <cpu>
      <arch>x86_64</arch>
      <model>Westmere-IBRS</model>
      <vendor>Intel</vendor>
      <microcode version="31"/>
      <topology sockets="1" cores="6" threads="2"/>
      <feature name="vme"/>
      <feature name="ds"/>
      <feature name="acpi"/>
      <feature name="ss"/>
      <feature name="ht"/>
      <feature name="tm"/>
      <feature name="pbe"/>
      <feature name="pclmuldq"/>
      <feature name="dtes64"/>
      <feature name="monitor"/>
      <feature name="ds_cpl"/>
      <feature name="vmx"/>
      <feature name="smx"/>
      <feature name="est"/>
      <feature name="tm2"/>
      <feature name="xtpr"/>
      <feature name="pdcm"/>
      <feature name="pcid"/>
      <feature name="dca"/>
      <feature name="arat"/>
      <feature name="stibp"/>
      <feature name="ssbd"/>
      <feature name="pdpe1gb"/>
      <feature name="rdtscp"/>
      <feature name="invtsc"/>
      <pages unit="KiB" size="4"/>
      <pages unit="KiB" size="2048"/>
      <pages unit="KiB" size="1048576"/>
    </cpu>
    <power_management>
      <suspend_mem/>
      <suspend_disk/>
      <suspend_hybrid/>
    </power_management>
    <iommu support="no"/>
    <migration_features>
      <live/>
      <uri_transports>
        <uri_transport>tcp</uri_transport>
        <uri_transport>rdma</uri_transport>
      </uri_transports>
    </migration_features>
    <topology>
      <cells num="1">
        <cell id="0">
          <memory unit="KiB">12292868</memory>
          <pages unit="KiB" size="4">3073217</pages>
          <pages unit="KiB" size="2048">0</pages>
          <pages unit="KiB" size="1048576">0</pages>
          <distances>
            <sibling id="0" value="10"/>
          </distances>
          <cpus num="12">
            <cpu id="0" socket_id="0" core_id="0" siblings="0,6"/>
            <cpu id="1" socket_id="0" core_id="1" siblings="1,7"/>
            <cpu id="2" socket_id="0" core_id="2" siblings="2,8"/>
            <cpu id="3" socket_id="0" core_id="8" siblings="3,9"/>
            <cpu id="4" socket_id="0" core_id="9" siblings="4,10"/>
            <cpu id="5" socket_id="0" core_id="10" siblings="5,11"/>
            <cpu id="6" socket_id="0" core_id="0" siblings="0,6"/>
            <cpu id="7" socket_id="0" core_id="1" siblings="1,7"/>
            <cpu id="8" socket_id="0" core_id="2" siblings="2,8"/>
            <cpu id="9" socket_id="0" core_id="8" siblings="3,9"/>
            <cpu id="10" socket_id="0" core_id="9" siblings="4,10"/>
            <cpu id="11" socket_id="0" core_id="10" siblings="5,11"/>
          </cpus>
        </cell>
      </cells>
    </topology>
    <cache>
      <bank id="0" level="3" type="both" size="12" unit="MiB" cpus="0-11"/>
    </cache>
    <secmodel>
      <model>none</model>
      <doi>0</doi>
    </secmodel>
    <secmodel>
      <model>dac</model>
      <doi>0</doi>
      <baselabel type="kvm">+65534:+992</baselabel>
      <baselabel type="qemu">+65534:+992</baselabel>
    </secmodel>
  </host>

  <guest>
    <os_type>hvm</os_type>
    <arch name="i686">
      <wordsize>32</wordsize>
      <emulator>/usr/bin/qemu-system-x86_64</emulator>
      <machine maxCpus="255">pc-i440fx-4.1</machine>
      <machine canonical="pc-i440fx-4.1" maxCpus="255">pc</machine>
      <machine maxCpus="255">pc-0.15</machine>
      <machine maxCpus="255">pc-i440fx-2.12</machine>
      <machine maxCpus="255">pc-i440fx-2.0</machine>
      <machine maxCpus="255">pc-i440fx-2.5</machine>
      <machine maxCpus="255">pc-i440fx-1.5</machine>
      <machine maxCpus="255">pc-q35-2.7</machine>
      <machine maxCpus="255">pc-0.12</machine>
      <machine maxCpus="255">pc-i440fx-2.2</machine>
      <machine maxCpus="255">pc-1.1</machine>
      <machine maxCpus="255">pc-i440fx-2.7</machine>
      <machine maxCpus="255">pc-q35-2.4</machine>
      <machine maxCpus="288">pc-q35-2.10</machine>
      <machine maxCpus="255">pc-i440fx-1.7</machine>
      <machine maxCpus="255">pc-0.14</machine>
      <machine maxCpus="288">pc-q35-2.9</machine>
      <machine maxCpus="255">pc-i440fx-2.11</machine>
      <machine maxCpus="288">pc-q35-3.1</machine>
      <machine maxCpus="288">pc-q35-4.1</machine>
      <machine canonical="pc-q35-4.1" maxCpus="288">q35</machine>
      <machine maxCpus="255">pc-i440fx-2.4</machine>
      <machine maxCpus="255">pc-1.3</machine>
      <machine maxCpus="255">pc-i440fx-2.9</machine>
      <machine maxCpus="1">isapc</machine>
      <machine maxCpus="255">pc-i440fx-1.4</machine>
      <machine maxCpus="255">pc-q35-2.6</machine>
      <machine maxCpus="255">pc-i440fx-3.1</machine>
      <machine maxCpus="288">pc-q35-2.12</machine>
      <machine maxCpus="255">pc-i440fx-2.1</machine>
      <machine maxCpus="255">pc-1.0</machine>
      <machine maxCpus="255">pc-i440fx-2.6</machine>
      <machine maxCpus="255">pc-i440fx-1.6</machine>
      <machine maxCpus="255">pc-0.13</machine>
      <machine maxCpus="288">pc-q35-2.8</machine>
      <machine maxCpus="255">pc-i440fx-2.10</machine>
      <machine maxCpus="288">pc-q35-3.0</machine>
      <machine maxCpus="288">pc-q35-4.0</machine>
      <machine maxCpus="255">pc-i440fx-2.3</machine>
      <machine maxCpus="255">pc-1.2</machine>
      <machine maxCpus="255">pc-i440fx-4.0</machine>
      <machine maxCpus="255">pc-i440fx-2.8</machine>
      <machine maxCpus="255">pc-q35-2.5</machine>
      <machine maxCpus="255">pc-i440fx-3.0</machine>
      <machine maxCpus="288">pc-q35-2.11</machine>
      <domain type="qemu"/>
      <domain type="kvm"/>
    </arch>
    <features>
      <cpuselection/>
      <deviceboot/>
      <disksnapshot default="on" toggle="no"/>
      <acpi default="on" toggle="yes"/>
      <apic default="on" toggle="no"/>
      <pae/>
      <nonpae/>
    </features>
  </guest>

  <guest>
    <os_type>hvm</os_type>
    <arch name="x86_64">
      <wordsize>64</wordsize>
      <emulator>/usr/bin/qemu-system-x86_64</emulator>
      <machine maxCpus="255">pc-i440fx-4.1</machine>
      <machine canonical="pc-i440fx-4.1" maxCpus="255">pc</machine>
      <machine maxCpus="255">pc-0.15</machine>
      <machine maxCpus="255">pc-i440fx-2.12</machine>
      <machine maxCpus="255">pc-i440fx-2.0</machine>
      <machine maxCpus="255">pc-i440fx-2.5</machine>
      <machine maxCpus="255">pc-i440fx-1.5</machine>
      <machine maxCpus="255">pc-q35-2.7</machine>
      <machine maxCpus="255">pc-0.12</machine>
      <machine maxCpus="255">pc-i440fx-2.2</machine>
      <machine maxCpus="255">pc-1.1</machine>
      <machine maxCpus="255">pc-i440fx-2.7</machine>
      <machine maxCpus="255">pc-q35-2.4</machine>
      <machine maxCpus="288">pc-q35-2.10</machine>
      <machine maxCpus="255">pc-i440fx-1.7</machine>
      <machine maxCpus="255">pc-0.14</machine>
      <machine maxCpus="288">pc-q35-2.9</machine>
      <machine maxCpus="255">pc-i440fx-2.11</machine>
      <machine maxCpus="288">pc-q35-3.1</machine>
      <machine maxCpus="288">pc-q35-4.1</machine>
      <machine canonical="pc-q35-4.1" maxCpus="288">q35</machine>
      <machine maxCpus="255">pc-i440fx-2.4</machine>
      <machine maxCpus="255">pc-1.3</machine>
      <machine maxCpus="255">pc-i440fx-2.9</machine>
      <machine maxCpus="1">isapc</machine>
      <machine maxCpus="255">pc-i440fx-1.4</machine>
      <machine maxCpus="255">pc-q35-2.6</machine>
      <machine maxCpus="255">pc-i440fx-3.1</machine>
      <machine maxCpus="288">pc-q35-2.12</machine>
      <machine maxCpus="255">pc-i440fx-2.1</machine>
      <machine maxCpus="255">pc-1.0</machine>
      <machine maxCpus="255">pc-i440fx-2.6</machine>
      <machine maxCpus="255">pc-i440fx-1.6</machine>
      <machine maxCpus="255">pc-0.13</machine>
      <machine maxCpus="288">pc-q35-2.8</machine>
      <machine maxCpus="255">pc-i440fx-2.10</machine>
      <machine maxCpus="288">pc-q35-3.0</machine>
      <machine maxCpus="288">pc-q35-4.0</machine>
      <machine maxCpus="255">pc-i440fx-2.3</machine>
      <machine maxCpus="255">pc-1.2</machine>
      <machine maxCpus="255">pc-i440fx-4.0</machine>
      <machine maxCpus="255">pc-i440fx-2.8</machine>
      <machine maxCpus="255">pc-q35-2.5</machine>
      <machine maxCpus="255">pc-i440fx-3.0</machine>
      <machine maxCpus="288">pc-q35-2.11</machine>
      <domain type="qemu"/>
      <domain type="kvm"/>
    </arch>
    <features>
      <cpuselection/>
      <deviceboot/>
      <disksnapshot default="on" toggle="no"/>
      <acpi default="on" toggle="yes"/>
      <apic default="on" toggle="no"/>
    </features>
  </guest>

</capabilities>

[Mon, 06 May 2019 13:10:40 virt-manager 6964] DEBUG (connection:850) Using domain events
[Mon, 06 May 2019 13:10:40 virt-manager 6964] DEBUG (connection:885) Using network events
[Mon, 06 May 2019 13:10:40 virt-manager 6964] DEBUG (connection:905) Using storage pool events
[Mon, 06 May 2019 13:10:40 virt-manager 6964] DEBUG (connection:924) Using node device events
[Mon, 06 May 2019 13:10:40 virt-manager 6964] DEBUG (connection:804) storage pool refresh event: pool=default
[Mon, 06 May 2019 13:10:40 virt-manager 6964] DEBUG (connection:1172) network=default status=Active added
[Mon, 06 May 2019 13:10:40 virt-manager 6964] DEBUG (connection:1172) pool=default status=Active added
[Mon, 06 May 2019 13:10:40 virt-manager 6964] DEBUG (connection:804) storage pool refresh event: pool=Share
[Mon, 06 May 2019 13:10:40 virt-manager 6964] DEBUG (connection:1172) domain=Deepin status=Running added
[Mon, 06 May 2019 13:10:40 virt-manager 6964] DEBUG (connection:1172) pool=Share status=Active added
[Mon, 06 May 2019 13:10:40 virt-manager 6964] DEBUG (connection:565) conn=qemu:///system changed to state=Active
[Mon, 06 May 2019 13:10:45 virt-manager 6964] DEBUG (serialcon:17) Using VTE API 2.91
[Mon, 06 May 2019 13:10:46 virt-manager 6964] DEBUG (guest:266) Setting Guest osinfo <_OsVariant name=generic>
[Mon, 06 May 2019 13:10:46 virt-manager 6964] DEBUG (details:692) Showing VM details: <vmmDomain name=Deepin id=0x7f520c0fe168>
[Mon, 06 May 2019 13:10:46 virt-manager 6964] DEBUG (engine:388) window counter incremented to 2
[Mon, 06 May 2019 13:10:46 virt-manager 6964] DEBUG (console:740) Starting connect process for proto=spice trans= connhost=127.0.0.1 connuser= connport= gaddr=127.0.0.1 gport=None gtlsport=None gsocket=None
[Mon, 06 May 2019 13:10:46 virt-manager 6964] DEBUG (viewers:593) Requesting fd for channel: <SpiceClientGLib.DisplayChannel object at 0x7f51fe047c60 (SpiceDisplayChannel at 0x561eb30d0240)>
[Mon, 06 May 2019 13:10:46 virt-manager 6964] DEBUG (console:863) Viewer connected
[Mon, 06 May 2019 13:10:46 virt-manager 6964] DEBUG (viewers:593) Requesting fd for channel: <SpiceClientGLib.CursorChannel object at 0x7f51fe04ebd0 (SpiceCursorChannel at 0x561eb330a2c0)>
[Mon, 06 May 2019 13:10:46 virt-manager 6964] DEBUG (viewers:593) Requesting fd for channel: <SpiceClientGLib.UsbredirChannel object at 0x7f51fe053798 (SpiceUsbredirChannel at 0x561eb330c220)>
[Mon, 06 May 2019 13:10:46 virt-manager 6964] DEBUG (viewers:593) Requesting fd for channel: <SpiceClientGLib.UsbredirChannel object at 0x7f51fe053798 (SpiceUsbredirChannel at 0x561eb330c470)>
[Mon, 06 May 2019 13:10:46 virt-manager 6964] DEBUG (viewers:593) Requesting fd for channel: <SpiceClientGLib.RecordChannel object at 0x7f51fe053798 (SpiceRecordChannel at 0x561eb0a83ca0)>
[Mon, 06 May 2019 13:10:46 virt-manager 6964] DEBUG (viewers:593) Requesting fd for channel: <SpiceClientGLib.PlaybackChannel object at 0x7f51fe053798 (SpicePlaybackChannel at 0x561eb0a83ed0)>
[Mon, 06 May 2019 13:10:46 virt-manager 6964] DEBUG (viewers:593) Requesting fd for channel: <SpiceClientGLib.InputsChannel object at 0x7f51fe057b40 (SpiceInputsChannel at 0x561eb330a4e0)>

Still cannot get OpenGL working setting listen type to 'none' the windows just close when without opengl and listen to none it works.

Any ideas on getting openGL to work with Virtual Machine Manager?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by