How to permanently disable mouse integration in Virtualbox?

22

9

The "mouse integration" feature in Virtualbox is pretty handy in most cases, but I need to have it disabled. Unfortunately, it looks like I have to press Host+I at every boot of the virtual machine.

Is there a way to disable "mouse integration" permanently? It would be good if this could be done on a per-virtual machine basis.

UncleZeiv

Posted 2010-11-24T00:50:27.963

Reputation: 657

2"Unfortunately, it looks like I have to press Host+I" :'( – John T – 2010-11-24T00:52:50.583

Ok, it sounds whiny, but the point is that I suspect that when mouse integration kicks in, it disrupts my Wacom tablet. But I didn't want to mention that problem because it is irrelevant here, I'll post another question on that :P – UncleZeiv – 2010-11-24T00:55:38.880

Linux or Windows vm? – John T – 2010-11-24T00:56:48.817

I'm using Windows 7 64bit as host and Ubuntu 10.10 64bit as guest. I didn't mention it as I expected it to be a feature of Virtualbox itself... if it exists, that is. – UncleZeiv – 2010-11-24T01:12:40.610

Post your xorg.conf please. – John T – 2010-11-24T23:45:53.380

Yeah I didn't really have any luck with any of the answers here with VirtualBox 6.1.0 and an Ubuntu 18.04 LTS guest on a Windows 10 host; so I filed a bug report, not sure what else to do.

– Jason C – 2020-01-11T16:12:52.587

Answers

3

Until now I saw that the auto mouse integration kicks in just on the linux hosts. So disabling it permanently is not possible.

TweakFix

Posted 2010-11-24T00:50:27.963

Reputation: 471

1If you ever come back, @Darwin's answer does work on linux – Izkata – 2013-01-09T21:27:32.100

11

This turns it off permanently for me on mac (~2012).

VBoxManage modifyvm "your-vm-name" --mouse ps2

If ps2 does not work for you try the other mouse options ps2|usb|usbtablet|usbmultitouch

Darwin

Posted 2010-11-24T00:50:27.963

Reputation: 279

5

@Yrogirg Re: OS X - This is almost a year old, but setting my VM's Pointing Device to USB Tablet like so now achieves the desired behavior for me.

– Jimmie Tyrrell – 2014-10-29T22:03:20.047

@Jimmie Phenomenal. – Jacksonkr – 2016-03-05T16:43:36.493

@Jimmie I signed up to this site to vote up your comment. Thanks bro, you saved me. :) – saman – 2016-10-19T20:47:56.487

1Didn't work for me when running VirtualBox in Ubuntu 18.04 – Gabriel Staples – 2019-07-13T07:24:02.290

Didn't work for me with VirtualBox 6.1.0, guest Ubuntu 18.04 LTS, host Windows 10. USB Tablet vs PS/2 mouse no effect either. – Jason C – 2020-01-11T16:16:04.337

1Just tested it, does NOT work in the latest VirtualBox on FreeBSD. – gravitation – 2013-11-11T17:08:48.763

Maybe one of theas could work on FreeBSD ? Replace ps2 with one of theas (usb|usbtablet|usbmultitouch) – Darwin – 2013-11-11T19:53:10.640

1seems nothing to be working on OS X – Yrogirg – 2013-12-17T16:00:28.583

3

I had this problem using Xubuntu 16.04 running Xfce 4.12 It is driving me insane.

You can go into:

  • Settings
  • Mouse and Touchpad
  • and in Devices Tab, disable the "VirtualBox Mouse Integration" device.
    This permanently disables mouse integration in Xfce.

Disable mouse integration in Xubuntu

Carlos Torchia

Posted 2010-11-24T00:50:27.963

Reputation: 31

I don't have this dialog in Ubuntu 18.04 LTS. The mouse settings there just have some basic pointer configuration stuff. – Jason C – 2020-01-11T16:17:27.423

3

I have had three problems on a linux host:

If it is not disabled you have to hit Return when VBox asks to go full screen
Mouse de-integration is not automatic (my client nabs the usb mouse directly)
and...
The VBoxControl program in the client savestate command is borked

The following script takes care of all three issues.
It requires you to apt-get wmctrl and xdotool.
Guest additions must be installed.

Change VM_NAME!
Change DISPLAY to whatever monitor you want.
To savestate run "sudo VBoxControl guestproperty set SaveStateNow 1" in a client terminal.

---cut-here---

#!/bin/bash
VM_NAME='My Machine Name'
MAXTRIES=20

export DISPLAY=:0.1
VBoxManage startvm "$VM_NAME" &

i="0"
while [ $i -lt $MAXTRIES ]; do
  echo Fullscreen try $i
  wmctrl -a "VirtualBox - Information"
  if [ $? == 0 ]; then
    sleep 1
    xdotool key "Return"
    break
  fi

  sleep 1
  i=$[$i+1]
done

i="0"
while [ $i -lt $MAXTRIES ]; do
  echo Pointer try $i
  GUEST_ADDITIONS_ACTIVE=`VBoxManage showvminfo "$VM_NAME" | grep "Additions run level" | cut -d : -f 2`
  if [ $GUEST_ADDITIONS_ACTIVE == "1" ]; then
    sleep 1
    xdotool key "Super_R+i"
    break
  fi

  sleep 1
  i=$[$i+1]
