quickemu-project / quickemu

Quickly create and run optimised Windows, macOS and Linux virtual machines
MIT License
10.67k stars 465 forks source link

Black screen after login with Xubuntu 22.04 #454

Closed ali1234 closed 2 years ago

ali1234 commented 2 years ago

Expected behaviour

After installing Xubuntu and logging in, the Xubuntu desktop should be displayed.

Actual behaviour

After logging in, the screen is black.

Steps to reproduce the behaviour

Run the following commands:

quickget xubuntu 22.04
quickemu --vm xubuntu-22.04.conf

Follow the installation steps, reboot the VM, and log in at the login screen.

Quickemu output

al@al-desktop:~/quickemu$ quickemu --vm xubuntu-22.04.conf 
Quickemu 4.0 using /usr/bin/qemu-system-x86_64 v6.2.0
 - Host:     Ubuntu 22.04.1 LTS running Linux 5.15 (al-desktop)
 - CPU:      Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
 - CPU VM:   1 Socket(s), 2 Core(s), 2 Thread(s), 8G RAM
 - BOOT:     EFI (Linux), OVMF (/usr/share/OVMF/OVMF_CODE_4M.fd), SecureBoot (off).
 - Disk:     xubuntu-22.04/disk.qcow2 (16G)
 - Display:  SDL, virtio-vga, GL (on), VirGL (on)
 - ssh:      On host:  ssh user@localhost -p 22220
 - SPICE:    On host:  spicy --title "xubuntu-22.04" --port 5930 --spice-shared-dir /home/al/Public
 - WebDAV:   On guest: dav://localhost:9843/
 - 9P:       On guest: sudo mount -t 9p -o trans=virtio,version=9p2000.L,msize=104857600 Public-al ~/Public
 - Monitor:  On host:  nc -U "xubuntu-22.04/xubuntu-22.04-monitor.socket"
             or     :  socat -,echo=0,icanon=0 unix-connect:xubuntu-22.04/xubuntu-22.04-monitor.socket
 - Serial:   On host:  nc -U "xubuntu-22.04/xubuntu-22.04-serial.socket"
             or     :  socat -,echo=0,icanon=0 unix-connect:xubuntu-22.04/xubuntu-22.04-serial.socket
 - Process:  Starting xubuntu-22.04.conf as xubuntu-22.04 (235262)
---
al@al-desktop:~/quickemu$ gl_version 46 - core profile enabled
GLSL feature level 460

Linux Distribution & Kernel

al@al-desktop:~$ bash
al@al-desktop:~$ lsb_release --all
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:    22.04
Codename:   jammy
al@al-desktop:~$ uname -a
Linux al-desktop 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
github-actions[bot] commented 2 years ago

Hello there πŸ‘‹ Thanks for submitting your first issue to the Quickemu project πŸ› We'll try and take a look at your issue soon ⏲

In the meantime you might want to join the Wimpys World Discord πŸ—£ where we have a large community of Linux 🐧 enthusiasts and passionate open source developers πŸ§‘β€πŸ’»

You might also be interested in following Wimpys World Twitch πŸ“‘ channel where Wimpy streams let's code video, including this project, several times a week. A back catalog of past live stream and other Linux related content is available on Wimpys World YouTube πŸ“Ί channel.

flexiondotorg commented 2 years ago

I can't reproduce this.

ali1234 commented 2 years ago

Tested on Xubuntu 22.04 host - same result.

flexiondotorg commented 2 years ago

Please update the first post with the issue template completed.

ali1234 commented 2 years ago

Done.

flexiondotorg commented 2 years ago

Thanks! I've reproduced this on AMD and NVIDIA graphics using QEMU 6.2.0 and QEMU 7.0. The QEMU sdl (default) and gtk displays exhibit the black screen issue you describe, but spice and spice-app work correctly (using git master).

There are three workarounds:

This is not a bug with Quickemu, given it is just a wrapper for QEMU. I observe the same issue with Manjaro XFCE and the same workarounds apply.

I'm going to close this issue as it looks like this is a known incompatibility with the xfwm4 compositor and VirGL when xfwm4's vblank_mode uses glx, which is the default.

ali1234 commented 2 years ago

What did you do differently that allowed you to reproduce it when you couldn't before?

flexiondotorg commented 2 years ago

I usually launch my VMs via Quickgui which uses SPICE by default.