<div dir="ltr"><div>Hello.</div><div><br></div><div>I just want to use an Arch Linux guest with OpenGL 3D acceleration on with Spice.</div><div>It works with Spice when the OpenGL acceleration is disabled.</div><div>But when I enable it (with vitio graphics with accel3d yes of course), I only see a black screen, but when the VM boots I can interact with it through the keyboard blindly.</div><div>Please see my forum thread here for more:<br></div><div><a href="https://forum.manjaro.org/t/qemu-kvm-vm-in-virt-manager-is-running-with-a-black-screen-when-opengl-acceleration-is-turned-on/138632">https://forum.manjaro.org/t/qemu-kvm-vm-in-virt-manager-is-running-with-a-black-screen-when-opengl-acceleration-is-turned-on/138632</a></div><div><br></div><div>I also tested all this:</div><div><br></div>Working with no acceleration with Spice without gl=on in -display:<br>qemu-system-x86_64 -drive file=/home/filip/VM/archlinux.qcow2 -m 8192 -enable-kvm -M q35 -cpu host -smp 12,sockets=1,cores=12,threads=1 -display spice-app -usb -device usb-tablet -bios /usr/share/ovmf/x64/OVMF_CODE.fd -boot order=c -device virtio-vga,virgl=on<br><br><br>Not working with Spice with gl=on in -display, remote-viewer closes instantly:<br>qemu-system-x86_64 -drive file=/home/filip/VM/archlinux.qcow2 -m 8192 -enable-kvm -M q35 -cpu host -smp 12,sockets=1,cores=12,threads=1 -display spice-app,gl=on -usb -device usb-tablet -bios /usr/share/ovmf/x64/OVMF_CODE.fd -boot order=c -device virtio-vga,virgl=on<br><br>    Error: qemu-system-x86_64: warning: Spice: dcc.c:664:dcc_push_monitors_config: monitors_config is NULL<br>    <br>    <br>Probably Working with acceleration(just no graphical output) without Spice with -display gtk,gl=on<br>qemu-system-x86_64 -drive file=/home/filip/VM/archlinux.qcow2 -m 8192 -enable-kvm -M q35 -cpu host -smp 12,sockets=1,cores=12,threads=1 -display gtk,gl=on -usb -device usb-tablet -bios /usr/share/ovmf/x64/OVMF_CODE.fd -boot order=c -device virtio-vga,virgl=on<br><br>    No error just black screen.<br><br>    <br>Working with acceleration without Spice, just QEMU SDL:<br>qemu-system-x86_64 -drive file=/home/filip/VM/archlinux.qcow2 -m 8192 -enable-kvm -M q35 -cpu host -smp 12,sockets=1,cores=12,threads=1 -display sdl,gl=on -usb -device usb-tablet -bios /usr/share/ovmf/x64/OVMF_CODE.fd -boot order=c -device virtio-vga,virgl=on<br> <br> <br>Working with with Spice with acceleration with EGL-HEADLESS, gl=on in -display does not matter here, it is automatic/implied:<br>qemu-system-x86_64 -name Arch -drive file=/home/filip/VM/archlinux.qcow2 -m 8192 -enable-kvm -M q35 -cpu host -smp 12,sockets=1,cores=12,threads=1 -display egl-headless,gl=on -usb -device usb-tablet -bios /usr/share/ovmf/x64/OVMF_CODE.fd -boot order=c -device virtio-vga,virgl=on -spice disable-ticketing,image-compression=off,seamless-migration=on,unix,addr=/run/user/1000/spice.sock<br><br>remote-viewer --verbose --debug --spice-debug spice+unix:///run/user/1000/spice.sock<br><br><br>Working SDL with acceleration, also can connect with Spice but see black screen but can use keyboard and mouse and see output on qemu sdl window:<br>qemu-system-x86_64 -name Arch -drive file=/home/filip/VM/archlinux.qcow2 -m 8192 -enable-kvm -M q35 -cpu host -smp 12,sockets=1,cores=12,threads=1 -usb -device usb-tablet -bios /usr/share/ovmf/x64/OVMF_CODE.fd -boot order=c -device virtio-vga,virgl=on -spice unix,addr=/run/user/1000/spice.sock,disable-ticketing,image-compression=off,seamless-migration=on -display sdl,gl=on<br><br><br>Not working Remote Viewer opens but no output just "Connected to graphic server" in the middle of the window.<br>qemu-system-x86_64 -name Arch -drive file=/home/filip/VM/archlinux.qcow2 -m 8192 -enable-kvm -M q35 -cpu host -smp 12,sockets=1,cores=12,threads=1 -usb -device usb-tablet -bios /usr/share/ovmf/x64/OVMF_CODE.fd -boot order=c -device virtio-vga,virgl=on -spice gl=on,unix,addr=/run/user/1000/spice.sock,disable-ticketing,image-compression=off,seamless-migration=on<br><br>remote-viewer --verbose --debug --spice-debug spice+unix:///run/user/1000/spice.sock<div><br></div><div>I guess the problem when trying with virt-manager is the same as when trying with -display spice-app,gl=on.<br></div><div><br></div><div>Running on Manjaro linux with Nvidia GT630 graphics and Qemu version 4.2.<br></div><div>Any help is appreciated.<br></div><div>Thank you.<br></div></div>