Page 1 of 1

How to enable capture to file with usbattach command?

Posted: 2. Nov 2020, 21:47
by Vasilek
I am trying to capture traffic on a virtual machine attached USB device following this procedure https://docs.oracle.com/en/virtualizati ... uring.html

When I attach a device without a capture: "VBoxManage controlvm {VM-name} usbattach {device_uuid}" it successfully attach the device but when I add "--capturefile filename" option it fails with this error in console:

Code: Select all

VBoxManage: error: Code NS_ERROR_FAILURE (0x80004005) - Operation failed (extended info not available)
VBoxManage: error: Context: "AttachUSBDevice(usbId.raw(), captureFilename.raw())" at line 1428 of file VBoxManageControlVM.cpp
and this lines in the virtual machine log file:

Code: Select all

00:08:13.401972 VUSB: Disabled '00007fd9202d0890[proxy 1e3d:6025]' remote wakeup for configuration 0
00:08:13.453695 PDMUsb: Failed to attach USB device 'USBProxy' instance 3 to hub 00007fd9202bc320: VERR_NOT_FOUND
00:08:13.886253 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_NOT_FOUND)}, preserve=false aResultDetail=-78
VB version 6.1.16. I've tried to run it from root and with different usb devices. My host is Linux, and I've tried Linux and Windows guest, same error all the time.