VirtualBox

Ticket #4291 (new defect)

Opened 5 months ago

Last modified 2 weeks ago

USB devices cannot be connected on Fedora 11 host - should not be using /proc/bus/usb

Reported by: robhancock Assigned to:
Priority: major Component: USB
Version: VirtualBox 3.0.6 Keywords:
Cc: Guest type: Windows
Host type: Linux

Description

With the default permissions in Fedora 11 VirtualBox is unable to connect any USB devices to guests (the devices show up in the list but are all grayed out). It appears this is because all the /proc/bus/usb files are owned by root and inaccessible. Doing a chgrp/chmod of the files to be owned by vboxusers group and readable/writable by the group seems to allow it to work. Unmounting /proc/bus/usb entirely also seems to allow it to work. (It seems that it's mounted by /etc/rc.sysinit.)

Apparently VirtualBox uses /proc/bus/usb (which is deprecated) if it's available, but doesn't check if the permissions actually allow it to be used. It seems the newer /dev/bus/usb is only used if /proc/bus/usb is entirely unmounted. Seems like it should be the other way around and /dev/bus/usb should be used unless it's not present.

Change History

(in reply to: ↑ description ) 2009-09-14 22:24:21 changed by a_villacis

Replying to robhancock:

Apparently VirtualBox uses /proc/bus/usb (which is deprecated) if it's available, but doesn't check if the permissions actually allow it to be used. It seems the newer /dev/bus/usb is only used if /proc/bus/usb is entirely unmounted. Seems like it should be the other way around and /dev/bus/usb should be used unless it's not present.

This bug is still present in VirtualBox 3.0.6. Same symptoms and same workarounds apply. Tested on Fedora 10 host, WinXP-SP2 guest.

2009-09-18 14:05:05 changed by frank

  • version changed from VirtualBox 2.2.4 to VirtualBox 3.0.6.

The next release will allow to override the default.

2009-11-10 17:44:34 changed by mscarton

This bug is still present in VirtualBox 3.0.10. I found this to be necessary for RHEL 5.4 host running a Windows XP guest after upgrading from 3.0.6 to 3.0.10.The alternative solutions altering the udev permissions did not work, probably because /proc is being used in lieu of /dev even though it has been deprecated.

By the way, the site is littered with defects, issues, and forum discussions regarding USB device management problems. For examples, please see 5249, 3394, and http://forums.virtualbox.org/viewtopic.php?f=7&t=19381&p=83833&hilit=opensuse+usbfs#p83833. I have to believe that a contributing factor is that udev is not being used in a fashion consistent with current implementation standards, per the use of /dev/bus/usb. Fixing this would be of great benefit to allow of us, even if the fix is simply to expose an operational control allowing us to moderate which device access is to be used.

© 2009 Sun Microsystems, Inc.
ContactPrivacy policy