<div dir="auto"><div>Hi, thanks in advance.<div dir="auto"><br></div><div dir="auto">Only way I got it to work is with qemu on the command line like this:</div><div dir="auto"><br></div><div dir="auto"><span style="font-family:sans-serif;font-size:12.8px">qemu-system-x86_64 -name Arch -drive file=/home/filip/VM/archlinux.</span><span style="font-family:sans-serif;font-size:12.8px">qcow2 -m 8192 -enable-kvm -M q35 -cpu host -smp 12,sockets=1,cores=12,threads=</span><span style="font-family:sans-serif;font-size:12.8px">1 -display egl-headless,gl=on -usb -device usb-tablet -bios /usr/share/ovmf/x64/OVMF_CODE.</span><span style="font-family:sans-serif;font-size:12.8px">fd -boot order=c -device virtio-vga,virgl=on -spice disable-ticketing,image-</span><span style="font-family:sans-serif;font-size:12.8px">compression=off,seamless-</span><span style="font-family:sans-serif;font-size:12.8px">migration=on,unix,addr=/run/</span><span style="font-family:sans-serif;font-size:12.8px">user/1000/spice.sock</span><br style="font-family:sans-serif;font-size:12.8px"><br style="font-family:sans-serif;font-size:12.8px"><span style="font-family:sans-serif;font-size:12.8px">remote-viewer --verbose --debug --spice-debug spice+unix:///run/user/1000/</span><span style="font-family:sans-serif;font-size:12.8px">spice.sock</span><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">I have checked the logs, and yes there were errors they are linked in the Manjaro forum thread, but here you go:</div><div dir="auto"><br></div><a href="https://pastebin.com/pehWEQ0L">https://pastebin.com/pehWEQ0L</a></div><div dir="auto"><br></div><div dir="auto">These are the errors at the bottom:</div><div dir="auto"><div dir="auto">qemu-system-x86_64: warning: Spice: dcc.c:664:dcc_push_monitors_config: monitors_config is NULL</div><div dir="auto">gl_version 33 - core profile enabled</div><div dir="auto">qemu_spice_gl_scanout_texture: failed to get fd for texture</div><div dir="auto"><br></div><div dir="auto">But like I said the VM works even like that but I can use it only blindly through the keyboard, because the screen is just black.</div><div dir="auto"><br></div><div dir="auto"><br></div></div><div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">Dňa st 6. 5. 2020, 20:14 Cole Robinson <<a href="mailto:crobinso@redhat.com">crobinso@redhat.com</a>> napísal(a):<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 5/1/20 7:28 AM, Filip Banák wrote:<br>
> Hello.<br>
> <br>
> I just want to use an Arch Linux guest with OpenGL 3D acceleration on<br>
> with Spice.<br>
> It works with Spice when the OpenGL acceleration is disabled.<br>
> But when I enable it (with vitio graphics with accel3d yes of course), I<br>
> only see a black screen, but when the VM boots I can interact with it<br>
> through the keyboard blindly.<br>
> Please see my forum thread here for more:<br>
> <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" rel="noreferrer noreferrer" target="_blank">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><br>
> <br>
> I also tested all this:<br>
> <br>
> 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<br>
> -enable-kvm -M q35 -cpu host -smp 12,sockets=1,cores=12,threads=1<br>
> -display spice-app -usb -device usb-tablet -bios<br>
> /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<br>
> instantly:<br>
> qemu-system-x86_64 -drive file=/home/filip/VM/archlinux.qcow2 -m 8192<br>
> -enable-kvm -M q35 -cpu host -smp 12,sockets=1,cores=12,threads=1<br>
> -display spice-app,gl=on -usb -device usb-tablet -bios<br>
> /usr/share/ovmf/x64/OVMF_CODE.fd -boot order=c -device virtio-vga,virgl=on<br>
> <br>
>     Error: qemu-system-x86_64: warning: Spice:<br>
> dcc.c:664:dcc_push_monitors_config: monitors_config is NULL<br>
>    <br>
>    <br>
> Probably Working with acceleration(just no graphical output) without<br>
> Spice with -display gtk,gl=on<br>
> qemu-system-x86_64 -drive file=/home/filip/VM/archlinux.qcow2 -m 8192<br>
> -enable-kvm -M q35 -cpu host -smp 12,sockets=1,cores=12,threads=1<br>
> -display gtk,gl=on -usb -device usb-tablet -bios<br>
> /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<br>
> -enable-kvm -M q35 -cpu host -smp 12,sockets=1,cores=12,threads=1<br>
> -display sdl,gl=on -usb -device usb-tablet -bios<br>
> /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<br>
> -display does not matter here, it is automatic/implied:<br>
> qemu-system-x86_64 -name Arch -drive file=/home/filip/VM/archlinux.qcow2<br>
> -m 8192 -enable-kvm -M q35 -cpu host -smp<br>
> 12,sockets=1,cores=12,threads=1 -display egl-headless,gl=on -usb -device<br>
> usb-tablet -bios /usr/share/ovmf/x64/OVMF_CODE.fd -boot order=c -device<br>
> virtio-vga,virgl=on -spice<br>
> disable-ticketing,image-compression=off,seamless-migration=on,unix,addr=/run/user/1000/spice.sock<br>
> <br>
> remote-viewer --verbose --debug --spice-debug<br>
> spice+unix:///run/user/1000/spice.sock<br>
> <br>
> <br>
> Working SDL with acceleration, also can connect with Spice but see black<br>
> 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<br>
> -m 8192 -enable-kvm -M q35 -cpu host -smp<br>
> 12,sockets=1,cores=12,threads=1 -usb -device usb-tablet -bios<br>
> /usr/share/ovmf/x64/OVMF_CODE.fd -boot order=c -device<br>
> virtio-vga,virgl=on -spice<br>
> unix,addr=/run/user/1000/spice.sock,disable-ticketing,image-compression=off,seamless-migration=on<br>
> -display sdl,gl=on<br>
> <br>
> <br>
> Not working Remote Viewer opens but no output just "Connected to graphic<br>
> server" in the middle of the window.<br>
> qemu-system-x86_64 -name Arch -drive file=/home/filip/VM/archlinux.qcow2<br>
> -m 8192 -enable-kvm -M q35 -cpu host -smp<br>
> 12,sockets=1,cores=12,threads=1 -usb -device usb-tablet -bios<br>
> /usr/share/ovmf/x64/OVMF_CODE.fd -boot order=c -device<br>
> virtio-vga,virgl=on -spice<br>
> 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<br>
> spice+unix:///run/user/1000/spice.sock<br>
> <br>
> I guess the problem when trying with virt-manager is the same as when<br>
> trying with -display spice-app,gl=on.<br>
> <br>
> Running on Manjaro linux with Nvidia GT630 graphics and Qemu version 4.2.<br>
> Any help is appreciated.<br>
> Thank you.<br>
<br>
I may not have followed all the details, but have you gotten it working<br>
with any setup via libvirt, or only with qemu on the command line? It<br>
could be libvirt is not granting access to all the needed host resources<br>
correctly, like the drm node path. Check<br>
/var/log/libvirt/qemu/$vmname.log and see if qemu prints and errors<br>
<br>
- Cole<br>
<br>
</blockquote></div></div></div>