Intermittent mouse issue with VirtualBox 6.1.34

Discussions about using Linux guests in VirtualBox.
Post Reply
jlauha
Posts: 4
Joined: 31. May 2022, 11:29

Intermittent mouse issue with VirtualBox 6.1.34

Post by jlauha »

Host: Windows 10, Core i7-8700K, with Nested VT-x and Nested Paging enabled
Guest: Ubuntu 22.04

When booting the Guest OS, occasionally mouse support works only partially:
  • Mouse clicks work in the left-side of the dock, but not with rest of the desktop
  • Mouse cursor is correctly set and shows everywhere
  • After right-clicking a dock item the context menu can be properly clicked
  • In full-screen mode additionally the small top-right triple icon menu works as well (but not in windowed mode)
  • Keyboard support seems to work properly, and if I e.g. open Terminal from the dock, keyboard input for the terminal works although mouse input doesn't work.
  • Switching between PS/2 or Tablet as VM Pointing Device setting doesn't seem to affect the issue.
After powering off and starting guest again, there is a chance that the mouse support works properly. But next time the problem is likely to happen again.
During guest startup there is also error: "[FAILED] Failed to start vboxadd-service.service".

Attached: two specimens of logs where mouse support works and when it does not.
Attachments
VBox_logs.zip
(171.2 KiB) Downloaded 7 times
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Intermittent mouse issue with VirtualBox 6.1.34

Post by mpack »

Topic moved to "Linux Guests", since the host OS is almost certainly not relevant. Also not relevant is the nested VT-x setting, since AFAICS this is not a nested VM scenario.

IMO your problem likely has to do with compiling the GAs against the correct kernel headers, but confirmation will have to await the attention of an experienced Linux user.
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Intermittent mouse issue with VirtualBox 6.1.34

Post by fth0 »

VBox.log.1.mouse_not_working file wrote:
VMMDev: Guest Log: vboxguest: Successfully loaded version 6.1.34 r150636
This is the key log message indicating that the VirtualBox vboxguest kernel module was built correctly.

FWIW, your problem has been reported by a few other users of Ubuntu 22.04 guests, but I don't recall any solution so far.

Does anybody reading this thread have an Ubuntu 22.04 guest without this problem?
AndyCot
Posts: 296
Joined: 29. Feb 2020, 03:04

Re: Intermittent mouse issue with VirtualBox 6.1.34

Post by AndyCot »

I have XUbuntu 22.04 guest working, but it uses XFCE as the window manager.
jlauha
Posts: 4
Joined: 31. May 2022, 11:29

Re: Intermittent mouse issue with VirtualBox 6.1.34

Post by jlauha »

Based on the comments here it occurred to me to try to disable Wayland (before trying a different window manager), by editing /etc/gdm3/custom.conf.

After doing a few VM restarts, the mouse has worked correctly every time. :D

So it seems like the issue has something to do with Wayland.
I attached a fresh log where wayland is disabled and mouse works.
Attachments
VBox.log.5.wayland-disabled_mouse_working.zip
(40.39 KiB) Downloaded 19 times
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Intermittent mouse issue with VirtualBox 6.1.34

Post by scottgus1 »

jlauha wrote:it seems like the issue has something to do with Wayland.
This might be good to post on the Bugtracker, with both logs and a link to this topic in the ticket.
jlauha
Posts: 4
Joined: 31. May 2022, 11:29

Re: Intermittent mouse issue with VirtualBox 6.1.34

Post by jlauha »

scottgus1 wrote:This might be good to post on the Bugtracker, with both logs and a link to this topic in the ticket.
Thanks for the tip, I did that.
https://www.virtualbox.org/ticket/20967
arQon
Posts: 228
Joined: 1. Jan 2017, 09:16
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Ubuntu 16.04 x64, W7

Re: Intermittent mouse issue with VirtualBox 6.1.34

Post by arQon »

fth0 wrote:Does anybody reading this thread have an Ubuntu 22.04 guest without this problem?
I do - but like AndyCot (and apparently everyone else with a working VM) it's running X11, not Wayland.

Given the OP's comment about "the LHS of the dock" working, my WAG would be that the real issue is just another variant of the (now fairly ancient) problems with window-resizing at guest startup in VBox, especially given the Wayland teams refusal to support RandR - but like I say, that's just WAG. :)
Post Reply