Recompiled QEMU with OpenGL, but virt-manager or libvirt tells me This QEMU doesn't support spice OpenGL












4















I wanna to use virtio-gpu according to this blog:



https://www.kraxel.org/blog/2016/09/using-virtio-gpu-with-libvirt-and-spice/



I am using Debian testing, but QEMU in offical debian source is not support OpenGL
when I ran



qemu-system-x86_64 -display sdl,gl=on


it said



SDL1 display code has no opengl support.
Please recompile qemu with SDL2, using
./configure --enable-sdl --with-sdlabi=2.0
qemu-system-x86_64: OpenGL support is disabled


so I recompiled QEMU with these options.



After success, when I ran



qemu-system-x86_64 -display sdl,gl=on


again, it started a windows and continued.



But when I added



<graphics type='spice'>
<listen type='none'/>
<gl enable='yes'/>
</graphics>
<video>
<model type='virtio'/>
</video>


to my libvirt domian file and started, libvirt prompt:



error: Failed to start domain debian9-xfce
error: unsupported configuration: This QEMU doesn't support spice OpenGL


I have already installed these package:



gir1.2-spice-client-gtk-3.0=0.33-3.3
libspice-server1=0.13.90-0.2
libvirglrenderer0=0.6.0-2
mesa-utils=8.3.0-5
libepoxy0=1.3.1-3


I spotted there is a libvirt patch for QEMU OpenGL support:



+    if (graphics->data.spice.gl) {
+ if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_SPICE_GL)) {
+ virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
+ _("This QEMU doesn't support spice OpenGL"));
+ goto error;
+ }


But I don't know how does virQEMUCapsGet work to get QEMU capabilities because I have already compile QEMU with OpenGL support.










share|improve this question



























    4















    I wanna to use virtio-gpu according to this blog:



    https://www.kraxel.org/blog/2016/09/using-virtio-gpu-with-libvirt-and-spice/



    I am using Debian testing, but QEMU in offical debian source is not support OpenGL
    when I ran



    qemu-system-x86_64 -display sdl,gl=on


    it said



    SDL1 display code has no opengl support.
    Please recompile qemu with SDL2, using
    ./configure --enable-sdl --with-sdlabi=2.0
    qemu-system-x86_64: OpenGL support is disabled


    so I recompiled QEMU with these options.



    After success, when I ran



    qemu-system-x86_64 -display sdl,gl=on


    again, it started a windows and continued.



    But when I added



    <graphics type='spice'>
    <listen type='none'/>
    <gl enable='yes'/>
    </graphics>
    <video>
    <model type='virtio'/>
    </video>


    to my libvirt domian file and started, libvirt prompt:



    error: Failed to start domain debian9-xfce
    error: unsupported configuration: This QEMU doesn't support spice OpenGL


    I have already installed these package:



    gir1.2-spice-client-gtk-3.0=0.33-3.3
    libspice-server1=0.13.90-0.2
    libvirglrenderer0=0.6.0-2
    mesa-utils=8.3.0-5
    libepoxy0=1.3.1-3


    I spotted there is a libvirt patch for QEMU OpenGL support:



    +    if (graphics->data.spice.gl) {
    + if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_SPICE_GL)) {
    + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
    + _("This QEMU doesn't support spice OpenGL"));
    + goto error;
    + }


    But I don't know how does virQEMUCapsGet work to get QEMU capabilities because I have already compile QEMU with OpenGL support.










    share|improve this question

























      4












      4








      4


      1






      I wanna to use virtio-gpu according to this blog:



      https://www.kraxel.org/blog/2016/09/using-virtio-gpu-with-libvirt-and-spice/



      I am using Debian testing, but QEMU in offical debian source is not support OpenGL
      when I ran



      qemu-system-x86_64 -display sdl,gl=on


      it said



      SDL1 display code has no opengl support.
      Please recompile qemu with SDL2, using
      ./configure --enable-sdl --with-sdlabi=2.0
      qemu-system-x86_64: OpenGL support is disabled


      so I recompiled QEMU with these options.



      After success, when I ran



      qemu-system-x86_64 -display sdl,gl=on


      again, it started a windows and continued.



      But when I added



      <graphics type='spice'>
      <listen type='none'/>
      <gl enable='yes'/>
      </graphics>
      <video>
      <model type='virtio'/>
      </video>


      to my libvirt domian file and started, libvirt prompt:



      error: Failed to start domain debian9-xfce
      error: unsupported configuration: This QEMU doesn't support spice OpenGL


      I have already installed these package:



      gir1.2-spice-client-gtk-3.0=0.33-3.3
      libspice-server1=0.13.90-0.2
      libvirglrenderer0=0.6.0-2
      mesa-utils=8.3.0-5
      libepoxy0=1.3.1-3


      I spotted there is a libvirt patch for QEMU OpenGL support:



      +    if (graphics->data.spice.gl) {
      + if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_SPICE_GL)) {
      + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
      + _("This QEMU doesn't support spice OpenGL"));
      + goto error;
      + }


      But I don't know how does virQEMUCapsGet work to get QEMU capabilities because I have already compile QEMU with OpenGL support.










      share|improve this question














      I wanna to use virtio-gpu according to this blog:



      https://www.kraxel.org/blog/2016/09/using-virtio-gpu-with-libvirt-and-spice/



      I am using Debian testing, but QEMU in offical debian source is not support OpenGL
      when I ran



      qemu-system-x86_64 -display sdl,gl=on


      it said



      SDL1 display code has no opengl support.
      Please recompile qemu with SDL2, using
      ./configure --enable-sdl --with-sdlabi=2.0
      qemu-system-x86_64: OpenGL support is disabled


      so I recompiled QEMU with these options.



      After success, when I ran



      qemu-system-x86_64 -display sdl,gl=on


      again, it started a windows and continued.



      But when I added



      <graphics type='spice'>
      <listen type='none'/>
      <gl enable='yes'/>
      </graphics>
      <video>
      <model type='virtio'/>
      </video>


      to my libvirt domian file and started, libvirt prompt:



      error: Failed to start domain debian9-xfce
      error: unsupported configuration: This QEMU doesn't support spice OpenGL


      I have already installed these package:



      gir1.2-spice-client-gtk-3.0=0.33-3.3
      libspice-server1=0.13.90-0.2
      libvirglrenderer0=0.6.0-2
      mesa-utils=8.3.0-5
      libepoxy0=1.3.1-3


      I spotted there is a libvirt patch for QEMU OpenGL support:



      +    if (graphics->data.spice.gl) {
      + if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_SPICE_GL)) {
      + virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
      + _("This QEMU doesn't support spice OpenGL"));
      + goto error;
      + }


      But I don't know how does virQEMUCapsGet work to get QEMU capabilities because I have already compile QEMU with OpenGL support.







      debian virtualization gpu qemu opengl






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 23 '17 at 15:51









      Komeiji KurokoKomeiji Kuroko

      285




      285






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1253023%2frecompiled-qemu-with-opengl-but-virt-manager-or-libvirt-tells-me-this-qemu-does%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1253023%2frecompiled-qemu-with-opengl-but-virt-manager-or-libvirt-tells-me-this-qemu-does%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Probability when a professor distributes a quiz and homework assignment to a class of n students.

          Aardman Animations

          Are they similar matrix