25

I am running Windows 7 inside Mac OS X with VirtualBox, I used a BLE inside W7 without any problem. Then I used the BLE USB in the Mac, and when I try to use it again in the W& I got this message:

Failed to attach the USB device SEGGER J-Link [0100] to the virtual machine WINDOWS 7.
USB Device 'SEGGER J-Link’ with UUID {} is in use by someone else

I unplugged the USB, restart the Mac, start W7, but I can't attach it again to the W7

4 Answers4

70

I figured it out. You are supposed to:

  1. Shutdown the guest
  2. Plug in the device, let the host grab it
  3. In the host, go to virtual box, and edit the configuration for the guest. In the "Ports" tab, go to USB and add a filter to include the plugged in device
  4. Unplug the device
  5. Start the guest OS
  6. When the guest os is running, plug in the device.

Virtual box will grab the usb device and make it available for the guest. The guest will then go on and try to identify and configure the device.

Done.

Serplat
  • 4,367
  • 2
  • 18
  • 20
  • 17
    Thank you. On top of that filter, I also had to install [Oracle VM VirtualBox Extension Pack](https://www.virtualbox.org/wiki/Downloads). – Kerem May 07 '15 at 02:32
  • 3
    Do all like you said, but it doesn't work for me. Every time I plug my device in, Ubunut intercepts this action and notifies about it. And VirtualBox is messaging: "Failed to attache the USB device TS-RDF8 Transcend [002A] to the virtual machine Windows 7". Result Code: NS_ERROR_FAILURE (0x80004005). – Onkeltem Mar 30 '19 at 13:51
  • 2
    Not working here, host Mac OS, guest Windows 10 – manuAcl May 13 '19 at 13:23
  • 2
    Not working here, host Arch Linux, guest Mac OS – MewX Aug 25 '19 at 03:58
  • i can see the device as selected in Device>USB menu, but can't see in computer folder(disk area) – Samet Baskıcı Oct 07 '19 at 22:44
  • My problem was related to VirtualBox. I tried VMWare Workstation Player and everything worked as a charm and the USB was recognized by both Host and Guest. – hwaxxer May 06 '20 at 20:11
24

The solution for me was to install the Oracle VM VirtualBox Extension Pack. I had to update virtual box to the latest version then download the latest version of the extension pack.

Then, on the USB tab of the virtual machine settings, I set 'Enable USB Controller' and 'USB 2.0 (EHCI) Controller'. Before it was set to USB 1.1 (OHCI) Controller which did not work. Then just add a USB filter for the composite device and when I started up the machine again everything worked.

USB Page Image

bummi
  • 27,123
  • 14
  • 62
  • 101
user38157
  • 351
  • 2
  • 2
4

I am using an nRF51-DK Embedded Development Kit from Nordic Semiconductor which has a Segger JLink embedded on the board. I was having problems getting it to detect on the Mac OS X, Running VirtualBox/Windows 7.

I tried adding a filter under Ports->USB in the Device Image Settings. The device was coming up as a composite device under USB Devices in Windows 7 Device Manager.

Then I removed the filter, installed the Segger/JLink Driver for Mac, ensured that Mac is picking up the device by running the JLinkExe Utility. I then proceeded to add a filter in the Ports->USB under the device image and voila! - Windows 7 Picked up Segger/JLink over VirtualBox.

As a side note, I had also installed the Oracle VM Extension Pack for my VirtualBox version from www.virtualbox.org

3

J-Link debug probe of version 9.3 works perfectly with the VirtualBox(VB) with USB1.1 (without an extension pack). Once I started using the newer J-Link debug probe of version 10.1, the jlink device was not recognized in the VB because the jlink device driver failed to install. This problem was solved with the extension pack for virtualbox. But the extension pack needs a license for long term use so be aware.