LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Cannot use any USB devices in VirtualBox (https://www.linuxquestions.org/questions/linux-hardware-18/cannot-use-any-usb-devices-in-virtualbox-572305/)

davidguygc 07-25-2007 10:25 PM

Cannot use any USB devices in VirtualBox
 
Hi, I have a problem with Virtualbox when I try to use any USB devices, I get this message:

Code:


Not permitted to open the USB device, check usbfs options.


Result Code:
0x80004005
Component:
Console
Interface:
IConsole {1dea5c4b-0753-4193-b909-22330f64ec45}

I noticed that I can use USB devices when I run XP while I'm root. I tried a couple of sites HOWTO's on this matter, but it didn't help.

Any ideas?

Thanks,
--David

davidguygc 07-30-2007 12:44 AM

I figured it out. For anybody that uses a distro that doesn't use "sudo" by default, (i.e. Slack) You gotta set up sudo to allow you to run /usr/bin/VirtualBox as root

dborca 11-15-2007 05:24 PM

The problem:

In Slackware 11, usbfs is mounted from rc.udev with

Code:

mount usbfs -t usbfs /proc/bus/usb -o devgid=10,devmode=0666
In Slackware 12, usbfs is mounted from rc.S with

Code:

/sbin/mount -v usbfs /proc/bus/usb -t usbfs
Which means that only root is able to rw in usbfs.

The solution:
You must edit rc.S to mount usbfs with rw permissions for other users (I used `wheel’ group):

Code:

/sbin/mount -v usbfs /proc/bus/usb -t usbfs -o devgid=10,devmode=0664

kernel-P4N1C 07-15-2009 09:14 PM

Running virtualbox 3.0 r49315 on slackware12 stock (i mean... not updated to current) and this tweek don't work

I have to run virtualbox as root to get access to usb devices....


does anybody have the same issue as me?

kernel-P4N1C 07-15-2009 09:53 PM

found a much elegant solution...

add this line to /etc/fstab

none /proc/bus/usb usbfs auto,remount,devmode=0664,devgid=100 0 0

Drone91 03-26-2010 05:57 PM

Quote:

Originally Posted by kernel-P4N1C (Post 3608993)
found a much elegant solution...

add this line to /etc/fstab

none /proc/bus/usb usbfs auto,remount,devmode=0664,devgid=100 0 0



For anyone who finds this thread like me.
the remount option is invalid in fstab and will yield to mount failing.
put rw,auto and the dev configs instead
easy to see but saves a few reboots

Drone91 03-26-2010 06:02 PM

please delete

kernel-P4N1C 06-14-2010 08:36 AM

JUNE 2010 UPDATE

I had to make a clean install on my hdd as it died.
On a clean install of slackware 13.1 and this approach no longer works.
I have access to a usb printer but no access to any mounted or unmounted usb pendrive.


All times are GMT -5. The time now is 05:33 AM.