ogra1 / qemu-virgil-snap

22 stars 12 forks source link

spice error after plasma mobile installation #11

Open StereoFox opened 3 years ago

StereoFox commented 3 years ago

After installing KDE plasma mobile on qemu I am greeted with a black screen after boot.

I am Following the instructions at: https://docs.plasma-mobile.org/DevGuide.html

Everything runs smoothly, from installing snap with

sudo snap install qemu-virgil
sudo snap connect qemu-virgil:kvm

To running the initial .iso and installing it to a raw qemu-img

However, after installing the image with calamares and booting the freshly installed virtual machine with

qemu-virgil -device virtio-vga,virgl=on -display gtk,gl=on -m 2G -enable-kvm -boot order=d -drive file=~/virt/plamodisk,format=raw

I am greeted with a black boot screen. This is in their official documentation and I cant seem to find anyone else having the issue specifically with plasma mobile.

Terminal output:

pci id for fd 15: 1002:731f, driver (null)
libEGL warning: DRI3: No driver found
pci id for fd 15: 1002:731f, driver (null)
pci id for fd 16: 1002:731f, driver (null)
libEGL warning: DRI2: failed to create dri screen
gl_version 33 - core profile enabled

I tried running it with some different parameters: qemu-system-x86_64 -boot menu=on -drive file=~/virt/plamodisk,format=raw -vga virtio -display gtk,gl=on -m 2G -enable-kvm

Terminal output:


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

My search has led me to believe it has something to do with the spice-gtk client, but unfortunately I am pretty new with Linux and I am unsure exactly what that means. Normally I'd just try to find the correct package and install it with apt but since qemu-virgil is on snap and I am unsure if I can mix the two.

ogra1 commented 3 years ago

the stable channel carries the rather old qemu 3.x, try switching to the edge channel:

sudo snap refresh --edge qemu-virgil

and see if that helps ... (also note that your second command uses a deb installed qemu ... (you are using qemu-system-x86_64 as command)

StereoFox commented 3 years ago

Thanks for the quick response @ogra1, I ran sudo snap refresh --edge qemu-virgil as suggested and tried to run qemu-virgil -device virtio-vga,virgl=on -display gtk,gl=on -m 2G -enable-kvm -boot order=d -drive file=~/virt/plamodisk,format=raw again.

Now I am greeted with

qemu-system-x86_64: egl: eglGetDisplay failed
qemu-system-x86_64: OpenGL is not supported by the display

qemu-virgil version: qemu-virgil 4.2.0 74 latest/edge ogra -

ogra1 commented 3 years ago

try using -display sdl,gl=on instead of -display gtk,gl=on

StereoFox commented 3 years ago

Thanks @ogra1, the window now appears however it goes back to the black screen during boot. There's a new error message, however.

Command:qemu-virgil -device virtio-vga,virgl=on -display sdl,gl=on -m 2G -enable-kvm -boot order=d -drive file=~/virt/plamodisk,format=raw

Output:

/usr/share/libdrm/amdgpu.ids: No such file or directory
gl_version 46 - core profile enabled
GLSL feature level 430

Mesa Version: OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.3.1 - kisak-mesa PPA

Graphics Card: 0a:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] (rev c4) Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] Kernel driver in use: amdgpu Kernel modules: amdgpu

Edit: I found this topic here https://forum.snapcraft.io/t/problem-with-libdrm-and-amdgpu-pro/9421/14

Is this still an ongoing issue with snapd?