Linux – VirtualBox: USB hub not detected on Linux Guest – MacOS Host

linuxmacosusbvirtualbox

I am trying to connect multiple USB devices to my Linux guest through the use of a USB hub, however, it seems that the hub is not detected on the guest. In my tests I have noted the following:

  • The USB hub works fine if connected directly to the Mac OS.
  • The USB hub works fine if connected to a Linux guest with a Windows host.
  • The USB hub + connected devices are not registered when connected to the Linux guest (Mac host). There is no change to the output of #lsusb or #dmesg

Which indicates that it is a problem with VirtualBox on Mac hosts. Is there anyway I can overcome this and detect my USB hub + devices on my Linux guest?

Any help is greatly appreciated.

Best Answer

For automatically connecting specific devices create a USB filter :

  1. Close virtualbox
  2. Execute in bash: sudo adduser YOURUSERNAME vboxusers (if required)
  3. Attach the USB devices you want to be automatically mounted in the VM (virtual machine).
  4. Open Virtualbox
  5. From menu, go to "File" -> "Preferences" -> "General".
  6. Select your VM and go to "Machine" -> "Settings" -> "USB".
  7. Check "Enable USB Controller"; click on the icon with the USB plug and the plus, and click on the devices you want to be automatically mounted in the VM. Click "Ok".
  8. Click on "Start" toolbar button, and ensure your USB devices are recognized and mounted by the VM. Remember that you have to unmount them in the host OS too if you have to disconnect them after you exit the VM.

image

Related Question