Bug 478295

Summary: KDE Neon installed under a Virtual Machine (QEMU or VirtualBox) hangs on GRUB following a System Upgrade using offline updates
Product: [KDE Neon] neon Reporter: funkybomber
Component: Live/Install imagesAssignee: Neon Bugs <neon-bugs>
Status: RESOLVED FIXED    
Severity: grave CC: akselmo, carlosdemaine, jr, nate, neon-bugs, sitter
Priority: VHI Keywords: efficiency, qt6
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Step 1. KDE Neon system upgrade
Step 2. Click restart now
Step 3. Install upgrades and restart
Step 4. The system hangs here at GRUB

Description funkybomber 2023-12-09 09:17:42 UTC
Created attachment 164032 [details]
Step 1. KDE Neon system upgrade

SUMMARY
***
After I install KDE Neon Unstable Edition in a virtual machine if I do a System Upgrade through Discover and a restart (as requested by the system) then the system after reboot is going to hang at the GRUB menu. The system hangs at this state whether I press ENTER to select the first option "Neon GNU/Linux" or I let the timer to reach 0. This bug affects X11 and Wayland equally. I have replicated the bug in both QEMU v4.0.0 and the latest versions of VirtualBox 7.0.x

Significance/Rationale:
1) A lot of casual uses might prefer to test KDE Neon on a VM before they give it a spin on bare metal. If it does not work in a VM they might be hesitant to install it on their actual PC.
2) Some developers/testers might not have a spare PC on which to test & develop KDE. In such cases having KDE Neon work properly in a VM is vital.
***


STEPS TO REPRODUCE
1. Install KDE Neon Unstable edition under QEMU v4.0.0 or Virtualbox v7.0.x
2. Do a system upgrade as per attached images
3. The system hangs in the GRUB menu as per the attached image.

OBSERVED RESULT
The system hangs at the GRUB menu. Even after a hard reboot/shutdown of the virtual machine it cannot continue past this stage.

EXPECTED RESULT
The system does not hang at the GRUB menu. It boots the operating system.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.90.90
KDE Frameworks Version: 5.264.0
Qt Version: 6.6.0
Kernel version: 6.2.0-37-generic (64-bit)
Graphics Platform: Wayland

Tested in a Virtual Machine (in QEMU v4.0.0) with the following specs:
Processor: 2 × Intel® Core™ i3-4150 CPU @ 3.50GHz
Memory: 3.8 GiB of RAM
Graphics Processor: llvmpipe
Manufacturer: QEMU
Product name: Standard PC (Q35 + ICH9, 2009)
System version: pc-q35-6.2
Comment 1 funkybomber 2023-12-09 09:18:35 UTC
Created attachment 164033 [details]
Step 2. Click restart now
Comment 2 funkybomber 2023-12-09 09:19:10 UTC
Created attachment 164034 [details]
Step 3. Install upgrades and restart
Comment 3 funkybomber 2023-12-09 09:19:39 UTC
Created attachment 164035 [details]
Step 4. The system hangs here at GRUB
Comment 4 Carlos De Maine 2023-12-20 00:05:10 UTC
can confirm this happens in qemu and virtualbox only in offline mode.  normal installation in discover and then reboot no issues.
Comment 5 Nate Graham 2024-02-12 17:02:09 UTC
*** Bug 481056 has been marked as a duplicate of this bug. ***
Comment 6 Nate Graham 2024-02-12 17:02:59 UTC
Can confirm.
Comment 7 Akseli Lahtinen 2024-02-12 17:39:26 UTC
I can repro if VM uses BIOS, but if the VM uses UEFI, it seems to work
Comment 8 Harald Sitter 2024-02-12 17:43:21 UTC
sudo apt purge grub-theme-breeze && sudo update-grub

should also work around the problem
Comment 9 Harald Sitter 2024-02-14 15:55:44 UTC
Should be "fixed" by https://invent.kde.org/plasma/breeze-grub/-/merge_requests/4 in 6.0 but considering I don't know why it broke and also not why the fix fixes it this probably deserves some testing.

Packages will be available momentarily in neon unstable and testing.