If no usbfs (DEPRECATED) is present but usb devices are handled through udev, the provided udev-rules conflict with other rules. The current solution sets all usb devices to root:vboxusers which might not be desirable for all devices. The problem has been adressed upstream and a solution is release in VirtualBox 4.x (see http://www.virtualbox.org/wiki/Changelog, http://www.virtualbox.org/ticket/5345, http://www.virtualbox.org/ticket/7759) Reproducible: Always Steps to Reproduce: 1. install app-emulation/virtualbox-modules-4.0.4 and app-emulation/virtualbox-bin-4.0.4 2. uncomment udev-rules in /etc/udev/rules.d/10-virtualbox.rules and reload udev (reboot host or udevadm control --reload-rules) 3. start guest Actual Results: click menu->devices->USB... : all devices are grayed out Expected Results: devices should be selectable for usage in host system.
Created attachment 263625 [details, diff] diff for the ebuild itself The change creates udev rules for second USB device tree as provided by the upstream install script. Since this has been handled within the ebuild, it needs to be changed accordingly. If dependency to app-emulation/virtualbox* would be added, $VBOX_APP_HOME could be used for path and it might be a good idea, to include VBoxCreateUSBNode.sh -script into virtualbox-modules. But since the udev rules are commented out, it should be alright for the moment.
I just enabled deprecated /proc/bus/usb into kernel to be able to use usb in virtualbox :)
(In reply to comment #2) > I just enabled deprecated /proc/bus/usb into kernel to be able to use usb in > virtualbox :) Right, this is one possible workaround. But the upstream solution for the 4.x-series is provided via VBoxCreateUSBNode.sh. The udev rule specified in and created by the previous ebuils came from the upstream udev rule provided by the VirtualBox-Team. Since the rule changed, we need to adjust the ebuild accordingly. The patch just reflects those changes. There are several workarounds for not seeing the problem at the moment, but usbfs (which is /proc/bus/usb) is deprecated and should therefore not be used as a solution. Please deactivate usbfs in your kernel and test the patched ebuild if you experienced the initial problem.
I will work on a fix the next couple of days. The problem here is that VBoxCreateUSBNode.sh only gets installed by app-emulation/virtualbox-bin at the moment but app-emulation/virtualbox needs to install it as well. I don't want to add a udev rule which references to files not being installed with the same package. So I have so take the udev-rules away from virtualbox-modules and add them to virtualbox{,-bin}. This needs some testing and my time is kinda limited so please be patient with me.
Well none of the udev rules that I found with google did not work! The only thing that actually did the trick is typing in console: sh /opt/VirtualBox/VBoxCreateUSBNode.sh 0 It exits with an error but creates the nodes in /dev. I`ll upload my udev rules for vbox if someone more knowledgeable than me can make them work :(
Created attachment 271991 [details] my nonworking udev rules for vbox My udev rules for vbox if someone more knowledgable than me can make them work.
Sorry for the fuss I forgot to make VBoxCreateUSBNode.sh executable!
Alright, there are now three new ebuilds in the tree: app-emulation/virtualbox-modules-4.0.6-r1 app-emulation/virtualbox-4.0.6-r1 app-emulation/virtualbox-bin-4.0.6-r1 They should make new USB handling working out of the box. Please give this a thorough testing and report back here if it works (I don't use USB in my VMs so I cannot test it).
No feedback within ten months... closing as fixed.