Page 1 of 1

Can not attach USB devices to VM

Posted: 21. Mar 2017, 14:42
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

Re: Can not attach USB devices to VM

Posted: 21. Mar 2017, 16:17
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.

Re: Can not attach USB devices to VM

Posted: 22. Mar 2017, 08:14
by avigdor
File VBox.log.gz attached
Thanks.

Re: Can not attach USB devices to VM

Posted: 22. Mar 2017, 11:02
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.

Re: Can not attach USB devices to VM

Posted: 27. Mar 2017, 08:10
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

Re: Can not attach USB devices to VM

Posted: 27. Mar 2017, 08:24
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.

Re: Can not attach USB devices to VM

Posted: 18. Apr 2017, 14:01
by avigdor
Thanks you very match!
I for some reason thought, that it happens automatically. :oops: