problems with usb

Discussions related to using VirtualBox on Linux hosts.
Post Reply
OrionVII
Posts: 10
Joined: 30. Nov 2008, 11:29
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win XP SP3
Location: France
Contact:

problems with usb

Post by OrionVII »

hello,
i installed virtualbox 2.1.4 and winxp as guest. everything works fine but i can't enable usb. when i right click in the guest window on the usb symbol a grey colored list with two usb device appears but i can't select one. the mouse over on the same symbol indicates that no usb device is connected. guest additions are installed.
system: dell inspiron 6400, intel 945 graphic accelerator, openSUSE 11.1, KDE4.2.1
thanx 4 your help
carsten
gthaker
Posts: 29
Joined: 25. Feb 2008, 23:18

Re: problems with usb

Post by gthaker »

I could never get USB devices to be recognized on my Windows XP guest (w/ a Linux host) till I added this line to my /etc/fstab and restarted everything.


none /sys/bus/usb/drivers usbfs devgid=501,devmode=664 0 0

where 501 is groupid for "vboxusers" (see in file /etc/group)

hope this helps and if possible pl. post what finally did work for you.

Gautam
OrionVII
Posts: 10
Joined: 30. Nov 2008, 11:29
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win XP SP3
Location: France
Contact:

Re: problems with usb

Post by OrionVII »

gthaker wrote:I could never get USB devices to be recognized on my Windows XP guest (w/ a Linux host) till I added this line to my /etc/fstab and restarted everything.


none /sys/bus/usb/drivers usbfs devgid=501,devmode=664 0 0

where 501 is groupid for "vboxusers" (see in file /etc/group)

hope this helps and if possible pl. post what finally did work for you.

Gautam
hm, no change happend. i remember that i change the fstab file in the same way last time i installed vbox 2something. i learned that with the new version this problem was fixed. by the way, the group vboxusers is local or a systemgroup? is there a difference?

best regards
carsten
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Re: problems with usb

Post by stefan.becker »

Try this solution:

/etc/fstab

Code: Select all

 ...
usbfs /proc/bus/usb usbfs auto,busgid=XYZ,busmode=0775,devgid=XYZ,devmode=0664 0 0


/etc/rc.d/boot.local

Code: Select all

...
mount usbfs

And then restart!
OrionVII
Posts: 10
Joined: 30. Nov 2008, 11:29
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win XP SP3
Location: France
Contact:

Re: problems with usb

Post by OrionVII »

stefan.becker wrote:Try this solution:

/etc/fstab

Code: Select all

 ...
usbfs /proc/bus/usb usbfs auto,busgid=XYZ,busmode=0775,devgid=XYZ,devmode=0664 0 0


/etc/rc.d/boot.local

Code: Select all

...
mount usbfs

And then restart!
OK, but how I get the busgid?

greetz
JonCage
Posts: 10
Joined: 11. Mar 2009, 04:09

Re: problems with usb

Post by JonCage »

busgid and devgid are the same and can be obtained by typing 'id' on a shell input. This returns the user and group id's for that user as well as a list of groups to which the user is a member. Your result should looke something like this:

Code: Select all

>id vboxuser
uid=1003(vboxuser) gid=124(vboxusers) groups=124(vboxusers)
...so in my case, I entered '124'.

I was trying to get some webcams working, so I did the following:

Code: Select all

VBoxManage modifyvm "Windows-XP-Virtual-Server" -usb on
...which turned on usb support. So now I needed to add a filter for my devices, so:

Code: Select all

VBoxManage list usbhost
...which returned the information about my attached webcams as follows:

Code: Select all

Host USB Devices:

UUID:               089bff29-913d-4ea5-aa79-1e75454402e1
VendorId:           0x0ac8 (0AC8)
ProductId:          0x303b (303B)
Revision:           1.0 (0100)
Manufacturer:       Vimicro Corp.
Product:            PC Camera
Address:            /proc/bus/usb/001/004
Current State:      Available

UUID:               90e2fa0a-dd88-494b-baa9-704343eb4a52
VendorId:           0x0ac8 (0AC8)
ProductId:          0x303b (303B)
Revision:           1.0 (0100)
Manufacturer:       Vimicro Corp.
Product:            PC Camera
Address:            /proc/bus/usb/001/005
Current State:      Available
...I then fed those vendor and product id's to my virtual OS (Windows XP):

Code: Select all

VBoxManage usbfilter add 0 -target "Windows-XP-Virtual-Server" -name "Webcams" -action hold -active yes -vendorid 0AC8 -productid 303B
3B
...et voila, I had them detected and working :D
Post Reply