done

while true; do
  if [ "`VBoxManage guestproperty get "$VM_NAME" SaveStateNow`" != 'No value set!' ]; then
    echo Saving...
    VBoxManage guestproperty set "$VM_NAME" SaveStateNow
    VBoxManage controlvm "$VM_NAME" savestate
    break
  fi
  sleep 1
done

mishaokami

Posted 2010-11-24T00:50:27.963

Reputation: 31

It's a bit hacky but pretty interesting. Going to see if I can whip up something similar for a Windows host; will post if I do. – Jason C – 2020-01-11T16:26:37.347

2

I had the same issue, posting for anyone reading this in the future.

From the user manual, Virtualbox has a cmd line VBoxManage utility

VBoxManage setextradata "VM name" GUI/MouseCapturePolicy Disabled

This will disable mouse integration for the specific "VM name".

WishIKnew

Posted 2010-11-24T00:50:27.963

Reputation: 29

Didn't work for me on Ubuntu 18.04 with VirtualBox 5.2.18 – Gabriel Staples – 2019-07-13T07:42:32.803

Didn't work for me with VirtualBox 6.1.0, guest Ubuntu 18.04 LTS, host Windows 10. Disabled seems like the opposite of what I'd want, there's no Enabled option, but also it's a little confusing whether this setting controls default capture, or default mouse integration status (which still requires a click to initially capture when disabled). – Jason C – 2020-01-11T16:18:46.967

1

Try disabling keyboard auto-capture:

  • In the main window press File|Preferences
  • Select the "Input" tab
  • Uncheck "Autocapture keyboard"

This also disables mouse-autocapture.

enter image description here

julio_sao

Posted 2010-11-24T00:50:27.963

Reputation: 19

It is certainly better to have this information than nothing at all. Expecting someone to change their entire localization on a volunteer-driven site is silly. – zymhan – 2018-08-20T15:10:58.123

Didn't work for me on Ubuntu 18.04 with VirtualBox 5.2.18 – Gabriel Staples – 2019-07-13T07:35:39.767

Didn't work for me with VirtualBox 6.1.0, guest Ubuntu 18.04 LTS, host Windows 10. – Jason C – 2020-01-11T16:19:03.530

0

This is probably the same answer as Darwin's, except it uses the menus (to which this option was probably added after his answer was posted):

Open the Virtual Machine's settings, select "System", go to the "Motherboard" tab and change "Pointing Device" to "PS/2 Mouse".

Worked perfectly in my case (Android x86), but 123's comment to Darwin's answer (problems with FreeBSD) may apply here as well...

Markus A.

Posted 2010-11-24T00:50:27.963

Reputation: 921

Thanks for the answer. Works fine with VirtualBox 5.2.16 on Windows 7 64-bit for virtual Android-x86 :) – AntonK – 2018-08-05T16:01:42.880

Didn't work for me with VirtualBox 6.1.0, guest Ubuntu 18.04 LTS, host Windows 10. – Jason C – 2020-01-11T16:27:25.993

0

After hours of searching I figured how to fix it and while posting, I saw in comments the same thing. Maybe will help others.

I had to go to VM Settings -> System -> Motherboard and change Pointing Device from PS/2 Mouse to USB Tablet.

amkamaa

Posted 2010-11-24T00:50:27.963

Reputation: 9

1Didn't work for me on Ubuntu 18.04 with VirtualBox 5.2.18 – Gabriel Staples – 2019-07-13T07:44:54.143

Didn't work for me with VirtualBox 6.1.0, guest Ubuntu 18.04 LTS, host Windows 10. – Jason C – 2020-01-11T16:27:13.280

0

Go to Machine select settings From the settings window select USB option from the left vertical menu Add your Mouse device clicking the USB+ icon on the right side of the device list( second icon)

Thats it, now your mouse pointer works through out your virtual machine and desktop flawlessly.

Dronzrock

Posted 2010-11-24T00:50:27.963

Reputation: 1

Hrm; I wasn't able to get this working VirtualBox 6.1.0, guest Ubuntu 18.04 LTS, host Windows 10, Synaptics touchpad pointing device. – Jason C – 2020-01-11T16:29:34.917

-1

Weird fix for this problem:

  • Click into popup message.

This message expands and show more text and a checkbox field with text Don't show this message again

http://i.stack.imgur.com/z21d8.png

  • Check it and enjoy!

Manz

Posted 2010-11-24T00:50:27.963

Reputation: 139

-1

Boot into your VM and find the Input option on your menu bar (it auto-hides by default, should be at the bottom of your screen). Click on the Input option and disable Mouse Integration.

enter image description here

enter image description here

This should be a persistent solution, i.e. you won't need to do it at every boot.

stellarossa

Posted 2010-11-24T00:50:27.963

Reputation: 99

2Doesn't work (i.e. it's not persistent...) – Markus A. – 2017-11-09T02:02:55.080

This is just the GUI equivalent of the OP's attempt (the OP had Host+i assigned to that menu item); it's not really a solution, it still presents the same issue. – Jason C – 2020-01-11T16:28:12.717