vbox Virtualbox and USB device

So I'm trying to mount a USB stick to my Windows VM, keeps giving me failed message. I've tried to install VB extensions but it fails loading main module. the VM itself works, but I really need it to work with my USB sticks.
Does anyone have a solution for this? Google search wasn't useful at all this time :-(

Thanks,
Sir Lumikor of the Catshire
 
… The message I'm getting is "Fail to attach USB device "xxx" to virtual machine "Windows"

Following the guide from freshports and the wiki without much luck, still getting the same message.

Where exactly does that message appear?

In my case, at the time of writing:
  1. a first attempt to use a USB flash drive failed, the icon for Safely Remove Hardware and Eject Media was not apparent
  2. a second attempt failed
  3. the third attempt failed, the icon for Safely Remove Hardware and Eject Media was apparent but its menu did not list the media or hardware.
First attempt:

This device cannot start. (Code 10)

An invalid parameter was passed to a service or function.

2021-07-10 07:34:38.png2021-07-10 07:46:21.png

Third attempt:

2021-07-10 07:48:55.png2021-07-10 07:51:04.png

– and again, code 10.

Device properties:

Code:
% lsblk da3
DEVICE         MAJ:MIN SIZE TYPE                              LABEL MOUNT
da3              2:102 3.7G GPT                                   - -
  <FREE>         -:-    47K -                                     - -
  da3p1          2:103 3.7G ms-basic-data      gpt/Basic%20data%20partition -
  <FREE>         -:-   1.5M -                                     - -
% file -s /dev/da3p1
/dev/da3p1: DOS/MBR boot sector, code offset 0x58+2, OEM-ID "MSDOS5.0", sectors/cluster 8, reserved sectors 1158, Media descriptor 0xf8, sectors/track 63, heads 255, hidden sectors 128, sectors 7811072 (volumes > 32 MB), FAT (32 bit), sectors/FAT 7613, serial number 0x9c2d1f75, unlabeled
%
 
… Fail to attach USB device "xxx" to virtual machine …

For the USB flash drive (Verbatim STORE N GO) that could not be used with Windows 10, I got the message when I attempted to use the drive with GhostBSD.

Not the first attempt. In this case there was no message, but the device was not visible to gpart(8) in GhostBSD.

I used the VirtualBox GUI to release the device, detachment was logged by GhostBSD.

When I attempted to reuse the device, the message appeared (and nothing was logged by GhostBSD):

2021-07-10 08:15:12.png


2021-07-10 08:15:30.png


For the most recent failed attempt:

Code:
00:28:17.166450 VMMDev: vmmDevHeartbeatFlatlinedTimer: Guest seems to be unresponsive. Last heartbeat received 31 seconds ago
00:28:17.361509 ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={872da645-4a9b-1727-bee2-5585105b9eed} aComponent={ConsoleWrap} aText={Failed to create a proxy device for the USB device. (Error: VERR_READ_ERROR)}, preserve=false aResultDetail=-111
00:28:18.488259 VMMDev: GuestHeartBeat: Guest is alive (gone 32 509 915 135 ns)

– in particular:

ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={872da645-4a9b-1727-bee2-5585105b9eed} aComponent={ConsoleWrap} aText={Failed to create a proxy device for the USB device. (Error: VERR_READ_ERROR)}, preserve=false aResultDetail=-111

Generally

To me, it smells like when there is attachment, attachment is not proper.

Earlier, whilst I had a code 10 in the Windows guest, with the device categorised as Unspecified:
  • I could concurrently get device properties with e.g. gpart(8) in the FreeBSD host – if I recall correctly, this concurrency should be impossible.
 
Thanks.
Single-click the message. Does it expand, to show details similar to the details in my screenshot?

Failed to create a proxy device for the USB device. (Error: VERR_READ_ERROR).
 
Well, the said laptop died in a blue poof of smoke. So now I'm waiting for new one, hope my issues with FreeBSD will be solved with it.

Thanks for the help so far!
 
I am having the same Error here on 14.0-RELEASE-p4, Virtualbox 6.1.50.
Code:
Failed to attach the USB device ... to the virtual machine ...
Details:
Failed to create a proxy device for the USB device. (Error: VERR_INVALID_PARAMETER).
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
ConsoleWrap
Interface:
IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
After reading this: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270900 I think it might be the case that it is an issue with USB 1.1 vs 2.0 and 3.0. But for the time being I could not figure out why I got different patch files in ports directory. Probably need to wait for a git push?
I also tested this on another machine where USB was working fine before the upgrade to 14.0. Now since the upgrade it fails to attach any devices.
 
Back
Top