[CentOS] VirtualBox and CentOS

Tue Dec 8 16:52:09 UTC 2009
Lars Hecking <lhecking at users.sourceforge.net>

> Get your vboxusers group ID
> # cat /etc/group | vboxusers
> 
> Remount the USBFS with your vboxusers GID
> # mount -t usbfs -o remount,devgid=GID,devmode=664 /proc/bus/usb 
> /proc/bus/usb
 
 This is the bit that won't work. The mount options seem to have no effect:

# ll /proc/bus
total 0
dr-xr-xr-x 2 root root 0 Dec  8 16:51 input
dr-xr-xr-x 2 root root 0 Dec  8 16:51 pccard
dr-xr-xr-x 6 root root 0 Dec  8 12:09 pci
drwxr-xr-x 7 root root 0 Dec  8 12:08 usb
# ll /proc/bus/usb
total 0
dr-xr-xr-x 2 root root 0 Dec  8 12:08 001
dr-xr-xr-x 2 root root 0 Dec  8 12:08 002
dr-xr-xr-x 2 root root 0 Dec  8 12:08 003
dr-xr-xr-x 2 root root 0 Dec  8 12:08 004
dr-xr-xr-x 2 root root 0 Dec  8 12:08 005
-r--r--r-- 1 root root 0 Dec  8 16:47 devices

> Change the permissions on /dev/vboxdrv
> # chmod g+rw /dev/vboxdrv
 
 This one is new to me ...

> Restart the vboxdrv service
> # service vboxdrv restart
 
 ... and this one resets the permissions on /dev/vboxdrv to 600.