Page 1 of 1

How to use USB on Linux Host

Posted: 4. Jan 2021, 18:34
by Kanito73
Hello

I have a doubt... How should I use USB devices? My host is Debian 10 running on a HP AMD64 (Ryzen 5) with two USB3 and one USB3 type C ports. If I connect a memory or a disk it appears (is notified) on the host, but the guest system does not "see" nothing, no matter it is Linux (Debian 10, USB 3 enabled), Windows XP (USB2 enabled), Windows 7 (USB 2 enabled) or Windows 10 (USB 3 enabled). I DO NOT MOUNT IT ON THE HOST.

VirtualBox docs: "USB Device Filters: When USB support is enabled for a VM, you can determine in detail which devices will be automatically attached to the guest. For this, you can create filters by specifying certain properties of the USB device. USB devices with a matching filter will be automatically passed to the guest once they are attached to the host. USB devices without a matching filter can be passed manually to the guest, for example by using the Devices, USB menu."

In the documentation says that I can add filters to use specific usb devices, but if no filters are added then I should add them manually on the Devices>USB menu in the virtual machine, but they do not appear there neither to choose them. The USB menu shows "No USB devices connected" although they appear on the USB notifications in the host.

The USB configuration has one option to add a filter with empty fields to match any USB device but anyway does not show any devices. I also tried on my other laptop but no USB devices are shown there :(

Do I have to add a filter, specific or empty fields? The filter with empty fields does not show anything and I don't know how to add a filter with specific settings :lol:

What can I do? In fact, I've never been able to use USB with any computer in the past...

I have VirtualBox 6.1.16 with its corresponding extension pack installed and the Guest Additions installed.

Thanks in advance

Re: How to use USB on Linux Host

Posted: 4. Jan 2021, 18:37
by scottgus1
On Linux hosts your account has to be part of a group to use USB devices in the Virtualbox VM.

Go through USB basics and troubleshooting. If steps 1 through 7 cannot get your device working, please provide the troubleshooting command outputs in step 8, as text in

Code: Select all

 tags. Also zip and post the requested vbox.log, using the forum's Upload Attachment tab.

Re: How to use USB on Linux Host

Posted: 5. Jan 2021, 04:21
by Kanito73
k0oL

It worked step #2, just added myself to vboxusers group :D

Thanks a lot, I send you a virtual pizza and a virtual beer... CHEERS! XD

Re: How to use USB on Linux Host

Posted: 5. Jan 2021, 17:34
by scottgus1
Great! Glad you're up and running.