Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
qemu virglrenderer (virtio), black screen with X
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
sdauth
Apprentice
Apprentice


Joined: 19 Sep 2018
Posts: 183
Location: Ásgarðr

PostPosted: Fri Jun 05, 2020 1:13 pm    Post subject: qemu virglrenderer (virtio), black screen with X Reply with quote

Hello,

(I post this here as the end goal is to play some games :o )

So I'm trying to use qemu and virglrenderer* instead of QXL. Unfortunately, all I get is a black screen upon login in the VM (the VM used is ubuntu, I tried also with Debian and Arch Linux VM, same results, also tried with different kernels in each VM)
Strangely, lightdm shows up but after I enter username,password -> black screen.

qemu-4.2.0-r6
virglrenderer-0.8.2

Here is the qemu command line :

Code:
qemu-system-x86_64 -name ubuntu \
                   -enable-kvm \
                   -cpu host \
                   -smp cores=4,threads=1 \
                   -M q35 \
                   -m 8G \
                   -boot order=d \
                   -drive file=ubuntu.img,format=raw,aio=native,cache=none \
                   -machine type=pc,accel=kvm \
                   -vga virtio \
                   -display gtk,gl=on \
                   -soundhw hda


here, display is set to gtk, but same issue if I use sdl

If I set it back to :
Code:
                   -vga qxl \
                   -display gtk,gl=off \

then it works fine again.

*https://www.collabora.com/news-and-blog/blog/2019/08/28/virglrenderer-state-of-virtualized-virtual-worlds/

Some logs :

qemu output (started from terminal) :

Code:
gl_version 43 - core profile enabled
vrend_renderer_fill_caps: Entering with stale GL error: 1280
GLSL feature level 430


(ubuntu vm via ssh) dmesg | grep drm :
Code:
[    9.148029] [drm] pci: virtio-vga detected at 0000:00:02.0
[    9.151260] [drm] virgl 3d acceleration enabled
[    9.151260] [drm] EDID support available.
[    9.152296] [drm] number of scanouts: 1
[    9.152304] [drm] number of cap sets: 2
[    9.152491] [drm] cap set 0: id 1, max-version 1, max-size 308
[    9.152551] [drm] cap set 1: id 2, max-version 2, max-size 688
[    9.152797] [drm] Initialized virtio_gpu 0.1.0 0 for virtio0 on minor 0
[    9.181299] virtio_gpu virtio0: fb0: virtio_gpudrmfb frame buffer device


What is wrong ? Anyone using it with success ?
Back to top
View user's profile Send private message
sdauth
Apprentice
Apprentice


Joined: 19 Sep 2018
Posts: 183
Location: Ásgarðr

PostPosted: Sat Jun 06, 2020 8:54 pm    Post subject: Reply with quote

So, the only thing I hadn't tried was to test with a Gentoo VM, which I just did. And.. it works. :o
It doesn't explain why it fails with other distro though so I'll leave this thread open just in case someone knows.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum