Keyboard and Mouse integration enabled, but neither is working

Discussions about using Linux guests in VirtualBox.
Post Reply
phan801
Posts: 3
Joined: 16. Sep 2020, 20:27

Keyboard and Mouse integration enabled, but neither is working

Post by phan801 »

I am on Windows 10 (Host) and was running Ubuntu 18.04 through Virtualbox. My Virtualbox version is 6.1.14.

I was trying to enable bidirectional copying between the host and the virtual machine following the instructions of another post, for a different version of Virtualbox. The steps were:

Code: Select all

sudo apt-get update 
sudo apt-get install virtualbox-guest-x11 
sudo VBoxClient --clipboard
I answered "yes" to the question about maintain or replace a file after the

Code: Select all

sudo apt-get install virtualbox-guest-x11


step.

When I restarted the Virtual Machine for the changes to take effect, I was no longer able to use anything. I can input my password and keyboard and mouse integration seem to be enabled and they are working until I input the password but after that I can no longer click on anything or use any keyboard combination.

I don't know what is going on as I don't really understand what I was doing before, but does anybody have any ideas of what I did wrong and if it can be fixed?
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Keyboard and Mouse integration enabled, but neither is working

Post by scottgus1 »

Moving to Linux Guests, as this is a Guest Additions and guest OS keyboard/mouse response question.

Let's confirm if Guest Additions have been installed correctly:

Start the guest from full power off, not save-state. Run until you see the problem happen, then shut down the guest from within the guest OS if possible. If not possible, close the Virtualbox window for the guest with the Power Off option set.

Please right-click the guest in the main Virtualbox window's guest list, choose Show Log. Save the far left tab's log, zip the log file, and post the zip file, using the forum's Upload Attachment tab.
phan801
Posts: 3
Joined: 16. Sep 2020, 20:27

Re: Keyboard and Mouse integration enabled, but neither is working

Post by phan801 »

Here is the file from the logs.
Attachments
Ubuntu 18.04-2020-09-16-20-57-02.rar
(29.53 KiB) Downloaded 14 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: Keyboard and Mouse integration enabled, but neither is working

Post by scottgus1 »

Try increasing video RAM to maximum.
phan801
Posts: 3
Joined: 16. Sep 2020, 20:27

Re: Keyboard and Mouse integration enabled, but neither is working

Post by phan801 »

I changed the video memory from "Settings" from 16MB to 128MB (maximum). It is still the same. I am not sure if you need the log again, but I attach it in case it is needed.

Also, I just discovered that if I choose Ubuntu Wayland instead of Ubuntu when logging in, everything works as expected. Is there a way to undo what I did before now that I have access to a terminal? In particular how would I undo whatever

Code: Select all

sudo VBoxClient --clipboard
does?
Attachments
Ubuntu 18.04-2020-09-16-22-14-22.rar
(28.26 KiB) Downloaded 9 times
Hoai Ngo
Posts: 1
Joined: 23. Nov 2021, 16:25

Re: Keyboard and Mouse integration enabled, but neither is working

Post by Hoai Ngo »

I have the same problem and try many way but nothing help. Is this problem solved?
my log as below
Attachments
Ubuntu-2021-11-23-21-24-39.7z
(16.97 KiB) Downloaded 8 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: Keyboard and Mouse integration enabled, but neither is working

Post by scottgus1 »

@Hoai Ngo: There are a couple problems with your VM's setup:
00:00:04.481300 VirtualBox VM 6.1.22 r144080 win.amd64 (Apr 28 2021 17:23:11) release log
00:00:17.049517 VMMDev: Guest Additions information report: Version 6.1.26 r145957 '6.1.26_Ubuntu'
00:00:17.793633 VMMDev: Guest Log: VBoxService 5.2.42_Ubuntu r137960 (verbosity: 0) linux.amd64 (Jun 5 2020 08:26:08) release log
The installed Guest Additions are too new for the installed Virtualbox, and you might have a mix of old and new Guest Additions in the VM that may be damaging the VM operation (not certain this last one, but it could be).

Try removing everything related to Virtualbox from the VM's OS, then reinstalling the bundled Guest Additions that come with 6.1.22. See the prerequisites https://www.virtualbox.org/manual/ch02. ... nux-prereq and the GAs install https://www.virtualbox.org/manual/ch04. ... ions-linux.
Post Reply