Fedora 9 USB

Discussions related to using VirtualBox on Linux hosts.

Fedora 9 USB

Postby cornfused » 1. Jan 2009, 20:26

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   Expand viewCollapse view
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   Expand viewCollapse view
#! /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.
cornfused
 
Posts: 2
Joined: 1. Jan 2009, 20:17

Re: Fedora 9 USB

Postby TrevorPH » 1. Jan 2009, 20:56

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   Expand viewCollapse view
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   Expand viewCollapse view
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
TrevorPH
 
Posts: 55
Joined: 30. Sep 2008, 02:37

Postby cornfused » 1. Jan 2009, 21:06

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!!!!
cornfused
 
Posts: 2
Joined: 1. Jan 2009, 20:17

Postby Sasquatch » 1. Jan 2009, 21:08

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.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Postby sej7278 » 2. Jan 2009, 01:05

Code: Select all   Expand viewCollapse view
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?
sej7278
Volunteer
 
Posts: 991
Joined: 5. Sep 2008, 14:40
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Solaris, Linux, Windows, OS/2, MacOSX, FreeBSD

Postby robatino » 2. Jan 2009, 02:43

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

Code: Select all   Expand viewCollapse view
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.
robatino
 
Posts: 126
Joined: 17. Dec 2008, 21:15

Postby Sasquatch » 4. Jan 2009, 17:51

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.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Re: Fedora 9 USB

Postby MercuryShadow » 10. May 2009, 05:04

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.
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

Postby starlon » 20. May 2009, 12:20

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.
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

Re: Fedora 9 USB

Postby virtual_ulm » 14. Jul 2009, 00:32

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

Postby virtual_ulm » 14. Jul 2009, 00:33

The solution starlon proposes works perfect for me (Centos/RHEL 5.3, VirtualBox 3.0.2).
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

Postby aardvark99 » 14. Jul 2009, 02:49

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.
aardvark99
 
Posts: 1
Joined: 14. Jul 2009, 02:43
Primary OS: Fedora 10
VBox Version: OSE Fedora
Guest OSses: Windows 7 RC1


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 13 guests