Mouse disappear in VirtualBox

36

8

I am using latest version of VirtualBox (VirtualBox 4.3.6 for Windows hosts) and after installing any OS and clicking inside of it mouse disappear. It is not visible until I press right CRTL. Anyone know what can cause this problem. I have also installed extension pack.

Dusan Malic

Posted 2013-12-28T13:44:09.603

Reputation: 589

I have had this problem on and off. It seems to be more frequent with 3D acceleration enabled, however. This is different than the "guest additions" problem/solution others have mentioned. – BlackVegetable – 2014-06-12T19:25:52.943

Answers

26

In my case, it worked by changing pointing device from 'PS/2 Mouse' to 'USB Tablet'.

While guest is not running, in VirtualBox
-> select the virtual-guest instance
-> click 'Settings'
-> select 'System' in left panel
-> go to 'Motherboard' tab and in pointing device, choose 'USB Tablet' instead of 'PS/2 Mouse'

Atur

Posted 2013-12-28T13:44:09.603

Reputation: 435

This worked for me. – Sudheer Kumar – 2019-02-04T10:17:08.847

That did a trick for me: CentOS 7.3 inside VBox 6.0.4 – Vladimir Kondratyev – 2019-02-20T07:01:52.713

Worked for me with CentOS7.6.10.10 inside VBox 6.0.4. – dolphus333 – 2019-03-17T12:37:16.893

Fix only worked for awhile. When I switched back to host for awhile, the same issue (mouse not clicking) resurfaced in the guest. Changing guest to full-screen fixed the problem again after that. – dolphus333 – 2019-03-17T12:51:45.373

Worked for me as well – Bogaso – 2020-01-27T21:49:41.403

worked for me too, thank you - VBox 6.0.16 on W10 Host/Guest – En-j – 2020-02-28T07:55:05.580

23

Somehow

Machine -> Disabling Mouse Integration

Then

Machine -> Disabling Mouse Integration 

(yes twice, once to turn it off, once to turn it on again) actually fixed it for me.

Nicolas Modrzyk

Posted 2013-12-28T13:44:09.603

Reputation: 391

Even just disabling it with (right ctrl)+I and then clicking in the guest window and accepting the "enable again?" dialog is sufficient. – tripleee – 2015-04-13T14:02:09.263

The solution in the post just worked for me too (with Ubuntu 16.04 as guest). This might relate to https://www.virtualbox.org/ticket/7945.

– Blaisorblade – 2016-05-09T12:17:40.407

21this fix doesn't work for me – Nicky De Maeyer – 2016-06-14T12:27:17.910

7

Following steps worked for me.

  1. Go to machine settings -> System -> Motherboard.
  2. Select PS/2 mouse as a pointing device.

Ani

Posted 2013-12-28T13:44:09.603

Reputation: 171

1It worked out of the box – Tomasz – 2017-06-29T11:24:11.780

Works so far. Note: machine settings means the Virtualbox settings, not the settings inside the Guest. – beat – 2018-02-22T17:01:03.447

7

It's not a problem in Virtualbox. RCTRL is set the default button for mouse capturing inside virtualbox. So you would only be able to use the mouse inside VB after enabling mouse capture. If you don't enable mouse capturing you can use your mouse but it will be invisible as the mouse is being used by the Current windows. You can change the RCTRL button by going into File -> preferences and then you can enable mouse capture with other button. Also check when you enable Mouse Capture the mouse will disappear from current windows and show in host windows.

Hunter

Posted 2013-12-28T13:44:09.603

Reputation: 612

7

I have the same (or at least very similar problem) with a linux host (debian 8) and a linux guest (debian 7) with 3D enabled. Sometimes the mouse pointer becomes invisible at the guest.

I have the guest additions installed and mouse integration enabled.

For me the trick that solved it was to remove the module psmouse and re-insert it (inside the guest).

sudo rmmod psmouse
sudo modprobe psmouse

Luis Antolín Cano

Posted 2013-12-28T13:44:09.603

Reputation: 173

I believe this is the correct answer! I have Ubuntu 16.04 on OSX High Sierra with VB 5.2.6. Still this issue bothers me every now and then. Tnx buddy. – CppChase – 2018-03-02T09:14:26.580

Remove the module inside the host or inside the guess? :O!!!! – Jamie Hutber – 2018-05-25T10:15:21.497

Inside the guest :) – Luis Antolín Cano – 2018-05-25T13:47:44.263

3

just unplug the mouse from your pc and reconnect it. I do this whenever I face this issue(I have guest additions installed but still has the problem).

sree

Posted 2013-12-28T13:44:09.603

Reputation: 151

3that's good for you, but some of us have trackpads that can't be disconnected, physically or otherwise – MarcusJ – 2015-02-04T19:54:12.910

Can't believe that worked haha – trueinViso – 2015-06-02T18:47:54.153

I have a logitech performance mx wireless mouse that sometimes disappears in virtualbox when I run some application. when I unplug the usb wireless connector and reconnect it, I am able to see the mouse pointer again. thank you! – kimbaudi – 2018-09-02T11:19:23.347

2

