Page 1 of 1

Failed to attach the USB device

Posted: 29. Sep 2020, 23:36
by TechToast
Hi.
I can't get a USB memory drive to work in my VirtualBox guest. Each time I try to connect the drive I get this error:
Failed to attach the USB device Easy Disk [0110] to the virtual machine TestClient_2020
I've got 2 USB ports on the front of the PC and have tried both.

I've followed all the instructions (1-7) detailed in the USB basics and troubleshooting forum post, but no joy.

I've also followed the steps in section 8 and zipped up the various log files and required details. Its all in the attached zip.

Some details on my setup are as follows:

Host - Windows 10 Pro
Guest - Linux CentoOS 7.2.1511 x86-64

Any help will be much appreciated.

Michael

Re: Failed to attach the USB device

Posted: 30. Sep 2020, 15:35
by scottgus1
You have two identical Easy Disks with a valid guest USB filter, and the disks are both showing captured:
list usbhost wrote:Host USB Devices:

UUID: f36d673e-7b9c-48af-9147-3d93bac430d7
VendorId: 0x13fe (13FE)
ProductId: 0x1d00 (1D00)
Revision: 1.16 (0116)
Port: 6
USB version/speed: 2/High
Manufacturer: Easy
Product: Disk
SerialNumber: 90730A00145A
Address: {36fc9e60-c465-11cf-8056-444553540000}\0013
Current State: Captured

UUID: 9cac0db5-60fd-4332-9584-f4d6a4a29cef
VendorId: 0x13fe (13FE)
ProductId: 0x1d00 (1D00)
Revision: 1.16 (0116)
Port: 5
USB version/speed: 2/High
Manufacturer: Easy
Product: Disk
SerialNumber: 90730A00145A
Address: {36fc9e60-c465-11cf-8056-444553540000}\0013
Current State: Captured
shovminfo wrote:USB Device Filters:

Index: 0
Active: yes
Name: Easy Disk [0110]
VendorId: 13fe
ProductId: 1d00
Revision:
Manufacturer:
Product:
Remote:
Serial Number:
Do you have another guest running that has the same filter?

Re: Failed to attach the USB device

Posted: 30. Sep 2020, 18:17
by TechToast
Hi Scottgus1, thanks for the reply.

I think that is because I tried to plug it into both USB ports on my PC in an attempt to get it to work...not sure why they are both remaining captured though.

I've redone this again from a fresh boot. Only using 1 USB port, and I get just the one usb device reported:
C:\Program Files\Oracle\VirtualBox>VBoxManage list usbhost
Host USB Devices:

UUID: 9eb11636-c862-4148-814b-01fe6f10419b
VendorId: 0x13fe (13FE)
ProductId: 0x1d00 (1D00)
Revision: 1.16 (0116)
Port: 6
USB version/speed: 2/High
Manufacturer: Easy
Product: Disk
SerialNumber: 90730A00145A
Address: {36fc9e60-c465-11cf-8056-444553540000}\0013
Current State: Busy
This time it says "Busy".

Then I started VBox and attempted to use the device, but got the same error message.

Then I closed VBox and ran the above command again, and got this:
C:\Program Files\Oracle\VirtualBox>VBoxManage list usbhost
Host USB Devices:

UUID: 9eb11636-c862-4148-814b-01fe6f10419b
VendorId: 0x13fe (13FE)
ProductId: 0x1d00 (1D00)
Revision: 1.16 (0116)
Port: 6
USB version/speed: 2/High
Manufacturer: Easy
Product: Disk
SerialNumber: 90730A00145A
Address: {36fc9e60-c465-11cf-8056-444553540000}\0013
Current State: Captured
So the state has changed to captured, even after VBox is closed...is this expected?

One thing I did notice is that when I initially clicked this menu item:
Devices > USB > Easy Disk

There was no error message. I believe it did capture the device, however when I look back in that menu there is no checkmark next to the item and if I hover over the USB icon at the bottom it reports No USB devices attached

If I attampt to click the same menu item again, the error appears:
Failed to attach the USB device...blah

So it seems like the device is "captured" but not actually accessible in VBox...

Re: Failed to attach the USB device

Posted: 30. Sep 2020, 18:26
by scottgus1
I'm not sure about this:
TechToast wrote:captured, even after VBox is closed
In my experience with successfully getting a USB thumbdrive into a guest, the drive goes back to the host as soon as the guest shuts down.

Disconnect the USB drive. Try rebooting your host again, then start the guest with the active USB filter. Then insert the USB stick into the host. See if the guest picks it up automatically. You may also need to get CentOS to recognize the disk, like Windows sometimes needs to recognize a new disk in Disk Management. Web-search how to get CentOS to do this.

Re: Failed to attach the USB device

Posted: 30. Sep 2020, 20:50
by TechToast
Hi again Scottgus1

So I went back over all of the steps in the troubleshooting guide, and picked up on one small detail which I'd missed the first time around...

In Step 5 it mentions:
...another filter is installed on your host and is actively monitoring/filtering your USB connections. Such filters can be installed with antivirus programs, AMD USB Filter, Microsoft's RemoteFX USB Redirection, NoMachine, Dell DPE, or Wireshark and its USBPcap component. Or any other application with a USB filtering mechanism. Or custom USB drivers for your host.
I do actually have Microsoft RemoteFX enabled on my host PC. This is to allow me to pass USB devices over RDP.

I disabled RemoteFX and it worked!

Its frustrating that I will now need to enable/disable that each time I need to switch between RDP and VBox, but at least I know the reason.

Thanks for taking the time to help out!

Re: Failed to attach the USB device

Posted: 30. Sep 2020, 20:54
by scottgus1
Great! Glad you found the problem.