Opensuse 10.3 and usb

Discussions related to using VirtualBox on Linux hosts.

Opensuse 10.3 and usb

Postby kriko » 5. Oct 2007, 21:31

Installed opensuse 10.3 and Virtualbox 1.5.0 (non OSE).

Because usb wasn't accessible, I added:
Code: Select all   Expand viewCollapse view
/dev/bus/usb    /proc/bus/usb   usbfs   defaults,devmode=666,devgid=1001 0 0

to /etc/fstab and mounted.

Now it lists devices, but it seems it cannot capture them, all have status "busy". Example:

Code: Select all   Expand viewCollapse view
UUID:               1ece3989-bdb5-4da3-12a6-f8ea653c2873
VendorId:           0x04e8 (04E8)
ProductId:          0x6601 (6601)
Revision:           0.0 (0000)
Manufacturer:       SAMSUNG Electronics Co.,Ltd.
Product:            SAMSUNG CDMA Technologies
Address:            /proc/bus/usb/003/004
Current State:      Busy


I managed to get usb working on opensuse 10.2, but not on 10.3, what could be wrong (10.3 has usbfs support)?
kriko
 
Posts: 34
Joined: 5. Oct 2007, 21:23

Postby longshot-nm » 7. Oct 2007, 06:05

It looks to be a permissions problem. I can connect to them if I'm logged in as root.

Followup: the problem is that /proc/bus/usb is set to root:root and under that, the 001 and 002 are also set to root:root. changing them to root:vboxusers allows access.

Now to figure out what needs to be done to set those directories to root:vboxusers.
longshot-nm
 
Posts: 19
Joined: 29. Sep 2007, 02:06

Postby kriko » 7. Oct 2007, 10:59

Aha! Probably we should mess with udev permissions, will take a look when I'll have time.

Btw, openSuSE 10.3 has VBox OSE in repositories and usb doesn't work with that too (or OSE has limited functionality?).
kriko
 
Posts: 34
Joined: 5. Oct 2007, 21:23

Postby nowell29 » 10. Oct 2007, 06:57

On my default openSUSE 10.3 install, i did this to /etc/fstab:
#usbfs /proc/bus/usb usbfs noauto 0 0
/dev/bus/usb /proc/bus/usb usbfs defaults,devmode=666 0 0

I commented out the existing line, and put in the one below. If I am not mistaken though, Suse wanted to do away with a vulnerability with the usbfs that my mod to fstab creates. Sorry I do not know where that was stated, it has been some months since I saw that post. It was on the old VB forum in a post I left there.

Anyway, it works for me.
nowell29
 
Posts: 16
Joined: 30. May 2007, 22:32

Postby kriko » 10. Oct 2007, 09:53

@nowell29: Are you sure, you did this on openSuSE 10.3 system? Because, that was the first thing I've tried and it doesn't work for me. :(
kriko
 
Posts: 34
Joined: 5. Oct 2007, 21:23

Postby kriko » 10. Oct 2007, 16:02

Nope, no matter what I do (tried to change devgid to 1001) it doesn't work. Seems like opensuse 10.3 will remain only on my workstation, till I figure out how to get usb card reader work on opensuse 10.3 in windows guest.
kriko
 
Posts: 34
Joined: 5. Oct 2007, 21:23

Postby kriko » 10. Oct 2007, 16:16

That works for me, I figured out that group id is dynamic number, so everyone should have different ones, find out with:
Code: Select all   Expand viewCollapse view
#cat /etc/group | grep vboxusers

You should get:
vboxusers:!:110:kriko

Pick up the number (in my case 110) and edit /etc/fstab. Comment out following line (as in previous distro):
Code: Select all   Expand viewCollapse view
usbfs                /proc/bus/usb        usbfs      noauto                0 0


and add:
Code: Select all   Expand viewCollapse view
/dev/bus/usb /proc/bus/usb usbfs defaults,devmode=660,devgid=110 0 0

where devgid is the nuber we got before. Now remount /proc/bus/usb and start up VirtualBox. :)
kriko
 
Posts: 34
Joined: 5. Oct 2007, 21:23


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 8 guests