Fedora 9 USB

Discussions related to using VirtualBox on Linux hosts.
Post Reply
cornfused
Posts: 2
Joined: 1. Jan 2009, 20:17

Fedora 9 USB

Post by cornfused »

I can't for the life of me to get USB to work on Fedora 9 with a Win2k Guest.
I added this:

Code: Select all

none /proc/bus/usb usbfs auto,busgid=501,busmode=0775,devgid=501,devmode=664 0 0
at the suggestion of another post on this site, Didn't help

I added the /etc/udev/scripts/set-usb-group script containing:

Code: Select all

#! /bin/sh
ret=false
if [ "$1" != "" ]; then
if [ -f /proc/$1 ]; then
chgrp usb /proc/$1 && \
chmod g+rw /proc/$1 && \
logger udev/set-usb-group: `ls -l /proc/$1`
ret=true
fi

if [ -e /dev/$1 ]; then
chgrp usb /dev/$1 && \
chmod g+rw /dev/$1 && \
logger udev/set-usb-group: `ls -l /dev/$1`
ret=true
fi
else
logger udev/set-usb-group: Called without device arg
exit 0
fi

if ! $ret; then
logger udev/set-usb-group: Setting permissions on device $1 failed
fi
that I saw somewhere else. I've added groups, changed a bunch of permissions, and all I get when I rt-click on the USB devices in Virtualbox (the icon at the bottom) is my USB devices grayed out and "No usb devices attached"

What am I doing wrong. No I don't want to run VirtualBox as root.
TrevorPH
Posts: 55
Joined: 30. Sep 2008, 02:37

Re: Fedora 9 USB

Post by TrevorPH »

cornfused wrote:I can't for the life of me to get USB to work on Fedora 9 with a Win2k Guest.
I added this:

Code: Select all

none /proc/bus/usb usbfs auto,busgid=501,busmode=0775,devgid=501,devmode=664 0 0
at the suggestion of another post on this site, Didn't help
I'm running on Centos 5 and to get USB to work with <= 2.0.4 I had to edit /etc/rc.sysinit to amend the mount for usbfs there. Perhaps Fedora 9 is similar?

Code: Select all

if [ ! -d /proc/bus/usb ]; then
        modprobe usbcore >/dev/null 2>&1 && mount -n -t usbfs /proc/bus/usb /proc/bus/usb -o devgid=501,devmode=664
else
        mount -n -t usbfs /proc/bus/usb /proc/bus/usb -o devgid=501,devmode=664
fi
cornfused
Posts: 2
Joined: 1. Jan 2009, 20:17

Post by cornfused »

That was it.

Perhaps the FAQ should be updated.
Hope that I don't have to go through all this if I update to Fedora 10!!!!
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

Thanks TrevorPH, it will be added to the FAQ.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
sej7278
Volunteer
Posts: 1003
Joined: 5. Sep 2008, 14:40
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Solaris, Linux, Windows, OS/2, MacOSX, FreeBSD
Contact:

Post by sej7278 »

Code: Select all

none /sys/bus/usb/drivers	usbfs	devgid=502,devmode=664	0	0
in /etc/fstab works fine for me with fedora9, fedora10 and centos 5.2 since virtualbox 2.0.2

looks like your code was a bit wrong - possibly from a n00buntu user?
robatino
Posts: 164
Joined: 17. Dec 2008, 21:15

Post by robatino »

If the vboxusers group has gid 501, and I'm a member of that group, then adding the line

Code: Select all

none /sys/bus/usb/drivers usbfs devgid=501,devmode=664 0 0
at the end of /etc/fstab has worked for me in both F9 and F10.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

Ok, will update when I get to the topic.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
MercuryShadow
Posts: 3
Joined: 22. Apr 2009, 02:37
Primary OS: Mac OS X Leopard
VBox Version: PUEL
Guest OSses: Fedora 10

Re: Fedora 9 USB

Post by MercuryShadow »

I added the line to my fstab, and I'm still showing all USB devices greyed out. Fedora 10 host, WinXP guest, VBox 2.2.2 PUEL.

Nevermind, took a reboot after adding this line, but it's all good now.
starlon
Posts: 4
Joined: 1. Apr 2009, 06:35
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: Fedora, Windows XP, Windows Server 2003
Contact:

Re: Fedora 9 USB

Post by starlon »

For some reason /proc/bus/usb/drivers doesn't work for me on Fedora 10. I have to use /proc/bus/usb. I have to use the following after I've booted:

umount /proc/bus/usb
mount -n -t usbfs /proc/bus/usb /proc/bus/usb -o devgid=503,devmode=664

It doesn't work if I put it in /etc/fstab at the end. /proc/bus/usb is root:root until I run the two commands above.
virtual_ulm
Posts: 5
Joined: 13. Jul 2009, 01:45
Primary OS: Linux other
VBox Version: PUEL
Guest OSses: Windows Vista

Re: Fedora 9 USB

Post by virtual_ulm »

For Fedora 11 there is another solution.
virtual_ulm
Posts: 5
Joined: 13. Jul 2009, 01:45
Primary OS: Linux other
VBox Version: PUEL
Guest OSses: Windows Vista

Re: Fedora 9 USB

Post by virtual_ulm »

The solution starlon proposes works perfect for me (Centos/RHEL 5.3, VirtualBox 3.0.2).
aardvark99
Posts: 1
Joined: 14. Jul 2009, 02:43
Primary OS: Fedora 10
VBox Version: OSE Fedora
Guest OSses: Windows 7 RC1

Re: Fedora 9 USB

Post by aardvark99 »

Thanks for the advice, editing /etc/rc.sysinit worked well on Fedora 10. I couldn't get USB working no matter what I did with /etc/fstab.
Post Reply