madu
May 1st, 2008, 10:06 PM
Hey guys,
I'm frustrated to the gut with getting the USB working in VBox in HARDY. Everything else works fine.. Weird part is that I dont get any error when opening the 'settings' in VBox.. Every other peripheral is available (on the left side column),general,Hard disks, Serial ports, etc., except for the USB.
I did everything that has been mentioned around. Pls give me a clue.
Here are my files.
/etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda6
UUID=8894b631-aee8-4c38-abf4-247b5212fab0 / ext3 relatime,errors=remount-ro 0 1
# /dev/sda7
UUID=a82a1a9c-0996-4cf7-84d4-d510f9d1e6aa none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
## usbfs is the USB group in fstab file:
none /proc/bus/usb usbfs devgid=124,devmode=664 0 0
/etc/init.d/mountdevsubfs.sh
do_start () {
#
# Mount a tmpfs on /dev/shm
#
SHM_OPT=
[ "${SHM_SIZE:=$TMPFS_SIZE}" ] && SHM_OPT="-osize=$SHM_SIZE"
domount tmpfs shmfs /dev/shm $SHM_OPT
#
# Mount /dev/pts. Create master ptmx node if needed.
#
domount devpts "" /dev/pts -ogid=$TTYGRP,mode=$TTYMODE
#
# Magic to make /proc/bus/usb work
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount --rbind /dev/bus/usb /proc/bus/usb
## Mount the usbfs for use with Virtual Box
domount usbfs usbdevfs /proc/bus/usb
-onoexec,nosuid,nodev,devgid=124,devmode=664
}
/etc/group
madu: x:1000:madu
vboxusers: x:124:madu,root
usbusers: x:1001:madu
/etc/init.d/rules/40-permissions.rules
# USB serial converters
SUBSYSTEM=="usb_device", GOTO="usb_serial_start"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="usb_serial_start"
GOTO="usb_serial_end"
LABEL="usb_serial_start"
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", \
,GROUP="vboxusers",MODE="0666", GROUP="dialout"
LABEL="usb_serial_end"
Please help me getting this to work.
Thanks in advance.
Madu.
I'm frustrated to the gut with getting the USB working in VBox in HARDY. Everything else works fine.. Weird part is that I dont get any error when opening the 'settings' in VBox.. Every other peripheral is available (on the left side column),general,Hard disks, Serial ports, etc., except for the USB.
I did everything that has been mentioned around. Pls give me a clue.
Here are my files.
/etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda6
UUID=8894b631-aee8-4c38-abf4-247b5212fab0 / ext3 relatime,errors=remount-ro 0 1
# /dev/sda7
UUID=a82a1a9c-0996-4cf7-84d4-d510f9d1e6aa none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
## usbfs is the USB group in fstab file:
none /proc/bus/usb usbfs devgid=124,devmode=664 0 0
/etc/init.d/mountdevsubfs.sh
do_start () {
#
# Mount a tmpfs on /dev/shm
#
SHM_OPT=
[ "${SHM_SIZE:=$TMPFS_SIZE}" ] && SHM_OPT="-osize=$SHM_SIZE"
domount tmpfs shmfs /dev/shm $SHM_OPT
#
# Mount /dev/pts. Create master ptmx node if needed.
#
domount devpts "" /dev/pts -ogid=$TTYGRP,mode=$TTYMODE
#
# Magic to make /proc/bus/usb work
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount --rbind /dev/bus/usb /proc/bus/usb
## Mount the usbfs for use with Virtual Box
domount usbfs usbdevfs /proc/bus/usb
-onoexec,nosuid,nodev,devgid=124,devmode=664
}
/etc/group
madu: x:1000:madu
vboxusers: x:124:madu,root
usbusers: x:1001:madu
/etc/init.d/rules/40-permissions.rules
# USB serial converters
SUBSYSTEM=="usb_device", GOTO="usb_serial_start"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="usb_serial_start"
GOTO="usb_serial_end"
LABEL="usb_serial_start"
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", \
,GROUP="vboxusers",MODE="0666", GROUP="dialout"
LABEL="usb_serial_end"
Please help me getting this to work.
Thanks in advance.
Madu.