Page 1 of 2

Can't see captured USB devices. (Ubuntu 8.10)

Posted: 31. Oct 2008, 17:24
by The MAZZTer
When I capture my USB drive, I see nothing guest-side:

Image
Nothing connected in guest OS.

Image
Claims to be captured.

The VirtualBox USB driver seems to be running and working fine, drive doesn't appear host-side, everything host-side seems to be working.

Host OS is Windows XP SP3 Home.

PS: The new color scheme in Ubuntu 8.10 (not pictured) is awesome.

Posted: 1. Nov 2008, 19:07
by Dai

Posted: 17. Nov 2008, 22:00
by anewguy
I have this exact same problem. I'm running Windows XP Pro SP3 as the host OS, but in my case Ubuntu 8.04 as the guest OS. If I leave just a blank filter, no USB devices show with "lsusb" in Ubuntu. If I put in device-specific filters I get the same result. I have been through the suggested link - it makes no difference for me (also, the link is talking about running VBox with Ubuntu as the HOST OS). I have tried some suggestions I found for OpenSUSE that linked /etc/somethingUSB to something - no difference.

I have a thread open on Ubuntu forum for this as well, and I am copying an entry I made there to here:
anewguy Fresh Brewed Ubuntu wrote:Join Date: Jun 2007
Location: /usr/bin/ibedave
Posts: 1,439
Thanks: 27
Thanked 73 Times in 69 Posts Re: Ubuntu as guest in virtualbox - no usb

Also followed this link, doing everything in it, and adding the 2 packages as others suggested. Still no USB devices showing.

http://www.ubuntu-unleashed.com/2008...rdy-heron.html

If, before starting the actual VM, using the VirtualBox control panel I can add the USB devices. When I start the VM, they don't show. However if I move the cursor to the bottom of the VM pane and over the USB cable symbol, I can select a device and then I get this in a VirtualBox error box:

Code: Select all

Failed to attach the USB device LEXAR JD FILFLY [1100] to the virtual machine ubuntu 8.04

USB device "LEXAR JD FIRFLY" with UUID {0425d990-c913-477d-b7f2-1c6aa339d188} is busy with a previous request. Please try again later.

Result Code: E_INVALIDARG (0x80070057)
Component: HostUSBDevice
Interface: IHostUSBDevice {173b4b44-d268-4334-a00d-b6521c9a740a}
Callee: IConsole {e3c6d4a1-a935-47ca-b16d-f9e9c496e53e}
So, is the device busy on a host request (I already did the "cancel" when Windows recognised the device), or is busy on a guest (Ubuntu 8.04) request?

I don't know if Windows is releasing the device or not - Windows does do it's musical thing and ask what I want to do with the device - makes no difference if I say cancel or I say nothing and accept.

help??
Thanks in advance!
Dave :?

Posted: 18. Nov 2008, 18:34
by anewguy
As a follow-on, my USB devices, for example a flash drive, show as "captured" in vboxmanage prior to and after starting the VM, however none of the devices show in the VM. If I go to the USB icon on the bottom of the Window and click on the flash drive, I get the busy message as noted in my previous post.

Dave

Posted: 18. Nov 2008, 22:00
by Sasquatch
You can see if the device is actually captured, if a checkbox is ticked in front of the device if you open the contect menu of the USB filter (right click on the USB icon in the status bar, or use the Devices menu). If it isn't ticked, it isn't mounted.

As for the link that is given, don't use it, as it's for VB with Hardy as HOST, not Guest.

See if it helps to unplug the device and plug it back in while the VM has focus.

Posted: 18. Nov 2008, 23:26
by anewguy
Prior to starting the VM, with the device plugged in, vboxmanage shows the flash drive as captured. When the VM starts, the lower USB icon says no devices attached - right clicking shows the device in the list, when clicked it returns the busy error box as shown in earlier post in this thread.

Unplugging and plugging in of the device show the same all around - same error box.

I'm wondering if this is somehow related to SP3 of Windows XP, since that is what I'm running and the originator of this thread posted as they are running. The people I've heard from in other forums, including the Ubuntu forums, only seem to be XP SP2 or else Vista.

I wanted to contact Sun on this, but there is no email for support in the US listed on their site. I believe the busy error box noted earlier is the key to the whole thing.

Thanks for the reply!
dave :?

Posted: 19. Nov 2008, 09:54
by anewguy
I thought I'd post an update - things are progressing. I still can't see the devices in the guest OS (Ubuntu), however I did get rid of the error message.

I use libusb and GTK in Windows as well as in Linux for cross-platform development. It got me thinking tonight that perhaps libusb was messing up the VB USB stuff, so I removed libusb from the Windows host OS. I removed all filters and just created an empty filter, closed out VB, restarted VB and restarted the Ubuntu guest OS. After ubuntu was completely up, vboxmanage list usbhost showed the device as busy, not captured. I went to the bottom USB icon on the VM and did a right-click and clicked on the device - I did not get a busy error box this time! A vboxmanage list usbhost showed the device now as captured - so I assume that part of things is working. I still cannot see the device in the Ubuntu guest OS yet. But some progress! I should mention that something happened now that never happened before - when I plugged the device in after the Ubuntu VM came up I actually got a new hardware found for a virtualbox USB device and it loaded a driver - I never got that before!

