VirtualBox

How to setup USB with udev on Fedora 6

Contributed by Andre Srinivasan, 2007/02/16

This is how I resolved my VirtualBox USB issues on FC6 which uses udev.

  • First decide what group usb devices will be in and add yourself to that group. I chose usb (if you choose something else, be sure to update the chgrp commands below).
  • Add /etc/udev/rules.d/51-usb-group.rules:
SUBSYSTEM=="usb_device", RUN="/etc/udev/scripts/set-usb-group '%c'" 

  • Add /etc/udev/scripts/set-usb-group:
#! /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
  • Reboot
  • Revel in how much faster VirtualBox is than VMPlayer.

-andre.

Last modified 18 years ago Last modified on Mar 24, 2007 7:52:02 AM
Note: See TracWiki for help on using the wiki.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette