Go Back   Hardware Forums > Software Support Forums > Linux and Other OSes

Reply
 
LinkBack Thread Tools
Old 17-02-2008, 07:33 PM   #1 (permalink) Top
Ani Ma'amin
 
sabashuali's Avatar
 
Join Date: May 2005
Age: 41 Male
Posts: 1,452
Times Helpful: 71
My Mood: Grumpy
Status: Offline

My Computer

Default USB devices in VitualBox

Hi all

Wondering if someone can help me set-up USB devices for my VirtualBox guest OS (Windows 2000). Not sure why I swapped..... but I had Win XP running although I had the same issue there.

Basically all is working fine, apart from using USB devices. I have the devices connected and recognised in Linux (one is the USB Mouse which I am indifferent to whether it is recognised in Windows or not) .
Then, following the manual, I add the filters according to what I have connected - in the first instance they were the mouse and my TomTom (GPS receiver), so two filters, one for each device.
According to the VB manual, once windows starts, I should reconnect the devices in order for Windows to detect and install the devices.

The problem is that windows does not.... When I go to 'Devices' -> 'USB Devices', both devices are listed but greyed out, so I cannot select them.....
When I hover over the USB icon at the bottom right of the VB window, the tool tip tells me that no devices are attached.....

So.... any ideas? Thanks for looking!

__________________
This is not a PC friendly user!!!
"...when you find someone you really love, all the rest is just... other stuff." - Leanne Anika Battersby

Help with digital video?

Help My Mini City to grow
Hit or Miss
Send a message via Skype™ to sabashuali   Reply With Quote
Whats this? G15 Gaming Keyboard
G15 Gaming Keyboard
Seller Price (inc. VAT) Delivery Total Price Availability Seller Rating
Tekheads.co.uk £54.99 £4.95 £59.94 In Stock Rated: 3 out of 5 - Number of votes: 310
Misco.co.uk £53.99 £4.69 £58.68 In Stock Rated: 4 out of 5 - Number of votes: 1354
inkcartridgedirect.org.uk £50.63 £4.99 £55.62 In Stock Rated: 1 out of 5 - Number of votes: 1
Old 17-02-2008, 07:21 PM   #2 (permalink) Top
Nonconformist Geek
 
Anti-Trend's Avatar
 
Join Date: Oct 2003
Age: 27 Male
Posts: 4,880
Times Helpful: 537
Status: Offline

My Computer

Hey saba, have you already tried this process?

http://anti-trend.homelinux.org/tmp/vbox_usb_howto.ogm
(Note: Link will be good for 7 days, then file is deleted by a script).
Send a message via ICQ to Anti-Trend Send a message via AIM to Anti-Trend   Reply With Quote
Old 17-02-2008, 07:44 PM   #3 (permalink) Top
Ani Ma'amin
 
sabashuali's Avatar
 
Join Date: May 2005
Age: 41 Male
Posts: 1,452
Times Helpful: 71
My Mood: Grumpy
Status: Offline

My Computer

Yup! exactly how I did it......

Thanks AT.....
__________________
This is not a PC friendly user!!!
"...when you find someone you really love, all the rest is just... other stuff." - Leanne Anika Battersby

Help with digital video?

Help My Mini City to grow
Hit or Miss
Send a message via Skype™ to sabashuali   Reply With Quote
Old 17-02-2008, 09:24 PM   #4 (permalink) Top
Nonconformist Geek
 
Anti-Trend's Avatar
 
Join Date: Oct 2003
Age: 27 Male
Posts: 4,880
Times Helpful: 537
Status: Offline

My Computer

From the VirtualBox Manual:

11.4.6 USB not working

If USB is not working on your Linux host, make sure that the current user has permission to access the USB filesystem (usbfs), which VirtualBox relies on to retrieve valid information about your host’s USB devices. As usbfs is a virtual filesystem, a chmod on /proc/bus/usb has no effect. The permissions for usbfs can therefore only be changed by editing the /etc/fstab file.

For example, most Linux distributions have a user group called usb or similar, of which the current user must be a member. To give all users of that group access to usbfs, make sure the following line is present:
Code:
# 85 is the USB group
none       /proc/bus/usb        usbfs       devgid=85,devmode=664        0    0
Replace 85 with the group ID that matches your system (search /etc/group for “usb” or similar)
Alternatively, if you don’t mind the security hole, give all users access to USB by changing “664” to “666”.