EDIT: I can now see my USB devices!! libusb in windows is the culprit. Thanks everyone for your help! I'll open a separate thread for Windows libusb and Ubuntu VM not working together!

Posted: 11. Dec 2008, 16:55
by mswal2846
Hi!

You mentioned in the link that you got this working and would post how in a separate chain ... can you provide a link to that?

I'm having the same issue and not understand the line that it's libusb in Windows causing the problem.

Thanks!!
Mark

Posted: 12. Dec 2008, 00:10
by anewguy
You would have to have specifically downloaded libusb for Windows in order to have the same problem I did - it is not supplied with Windows. Libusb is a programming interface I have by default in my Linux side of things, and since I write cross-platform applications I needed to install it in Windows. I had to actually uninstall libusb via the normal control panel/add remove way to get my vm to work. For me personally, given what I do, I couldn't do that. So, I removed the VM and have a dual-boot system so I can continue my development.

Dave

Re: Can't see captured USB devices. (Ubuntu 8.10)

Posted: 6. Mar 2009, 02:10
by gsanson
Hi,

I'm have the same problem and have searched every newsgroup and forum without any luck.
I have XP SP3 as host and Centos 5 as guest. The vboxmanage lisgt usbhost show the device captured and there is no check box next to the device from the attached USB devices tray icon. The hover over the icon indicates no devices attached.
I suspect that without the icon/manager connecting to the device all the changes inside Centos will do no good.

Has anyone solved this problem?

Please help.

Thanks,
Gary

Re: Can't see captured USB devices. (Ubuntu 8.10)

Posted: 6. Mar 2009, 03:09
by anewguy
When I removed libusb, I was able to access my USB devices. Just a couple of things I would imagine everyone alreadys knows: you have to download the free but NOT open source version of virtualbox to have USB support, and you must set up the appropriate filter in the USB setup for the virtual machine to actually use them. My problem, with the devices being busy, was indeed libusb. I have since gone to dual boot so I can still have libusb in Windows. I would prefer however to be able to run the virtual machine of Linux within Windows so I could check each environment as I do my development without having to restart each time.

I don't know if the problem lies just in libusb, or if the hooks the virtualbox makes to the USB devices when libusb is running on the host. I have heard no solution from the libusb developers, the libusb forum, the ubuntu forum, or from virtualbox. So for now I just have to live in a not quite my ideal world.

dave :)

Re: Can't see captured USB devices. (Ubuntu 8.10)

Posted: 3. May 2010, 17:45
by acknight2000
Dear All
I just started using Virtual Box. Host is WIndows XP SP3, guest Ubuntu 9.10. I am having same issue with USB devices where it is captured but then get error msg BUSY.

I understand from this post that libusb could be the problem but this file is no where to be found on my system disk and I have not installed it.

Have any other solutions been found for it?

Re: Can't see captured USB devices. (Ubuntu 8.10)

Posted: 4. May 2010, 19:57
by anewguy
As stated in one of my replies, I use libusb and GTK for cross-platform development, specifically between Linux and Windows. I had to download and install the libusb development package and the GTK for Windows package and install them in Windows. This is the only way I know that you would have libusb show up in Windows. If you haven't gone through the processes of installing libusb and GTK in Windows then you aren't having the same problem I am. Libusb is a collection of low-level programming functions to talk to USB devices, and as such it is hooking in at a layer below that of VirtualBox apparently. this is what results in my problem. It sounds like your problem is different from mine.

Right now I'm not running a VM, but if I think of something I'll post back to you.

Dave ;)

Re: Can't see captured USB devices. (Ubuntu 8.10)

Posted: 4. May 2010, 20:00
by anewguy
Ahhhh, 2 things just came to mind after I just posted:

(1) you are running the PUEL version of VirtualBox so there is USB support, correct?

(2) you need to set up at least 1 filter to see USB devices. Back when I was doing this you had to have at least 1 blank filter (to allow all, but never seemed to work), but I added 1 for each device I was going to use.

don't know if that helps you or not.

Dave ;)

Re: Can't see captured USB devices. (Ubuntu 8.10)

Posted: 16. Jun 2010, 11:12
by andreone
I am currently experiencing the same USB problems as stated by some of you in this post. No USB device seems to be recognised by the guest system (disks, webcam, DVD)

I am using Win XP Pro SP3 and until I moved to the latest versions of VBox (in conjunction with Win XP SP3) i never encountered any problems with my USB devices.

Now they are reported busy and if I try to force the capture I get windows to try and reinstall the VBox usb drivers (but nothing happens afterwards) and eventually I got an error message and the system hangs.

I am also using VBOX on my Ubuntu 9.10 host, but I have no such issues with guest OS.

I suspect the problem is a conflict between VBox usbdrivers and win XP SP3.

I hope somebody or the VBox team can help us out.