Broken login on jammy VM using wayland, on a jammy host

Bug #1969524 reported by Andreas Hasenack
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
osinfo-db (Ubuntu)
Fix Released
Critical
Unassigned

Bug Description

Impact
------
If you use virt-manager or gnome-boxes from a 22.04 host to install a 22.04 VM, the VM tries to use Wayland by default and only shows a black screen (caused by bug #1971195).

Test Case
---------
1. Install the osinfo-db update and gnome-boxes
2. Close GNOME Boxes if it's running. Open GNOME Boxes.
3. Click the + icon, then Create virtual machine from file. Select your Ubuntu 22.04 desktop ISO.
4. Follow the prompts to create your box.
5. After it finishes installing, click the box. Log in. The screen should show like normal.

What Could Go Wrong
-------------------
This disables the 3D Acceleration (virgl) feature. The 3D Acceleration feature is disabled by default (you have to manually enable it even after installing a distro where it is offered).

And you have to toggle the switch to keep it working:
https://gitlab.gnome.org/GNOME/gnome-boxes/-/issues/759#note_1386057

It's not clear why this black screen bug occurs, but there is an easy fix to revert a not very useful feature that only landed in 22.04 about a week ago.

Jeremy Bícha (jbicha)
description: updated
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

The suggestion worked. With this diff:

--- ubuntu-18.04.xml 2022-04-19 17:30:37.918180255 -0300
+++ /usr/share/osinfo/os/ubuntu.com/ubuntu-18.04.xml 2022-04-19 17:30:42.598283410 -0300
@@ -49,10 +49,6 @@
         <storage>16106127360</storage>
       </recommended>
     </resources>
- <devices>
- <device id="http://pcisig.com/pci/1af4/1050"/>
- <!-- virtio1.0-gpu -->
- </devices>
     <media arch="x86_64" live="true">
       <url>https://releases.ubuntu.com/releases/bionic/ubuntu-18.04.6-desktop-amd64.iso</url>
       <iso>

I could login on the jammy vm without having to switch to Xorg.

This is not a review: I don't know what other impact the suggested change has.

Jeremy Bícha (jbicha)
description: updated
Changed in osinfo-db (Ubuntu):
importance: Undecided → Critical
status: New → In Progress
Jeremy Bícha (jbicha)
Changed in osinfo-db (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package osinfo-db - 0.20220214-1ubuntu2

---------------
osinfo-db (0.20220214-1ubuntu2) jammy; urgency=medium

  * Add patch to disable experimental 3D Acceleration feature for Ubuntu guests
    (LP: #1969524)

 -- Jeremy Bicha <email address hidden> Tue, 19 Apr 2022 17:47:41 -0400

Changed in osinfo-db (Ubuntu):
status: Fix Committed → Fix Released
Benjamin Drung (bdrung)
description: updated
Revision history for this message
Benjamin Drung (bdrung) wrote :

The Ubuntu patch disables virtio-gpu for all Ubuntu guests, but the final version merged upstream [1] only disables virtio-gpu for the problematic Ubuntu 22.04.0, but keeps it for all other Ubuntu >= 18.04 releases.

Since QXL has problems on its own [2], please enable virtio-gpu again for all supported Ubuntu guests with the exception of Ubuntu 22.04.

[1] https://gitlab.com/libosinfo/osinfo-db/-/merge_requests/441
[2] https://lists.ubuntu.com/archives/ubuntu-devel/2022-August/042255.html

Revision history for this message
Benjamin Drung (bdrung) wrote :

Enabling virtio-gpu for Ubuntu 18.04 to 21.10 and >= 22.10 again is tracked in bug #1985148.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.