Dedicated Mouse and Keyboard on VirtualBox VM

17,233

Solution 1

I had the same error (and a few others!) when I was trying to get VirtualBox to capture my iPhone in a Windows VM. The solution for me was to create a USB Device Filter for that particular VM.

  1. The VM must be in a "Powered Off" state
  2. Select the VM in the VirtualBox GUI
  3. Click the "Settings" button
  4. Go to the menu item "USB" (in here you can add/delete/edit USB Device Filters)
  5. On the right-hand side, click the button "Add Filter From Device" and it will list the connected and detected USB devices
  6. Select your keyboard from the list
  7. Add another filter for your USB mouse
  8. Start your VM and hope it works :)

When I did this for my iPhone, when the (virtual) operating system booted up it detected my iPhone straight away and I could sync with iTunes in the VM. The host didn't detect the iPhone until I manually disconnected it from the VM.

Solution 2

You might also experiment with Synergy application to connect the keyboard (and clipboard) virtually over tcp/ip. You might need to visit the advanced settings in Synergy, unless you have complete DNS setup for your machines.

Share:
17,233

Related videos on Youtube

Myersguy
Author by

Myersguy

Updated on September 17, 2022

Comments

  • Myersguy
    Myersguy over 1 year

    Currently I am trying to run VirtualBox on my second monitor, with a dedicated mouse and keyboard. However, doing so has not proven easy. There has been times where the mouse works, but not the keyboard, vice versa, or nothing works at all. The biggest problem I am running into is this:

    When enabling the USB mouse and keyboard from the VM, I get an error: 'USB Device is busy with a previous request.' The only thing that is using second mouse and keyboard, however, is Windows. The other error I have received stated that the VM was unable to create a proxy for the device. Additionally, the VM occasionally will disable the secondary keyboard entirely, requiring me to unplug and replug it into my PC to re-enable it again.

    Keyboard auto-capture is disabled, and while a solution I was reading online stated to turn off mouse integration, that option is grayed out on my machine.

    • BearGriz72
      BearGriz72 almost 14 years
      Not sure it's possible to isolate 2 sets of input devices on 1 physical machine but most definitely 1 for Interesting Problem
    • Carson Myers
      Carson Myers almost 14 years
      it's possible, we got it working. I'd post a solution as to how, but it happened by magic. It just... sort of... started working.
    • Apache
      Apache almost 14 years
      Did you try using VMware player Myersguy?
    • Hans Kilian
      Hans Kilian almost 14 years
      When using VMWare, the way to do it is to 1) connect the keyboard and mice to the virtualmachine, and then 2) disable hardware mouse cursor in vmware, then it will work indepedently. For Virtualbox I am not sure but i assume this should work.
  • UncleZeiv
    UncleZeiv over 13 years
    any suggestions on how to do that?