Page 1 of 2

VirtualBox can't plug USB device in windows guest.

Posted: 16. Dec 2016, 15:33
by hack3rcon
Hello.
I used the last version of VirtualBox on Debian 8.6 amd64. When I plug a USB device like flash drive and want use it in windows guest then windows OS show me an error about device driver. Why? I installed VirtualBox guest additional tools too.

How can I solve it?

Thank you.

Re: VirtualBox can't plug USB device in windows guest.

Posted: 16. Dec 2016, 15:49
by Perryg
Install the extension pack in the host and add your user name too the vboxusers group. ( log off or reboot for permissions to take effect ).

Re: VirtualBox can't plug USB device in windows guest.

Posted: 16. Dec 2016, 16:04
by proferay
I resolve a similar problem with any of this commands (read about this and take time to find a solution with some of this parameters):

# Enable USB and type in "ON"
sudo VBoxManage modifyvm "Replace-This-Text-With-Your-Virtual-Machine-Name" --usb on --usbehci on

# List the USB devices that are plugged in the system with this command:
sudo VBoxManage list usbhost

# Write in a text file (or in a paper) the "VendorId" and the "ProductId" numbers between parenthesis of your correct device.
# You can see something like this result:

Host USB Devices:

UUID: f1g765f1-a241-4215-b15t-7185dgy39d3c
VendorId: 0x0B10 (0B10)
ProductId: 0x8c3A (8c3A)
Revision: 1.1 (0101)
[Other lines ...]

# Then execute this command:
VBoxManage usbfilter add 0 --target "Replace-This-Text-With-Your-Virtual-Machine-Name" --name usbstick --vendorid 0B10 --productid 8c3A

It took me several hours to find this answer to my problem.
The USB key was required for the execution of a system that supposedly was impossible to run on Linux. I managed to make it work thanks to these simple corrections.

I hope this helps you!

Re: VirtualBox can't plug USB device in windows guest.

Posted: 16. Dec 2016, 16:15
by Perryg
Or you could add your user name to the vboxusers group and not need to use sudo. Most if not all of this is covered in the VirtualBox users manual. Here is a link to the online one. http://www.virtualbox.org/manual/UserManual.html

Re: VirtualBox can't plug USB device in windows guest.

Posted: 16. Dec 2016, 19:05
by hack3rcon
Perryg wrote:Or you could add your user name to the vboxusers group and not need to use sudo. Most if not all of this is covered in the VirtualBox users manual. Here is a link to the online one. http://www.virtualbox.org/manual/UserManual.html
I did it first all because if you never do it then VirtualBox not let you plug any USB to guest OS. After it guest OS can see USB but windows show an error about device driver.

Re: VirtualBox can't plug USB device in windows guest.

Posted: 16. Dec 2016, 19:06
by hack3rcon
proferay wrote:I resolve a similar problem with any of this commands (read about this and take time to find a solution with some of this parameters):

# Enable USB and type in "ON"
sudo VBoxManage modifyvm "Replace-This-Text-With-Your-Virtual-Machine-Name" --usb on --usbehci on

# List the USB devices that are plugged in the system with this command:
sudo VBoxManage list usbhost

# Write in a text file (or in a paper) the "VendorId" and the "ProductId" numbers between parenthesis of your correct device.
# You can see something like this result:

Host USB Devices:

UUID: f1g765f1-a241-4215-b15t-7185dgy39d3c
VendorId: 0x0B10 (0B10)
ProductId: 0x8c3A (8c3A)
Revision: 1.1 (0101)
[Other lines ...]

# Then execute this command:
VBoxManage usbfilter add 0 --target "Replace-This-Text-With-Your-Virtual-Machine-Name" --name usbstick --vendorid 0B10 --productid 8c3A

It took me several hours to find this answer to my problem.
The USB key was required for the execution of a system that supposedly was impossible to run on Linux. I managed to make it work thanks to these simple corrections.

I hope this helps you!
In you idea doing all of these steps is logical for plug a USB?

Re: VirtualBox can't plug USB device in windows guest.

Posted: 16. Dec 2016, 19:15
by Perryg
I would like to see the guests log file ( as an attachment ) and the following from the hosts terminal:
  • id
    VBoxManage list extpacks
    VBoxManage list usbhost
    VBoxManage list usbfilters

