Can not attach USB devices to VM

Discussions related to using VirtualBox on Linux hosts.
Post Reply
avigdor
Posts: 4
Joined: 21. Mar 2017, 12:14

Can not attach USB devices to VM

Post by avigdor »

Hi.
I have ThinkCentre M900 with Fedora 25, Linux 4.9.14-200.fc25.x86_64 #1 SMP and VirtualBox 5.1.18. USB legacy support enabled by BIOS.
Unfortunately, I can not attach any usb devices to VM. For example:

Code: Select all

[root@avigdor-maabada avigdor]# lsusb
     Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
     Bus 001 Device 003: ID 1b3f:32fe Generalplus Technology Inc. 
     Bus 001 Device 002: ID 04b3:310c IBM Corp. Wheel Mouse
     Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
But VirtualBox say: "No USB Devices Connected"
USB 3.0 (xHCI) Controller enabled by VirtualBox.
My older computer ThinkCentre M91p with same configuration work properly.
Thanks in advance.
Avigdor
Last edited by socratis on 27. Mar 2017, 08:18, edited 1 time in total.
Reason: Enclosed the information in [code] tag for better readability
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Can not attach USB devices to VM

Post by mpack »

Please post a VM log file. With the VM fully shut down, right click and "Show Log" in the GUI, save "VBox.log" (no other file) to a zip, and attach the zip here.
avigdor
Posts: 4
Joined: 21. Mar 2017, 12:14

Re: Can not attach USB devices to VM

Post by avigdor »

File VBox.log.gz attached
Thanks.
Attachments
VBox.log.gz
(29.72 KiB) Downloaded 24 times
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Can not attach USB devices to VM

Post by mpack »

You have the xHCI/USB3 controller enabled in the guest. Presumably the host PC has USB3 ports.

The guest OS appears to be Windows 7, which has no native support for USB3 devices. You need to install the Intel xHCI Windows drivers in the guest.
avigdor
Posts: 4
Joined: 21. Mar 2017, 12:14

Re: Can not attach USB devices to VM

Post by avigdor »

My problem is not related to the guest operating system. See the attached picture.

Remind again:

Code: Select all

[root@avigdor-maabada Downloads]# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 030: ID 1b3f:32fe Generalplus Technology Inc. 
Bus 001 Device 002: ID 04b3:310c IBM Corp. Wheel Mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Thanks
Attachments
usb_problem1.jpg
usb_problem1.jpg (119.28 KiB) Viewed 5799 times
Last edited by socratis on 27. Mar 2017, 08:20, edited 1 time in total.
Reason: Enclosed the information in [code] tag for better readability
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Can not attach USB devices to VM

Post by socratis »

Are you a member of the 'vboxusers' group? If not, add yourself with "sudo usermod -a -G vboxusers <your_username>", then reboot.

BTW, it is never a good idea to run VirtualBox or any other user-land programs as "root". From several points of view.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
avigdor
Posts: 4
Joined: 21. Mar 2017, 12:14

Re: Can not attach USB devices to VM

Post by avigdor »

Thanks you very match!
I for some reason thought, that it happens automatically. :oops:
Post Reply