One stupid thing no one mentioned, the actual key combo to release your cursor is SHIFT+right ctrl, not right-ctrl. It doesn't say that anywhere in the interface, docs or website. I'm not sure this is your problem, but others might run into this.

figtrap

Posted 2013-12-28T13:44:09.603

Reputation: 121

Or on Mac, the right-side command button ⌘. – Mike – 2016-12-01T17:42:16.803

1

This happened to me too when I disabled mouse capture. The mouse cursor outside of VirtualBox became stuck in one place (because I disabled it) and the new mouse pointer in VirtualBox becomes invisible.

The best thing to fix this problem is to actually use an external device, such as a PC contoller with analog sticks. So, plug in your PC controller of whatever external device you want first, then download a free program called JoyToKey or something similar. I would suggest JoyToKey, it works perfectly.

Now, open JoyToKey and map your keyboard keys, like w,a,s,d or up, down, left, right and left and right mouse clicks, including middle mouse roll, and mouse movement axis (what you use to move a mouse, I mapped mine on my controller analog sticks to move pointer around) onto your PC controller.

Next, open VirtualBox (disable capture). This way, at least now you can move the pointer that was stuck initially in one place with your pc controller.

So, if you want to use in Unity3d, open Unity3d now. Move your pointer using your external device, try to preview a game you made, and now you can look around using the mouse! Alternatively, disable hardware acceleration (drag slider to none instead of full) in Display options when inside VirtualBox, (however this doesn't work if you want to use Unity3d, because the pointer still disappears when hovering over program)

Nicole

Posted 2013-12-28T13:44:09.603

Reputation: 11

0

The solution for me is to setup the "Mouse Integration" shortcut in File->Preferences->Input->Virtual Machine Tab and press the shortcut twice to toggle the Mouse Integration by working keyboard.

niciki

Posted 2013-12-28T13:44:09.603

Reputation: 1

0

If you don't want to keep pressing Ctrl to release the mouse cursor every time, simply install the VirtualBox Guest Additions by clicking on Devices > Install Guest Additions.

Virtual machine, mouse cursor only works within the box

cowgill

Posted 2013-12-28T13:44:09.603

Reputation: 117

3For me, this happens with Guest additions installed. – Blaisorblade – 2016-05-09T13:11:59.720

I get it with guest additions too. I solve it by randomly doing stuff like rebooting the vm, reinstalling guest additions etc. It's very annoying when there's probably a single bit in the wrong state somewhere. – None – 2016-10-21T17:23:07.167

I third that, it happens to me with the correct version of Guest additions installed – George M Reinstate Monica – 2018-08-27T22:31:11.073

I am not sure I made myself clear but when mouse enters VB it is not visible and I cant move it ( I dont see it ). – Dusan Malic – 2013-12-29T14:19:10.453

Did you install the "guest additions" and then try again? – cowgill – 2013-12-30T01:48:26.340

-1

i was encountering the same problem. previously it was working perfectly. i solved it by just resetting it. Machine-> Reset try this and inform me if it helped you.

Anshita Shrivastava

Posted 2013-12-28T13:44:09.603

Reputation: 1

-1

One possibility is that the screen is failing to refresh, which can make it seem like the mouse pointer has disappeared. This can be fixed by resizing the window temporarily which forces the screen resolution to change.

Please note: The question states that the mouse can be recovered by pressing right-CTRL. The mouse pointer is only disappearing in the guest, not the host.

RoG

Posted 2013-12-28T13:44:09.603

Reputation: 167

1and how do you resize the window without a mouse? – George M Reinstate Monica – 2018-08-27T22:29:42.073

@GeorgeM Resize the VM window from the host. The problem describes the mouse disappearing in the VM only. If the mouse has disappeared entirely from the host, then you have a different (bigger!) problem. – RoG – 2018-08-29T15:41:24.970

i was thinking the same exact thing @GeorgeM. I would use the mouse to resize the VM window from the host, but how can I do that if I can't see the mouse and I can't access the mouse pointer outside of the vm? sree's comment helped with my situation. – kimbaudi – 2018-09-02T11:21:43.543

@kimbaudi The original question explicitly states that the mouse can be released by the guest for use on the host by pressing the righthand CTRL key. If this is not working for you then you have a problem with the mouse/keyboard being released back to the host, which is a different issue. – RoG – 2018-09-03T13:32:13.143

@RoG The original title simply stated "Mouse disappears in Virtualbox" and I didn't read the question carefully to notice that user can move the mouse outside the guest vm window. Sorry for the downvote, but I'm unable to undo it. Hopefully, other's can understand my issue is different than the OPs. Anyways, my problem was solved by Sree's answer. – kimbaudi – 2018-09-03T21:52:54.277

@kimbaudi I even tried to clarify it in the comments... Meh, it happens. Please read carefully before downvoting. Thanks for the follow up. – RoG – 2018-09-04T07:00:57.873

-1

Well for me, the problem was solved by selecting my external mouse under USB in the devices menu. Maybe it installed the driver or something. (Sorry if I sound like a noob, but these are my 1st 30 mins into virtualbox.)

Siddhant Kundu

Posted 2013-12-28T13:44:09.603

Reputation: 1