Re: VirtualBox can't plug USB device in windows guest.

Posted: 18. Dec 2016, 11:56
by hack3rcon
Perryg wrote:Install the extension pack in the host and add your user name too the vboxusers group. ( log off or reboot for permissions to take effect ).
I use "VirtualBox 5.1.10" and when I want to install "Oracle_VM_VirtualBox_Extension_Pack-5.0.30-112061.vbox-extpack" it show me:

Code: Select all

VBoxExtPackRegister returned VERR_VERSION_MISMATCH, pReg=0000000000000000 ErrInfo='VirtualBox version mismatch - expected 5.0 got 5.1'.

Re: VirtualBox can't plug USB device in windows guest.

Posted: 18. Dec 2016, 11:59
by socratis
The Extension Pack (ExtPack) has to match the VirtualBox version, which means you have to install the 5.1.10 ExtPack.

Re: VirtualBox can't plug USB device in windows guest.

Posted: 18. Dec 2016, 12:07
by hack3rcon
Perryg wrote:I would like to see the guests log file ( as an attachment ) and the following from the hosts terminal:
  • id
    VBoxManage list extpacks
    VBoxManage list usbhost
    VBoxManage list usbfilters
Hello.
The outputs that you need:

Code: Select all

$ sudo VBoxManage list usbhost
[sudo] password for jason: 
Host USB Devices:

UUID:               ec09eabe-7856-4edc-95df-cf3cc634512b
VendorId:           0x090c (090C)
ProductId:          0x1000 (1000)
Revision:           17.0 (1700)
Port:               7
USB version/speed:  2/High
Manufacturer:       General
Product:            USB Flash Disk
SerialNumber:       0413170000013800
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-8//device:/dev/vboxusb/001/003
Current State:      Busy

UUID:               4d2eb522-714c-4ceb-93aa-8217d4bcebab
VendorId:           0x046d (046D)
ProductId:          0xc05a (C05A)
Revision:           99.0 (9900)
Port:               2
USB version/speed:  2/Low
Manufacturer:       Logitech
Product:            USB Optical Mouse
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3//device:/dev/vboxusb/001/002
Current State:      Busy

Code: Select all

$ VBoxManage list usbfilters
Global USB Device Filters:

<none>

Code: Select all

$ id
uid=1000(jason) gid=1000(jason) groups=1000(jason),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),108(netdev),111(scanner),123(vboxusers)

Code: Select all

$ lsusb
Bus 004 Device 002: ID 8087:8000 Intel Corp. 
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 8087:8008 Intel Corp. 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 090c:1000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Flash Drive
Bus 001 Device 002: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code: Select all

$ sudo VBoxManage modifyvm "Word" --usb on --usbehci on
VBoxManage: error: Could not find a registered machine named 'Word'
VBoxManage: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBoxWrap, interface IVirtualBox, callee nsISupports
VBoxManage: error: Context: "FindMachine(Bstr(a->argv[0]).raw(), machine.asOutParam())" at line 500 of file VBoxManageModifyVM.cpp

Re: VirtualBox can't plug USB device in windows guest.

Posted: 18. Dec 2016, 12:09
by hack3rcon
socratis wrote:The Extension Pack (ExtPack) has to match the VirtualBox version, which means you have to install the 5.1.10 ExtPack.
I can't see any Extension Pack for my VirtualBox version!!!!!

Re: VirtualBox can't plug USB device in windows guest.

Posted: 18. Dec 2016, 15:51
by BelJoost
hack3rcon wrote:I can't see any Extension Pack for my VirtualBox version!!!!!
https://www.virtualbox.org/wiki/Downloads Does the link at the end of the second bullet not work for you?

Re: VirtualBox can't plug USB device in windows guest.

Posted: 19. Dec 2016, 12:35
by hack3rcon
As you see "If you are using VirtualBox 5.0.30, please download the extension pack". My VirtualBox is 5.1 :(.
I attached a photo too.

Re: VirtualBox can't plug USB device in windows guest.

Posted: 19. Dec 2016, 15:30
by Perryg

Re: VirtualBox can't plug USB device in windows guest.

Posted: 19. Dec 2016, 18:16
by hack3rcon
Thank you.
I installed the extension pack but when I want mount a USB get same error: