OpenGL로 QEMU를 다시 컴파일했지만 virt-manager 또는 libvirt에서 이 QEMU가 Spice OpenGL을 지원하지 않는다고 알려줍니다.

OpenGL로 QEMU를 다시 컴파일했지만 virt-manager 또는 libvirt에서 이 QEMU가 Spice OpenGL을 지원하지 않는다고 알려줍니다.

이 블로그에 따르면 virtio-gpu를 사용하고 싶습니다.

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

데비안 테스트를 사용하고 있지만 실행 시 공식 데비안 소스의 QEMU가 OpenGL을 지원하지 않습니다.

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

그것은 말했다

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

그래서 이러한 옵션을 사용하여 QEMU를 다시 컴파일했습니다.

성공 후 달렸을 때

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

다시, 창문을 시작하고 계속했습니다.

그런데 내가 추가했을 때

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

내 libvirt domian 파일에 복사하고 시작했습니다. libvirt 프롬프트:

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

이미 다음 패키지를 설치했습니다.

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

나는 발견했다거기QEMU OpenGL 지원을 위한 libvirt 패치입니다.

+    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;
+        }

virQEMUCapsGet하지만 이미 OpenGL 지원으로 QEMU를 컴파일했기 때문에 QEMU 기능을 얻는 방법이 무엇인지 모르겠습니다 .

관련 정보