Youtube: https://youtu.be/RNMMbt66IFw
Screenshot:
Easy reproducible on multiple AMD Ryzen 7/9 Windows/Linux host computers as all guests running Ubuntu (Wayland) flavors are affected after updated kernel versions 6.4/6.5:
- Ubuntu 22.04 / 23.10 Wayland desktops running kernel versions 6.4 and 6.5
- Hosts Windows 10 and any Linux
- VirtualBox versions 6.1.50, 7.0.14 and older
- Corresponding Guest additions installed
- Guest Display settings: 128MB, 3D acceleration unchecked (as 3D graphics acceleration is not supported by VirtualBox)
- Latest Windows 10 host NVidia driver v546.33
Problems:
- Support for Linux kernels 6.4 and 6.5 is recently added to VirtualBox (see Changelog 6.1.50 and 7.0.14) and is very unstable. Screen flickering occurs especially in full screen of the guest and maximized guest window.
- Additionally, the Ubuntu 23.10 / 24.04 installation window does not start or is white (popup asks to quit as there is no GUI response).
- Very slow GUI guest response.
Logs:
Related reproducible graphics/display bugs in VirtualBox 6.1.50 / 7.0.14:
- viewtopic.php?t=110879: vmwgfx failure with Ubuntu kernel upgrade (6.5.0-14)
- viewtopic.php?t=110830: Ubuntu 23.01 / 24.04 can not install!
- viewtopic.php?p=543329#p543329: Ubuntu Server 22.04.3 randomly hangs after ~20 hours of running
- viewtopic.php?t=110887: Kernel 6.6 and GUI freeze
Temporary workarounds until this major issue is fixed in VirtualBox (unknown schedule):
- Option 1: Wait for an updated VirtualBox release which fixes Guest Additions with 6.4 kernels and higher.
- Option 2: Downgrade the guest kernel to 6.3 or lower and reinstalling the Guest additions, or:
- Option 3: May not work for everybody: Select X11 instead of default Wayland on login screen (click gear icon lower right corner) (This may result in other issues like not starting Firefox etc)
- Option 3: Change guest screen resolution in the Ubuntu guest temporary via Settings | Displays | Resolution (which changes Refresh Rate). This helps until the guest window is resized as the display refresh rate is incorrectly configured.
Run the following example commands in the Ubuntu guest to downgrade guest Ubuntu kernel version to 6.3:
Code: Select all
# Identify which kernel version is running
$ uname -r
6.5.0-14-generic
# Install kernel 6.3
$ sudo apt-add-repository -y ppa:cappelikan/ppa
$ sudo apt update
$ sudo apt install mainline-gtk
# Start | "Mainline Kernels" and install kernel 6.3
# Show grub bootmenu to boot the newly installed kernel
$ sudo gedit /etc/default/grub
#GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT_STYLE=menu
#GRUB_TIMEOUT=0
GRUB_TIMEOUT=5
$ sudo update-grub
$ sudo reboot now
# From the Grub boot menu, select Advanced options for Ubuntu | Ubuntu, with Linux 6.3.0-060300-generic | Enter
# Check running kernel
$ uname -r
6.3.0-060300-generic
# Mount VirtualBox guest additions ISO and reinstall
# Make sure that gcc-12 is installed, otherwise the installation will fail
$ sudo apt install build-essential gcc-12
$ cd /media/<user>/media/a/VBox_GAs_6.1.48/
$ sudo ./VBoxLinuxAdditions.run
$ sudo reboot now
# When problem is solved, change Grub bootmenu permanently
$ sudo add-apt-repository ppa:danielrichter2007/grub-customizer
$ sudo apt install grub-customizer
$ grub-customizer
# Tab General Settings | predefined: Advanced options for Ubuntu>Ubuntu, with Linux 6.3.0-060300-generic | Save
# reboot