Summary: | After plasma6 update, VirtualBox VM is unusable with 3D acceleration turned off | ||
---|---|---|---|
Product: | [I don't know] kde | Reporter: | mhamedbj <mhamed.benjmaa> |
Component: | general | Assignee: | Unassigned bugs mailing-list <unassigned-bugs> |
Status: | RESOLVED DOWNSTREAM | ||
Severity: | normal | CC: | arraybolt3, bizyaev, cavendish.qi, jr, kde, nate, neon-bugs, nicolas.fella, ripper, sitter |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=482432 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
mhamedbj
2024-02-28 15:43:23 UTC
Same behavior if you try install new KDE NEON on VirtualBox neon-user-20240228-1346.iso Virtualbox 7.0.14 RAM 16go 4cpu 128Mo Video memory (VMSVGA) Black screen , no login , no mouse, no way to change session via ctrl alt fX regards It help for my VM to enable "3D acceleration" (with VMSVGA as graphics controller). BINGO !!! thanks Not a Neon bug, the same happens on Fedora I've investigated a bit further. To do so, I enabled 3d acceleration and installed Neon, then disabled 3d acceleration again. If you do *not* enable auto-login, you'll get as far as the SDDM login screen. You can now switch TTYs (e.g. by hitting (Right-)CTRL+F3). I've updated the guest-additions manually from the command line to match the version of the VBox on the host (in my case: 7.0.14 is running on host, the GuestAdditions now are also installed at version 7.0.14 inside the Guest - check with "(Right-)CTRL+N" and selecting "runtime"). This does not make any difference, but at least I'm fairly certain now, that the mismatch of the GuestAdditions shipped by Neon (6.0.0) and the actual VBox Host version are not to blame. From journalctl, I can see the failed attempts to log in to a Wayland session (X session works), but I have no clue if any of the messages actually mean anything. When logging in, quite a few things seem to get done, e.g. Finished KSpash "ready" Stage. or Reached target Startup of XDG autostart applications. A few warnings or suspicious messages that I noticed are: - VMware: No 3D enables (0, success). - libEGL warning: egl: failed to create dri2 screen (happens quite often) - qt.qpa.wayland: Creating a fake screen in order for Qt not to crash (happens quite often) I don't know how to debug further ... So the issue here is that changes were made in KWin that can't be easily reverted that result in issues in VMs with severely outdated graphics drivers. 3D acceleration should be considered mandatory. Not only will it resolve this issue, but it will result in a better UX in the VM as well because graphical effects and animations will actually start working. I'll update Neon's website at least to mention this, and we'll work on communicating it more broadly. Did any one notice that mouse mouvement is waaaaayyyy slower and graphics responsiveness in general on Wayland vs X , X is mush smoother A possibly relevant merge request was started @ https://invent.kde.org/websites/neon-kde-org/-/merge_requests/19 I've also written a blog post (https://pointieststick.com/2024/03/08/psa-enable-3d-acceleration-in-your-virtualbox-vms/) and started a conversation on the vbox-dev mailing list (https://www.virtualbox.org/pipermail/vbox-dev/2024-March/010257.html). Blindly enabling 3d acceleration in a VM could be dangerous for security reasons - the 3d drivers provide a potential for VM escape. A solution that works for me is to change the graphics controller to VBoxSVGA - this does not require enabling 3d acceleration, and I get a full Plasma 6 desktop. Seems to work so far - Firefox is working, video on Reddit is working, Plasma Welcome is working. See also https://bugs.kde.org/show_bug.cgi?id=482965 for KDE 6 vm in VMware Fusion on MacBook Pro M3 Max. Git commit c69bb4c79330ad644f2257ae8c9041882644047d by Nate Graham. Committed on 08/03/2024 at 16:02. Pushed by sitter into branch 'master'. Tell people to enable 3D acceleration in their VirtualBox VMs Non-3D accelerated VirtualBox graphics drivers are outdated and don't support KWin well. In Plasma 6, this problem has become worse due to changes made in KWin that aren't easily reverted or conditionalized. So let's notify people that they need to enable 3D acceleration if they use neon in a virtualBox VM. M +3 -0 download.php https://invent.kde.org/websites/neon-kde-org/-/commit/c69bb4c79330ad644f2257ae8c9041882644047d The TL;DR here is that the default VirtualBox graphics driver (VBSVGA) driver is broken-ish, and has been for years, and a necessary change in KWin now requires that it not be broken in that way. Ultimately VirtualBox just needs to fix their driver or make a different one used by default. Until one of those things happen, users of VirtualBox will need to alter their machine settings in one of the following ways: - Enable 3D acceleration if there are no security concerns - Switch to the graphics driver to VBoxSVGA if there are security concerns |