How to fix mouse cursor out of sync with VirtualBox Ubuntu Server 16.04.3 LTS VM?

I'm running Ubuntu Server 16.04.3 LTS VirtualBox VM with XFCE as desktop environment. Used VirtualBox is latest version 5.1.26 r117224. Frequently the mouse cursor is running out of sync and the only way I can fix it is restarting the VM. Can someone propose persistent solution for this problem?


I had the same problem, that the mouse pointer was offset running out of sync. My VirtualBox Ubuntu is running in Window Mode (not full-screen).

My solution:

  • Resizing the VirtualBox window
  • Then maximize the window

enter image description here


I had the same problem, however I was able to solve it doing the following :

  1. In Virtualbox → Machine Settings → System → Motherboard I changed Pointing Device to "PS/2 Mouse"

  2. In the hosted Ubuntu VM (Xubuntu in my case) go to Mouse and Touchpad change "Device" to "VirtualBox mouse integration"

That solved my issue and my mouse back to work normal.