Opened 10 years ago
Closed 8 years ago
#13489 closed defect (obsolete)
Attaching USB device when XP VM is running fails, but works if attached before starting VM
Reported by: | Donuts | Owned by: | |
---|---|---|---|
Component: | USB | Version: | VirtualBox 4.3.16 |
Keywords: | usb linux windows xp VERR_READ_ERROR NS_ERROR_FAILURE | Cc: | |
Guest type: | Windows | Host type: | Linux |
Description
Hi,
I'm using a Windows XP VM on Lubuntu 12.04 x86-64 host, VirtualBox 4.3.16.
When the VM is running, if I insert a USB device I get an error dialog:
Failed to attach the USB device Shuttle Technology Inc. eUSCSI Bridge Ver 1.11 [0100] to the virtual machine IE8 - WinXP.
Failed to create a proxy device for the USB device. (Error: VERR_READ_ERROR).
Result Code: NS_ERROR_FAILURE (0x80004005) Component: Console Interface: IConsole {8ab7c520-2442-4b66-8d74-4ff1e195d2b6}
However if I attach the USB device before starting the VM, it is correctly captured and can be used in the VM.
Could the hot-plugging problem be because the host kernel (usb-storage module) accesses the device when it is plugged in? Is there any way to make VirtualBox's capturing of the device take priority over other access by the host kernel?
Change History (2)
comment:1 by , 10 years ago
comment:2 by , 8 years ago
Resolution: | → obsolete |
---|---|
Status: | new → closed |
Please reopen if still relevant with a recent VirtualBox release.
A possible workaround for this problem is to blacklist the USB ID of the storage device you want to use with the VirtualBox guest, before connecting it.
For example in my case (USB ID 04E6:0002), I can do echo 04e6:0002:i >/sys/module/usb_storage/parameters/quirks
Or you could put usb-storage.quirks=04e6:0002:i on the kernel command line before booting.