View previous topic :: View next topic |
Author |
Message |
sdauth Apprentice


Joined: 19 Sep 2018 Posts: 241 Location: Ásgarðr
|
Posted: Fri Jun 05, 2020 1:13 pm Post subject: qemu virglrenderer (virtio), black screen with X |
|
|
Hello,
(I post this here as the end goal is to play some games )
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 |
|
 |
sdauth Apprentice


Joined: 19 Sep 2018 Posts: 241 Location: Ásgarðr
|
Posted: Sat Jun 06, 2020 8:54 pm Post subject: |
|
|
So, the only thing I hadn't tried was to test with a Gentoo VM, which I just did. And.. it works.
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 |
|
 |
x90e n00b

Joined: 30 Sep 2020 Posts: 40
|
Posted: Thu Oct 01, 2020 11:13 pm Post subject: |
|
|
I had this issue when the desktop was rendering off screen, it just looked black after login but when I pressed win key+ d for the desktop or winkey+p in windows for the screen options It allowed me to select "always use screen 2" or "extend among this display" or "duplicate" and after I did that I was able to view the screen. It was like it had multiple monitors and I was viewing the wrong one. |
|
Back to top |
|
 |
|
|
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
|
|