The various distributions are very creative from which script the usbfs filesystem is mounted. Sometimes the command is hidden in unexpected places. For SuSE 10.0 the mount command is part of the udev configuration file /etc/udev/rules.d/50-udev.rules. As this distribution has no user group called usb, you may e.g. use the vboxusers group which was created by the VirtualBox installer. Since group numbers are allocated dynamically, the following example uses 85 as a placeholder. Modify the line containing (a linebreak has been inserted to improve readability)
Code:
DEVPATH="/module/usbcore", ACTION=="add",
     RUN+="/bin/mount -t usbfs usbfs /proc/bus/usb"
and add the necessary options (make sure that everything is in a single line):
Code:
DEVPATH="/module/usbcore", ACTION=="add",
     RUN+="/bin/mount -t usbfs usbfs /proc/bus/usb -o devgid=85,devmode=664"
Debian Etch has the mount command in /etc/init.d/mountkernfs.sh. Since that distribution has no group usb, it is also the easiest solution to allow all members of the group vboxusers to access the USB subsystem. Modify the line
Code:
domount usbfs usbdevfs /proc/bus/usb -onoexec,nosuid,nodev
so that it contains
Code:
domount usbfs usbdevfs /proc/bus/usb -onoexec,nosuid,nodev,devgid=85,devmode=664
As usual, replace the 85 with the actual group number which should get access to USB devices. Other distributions do similar operations in scripts stored in the /etc/init.d directory.
Send a message via ICQ to Anti-Trend Send a message via AIM to Anti-Trend   Reply With Quote
The Following User Says Thank You to Anti-Trend For This Useful Post: Show me >>
Old 18-02-2008, 07:40 AM   #5 (permalink) Top
Ani Ma'amin
 
sabashuali's Avatar
 
Join Date: May 2005
Age: 41 Male
Posts: 1,452
Times Helpful: 71
My Mood: Grumpy
Status: Offline

My Computer

Duuuhhhhhhh!

Why look at the troubleshooting part?

You people think it is easy to be so thick?
You try it for a day or two!

Thanks AT.... another lesson learned!
__________________
This is not a PC friendly user!!!
"...when you find someone you really love, all the rest is just... other stuff." - Leanne Anika Battersby

Help with digital video?

Help My Mini City to grow
Hit or Miss
Send a message via Skype™ to sabashuali   Reply With Quote
Old 18-02-2008, 08:38 AM   #6 (permalink) Top
Nonconformist Geek
 
Anti-Trend's Avatar
 
Join Date: Oct 2003
Age: 27 Male
Posts: 4,880
Times Helpful: 537
Status: Offline

My Computer

LOL, want to know the secrets to life, the universe and everything?

R - T - F - M

Send a message via ICQ to Anti-Trend Send a message via AIM to Anti-Trend   Reply With Quote
Old 18-02-2008, 12:19 PM   #7 (permalink) Top
Ani Ma'amin
 
sabashuali's Avatar
 
Join Date: May 2005
Age: 41 Male
Posts: 1,452
Times Helpful: 71
My Mood: Grumpy
Status: Offline

My Computer

Quote:
Originally Posted by Anti-Trend View Post
LOL, want to know the secrets to life, the universe and everything?

R - T - F - M

LOL I get it now.... took a few minutes.....
__________________
This is not a PC friendly user!!!
"...when you find someone you really love, all the rest is just... other stuff." - Leanne Anika Battersby

Help with digital video?

Help My Mini City to grow
Hit or Miss
Send a message via Skype™ to sabashuali   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux and GPS Devices Impotence Linux and Other OSes 0 27-04-2007 03:12 PM
Help with hooking up devices kyearman Storage Devices 10 09-08-2006 12:26 PM
Cant get 2 IDE devices to work... daisycutter Storage Devices 8 11-06-2006 10:56 PM
Connecting IDE devices sabashuali Storage Devices 1 30-09-2005 08:00 PM
More than 4 Devices? and1088 Storage Devices 21 22-12-2001 02:23 AM


All times are GMT +1. The time now is 06:18 PM.


Copyright © 2000 - 2008 · HARDWAREFORUMS.COM · All rights reserved