LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   No usb access with VBox (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/no-usb-access-with-vbox-821849/)

GlennsPref 07-24-2010 03:41 AM

No usb access with VBox
 
Hi, I've been using VirtualBox (now by Oracle) for a few years now, and generally use the 'amd64 Non-ose' (Free for personal use)in which usb used to work but with the latest couple of versions Usb devices can be seen, but are 'greyed out' and Can't be selected. vBox ver 3.2.6.r63112

I wonder if the circumstances have changed, and now usb must be paid for, or what?

I only want my joystick to use in winxp/vBox, but I've tried and upgraded to fix it but still nothing(usb)is accessible.

It worked before (older versions)

I have a custom kernel, have set permissions for vboxuser and read the manual.

Please help me my favourite game f22_ADF (see my sig)awaits.

cheers and regards Glenn

One thing I have just thought of is weather I have the joystick setup correctly within My GNU/Linux system.

But that won't account for the webcam, printer, sound box, bluetooth which are configured and working within GNU/Linux. (Well the printer will only scan, but that's another issue.)

camorri 07-24-2010 06:06 AM

Did you install Guest Additions? After you install them, you need to check the boxes for each USB device you want the VM to control.

Zilvermeeuw 07-24-2010 07:32 AM

If you use Ubuntu, you must add your username to the virtualbox users group.

GlennsPref 07-24-2010 09:19 PM

Hi, Thank you for the replies.

I have double checked the permissions and reinstalled Guest Additions, but no change.

The usb devices remain greyed out, and can't be selected.

Anything else I should check?

Cheers Glenn

vikas027 07-25-2010 12:16 AM

Please run kudzu after plugging in the device



Also, compare fdisk -l or tail -f /var/log/messages or lsusb output before and after plugging the USB.

GlennsPref 07-25-2010 02:52 AM

Can't find kudzu, using hwinfo, the Joystick is listed...
and configured for kde4

Code:

84: USB 00.0: 0000 Unclassified device
  [Created at usb.122]
  UDI: /org/freedesktop/Hal/devices/usb_device_46d_c215_noserial_if0_logicaldev_input
  Unique ID: jxEh.UEz5Udoac1A
  Parent ID: zPk0.moLwSePIflE
  SysFS ID: /devices/pci0000:00/0000:00:04.0/usb4/4-4/4-4:1.0
  SysFS BusID: 4-4:1.0
  Hardware Class: unknown
  Model: "Logitech Extreme 3D"
  Hotplug: USB
  Vendor: usb 0x046d "Logitech, Inc."
  Device: usb 0xc215 "Logitech Extreme 3D"
  Revision: "2.04"
  Driver: "usbhid"
  Driver Modules: "usbhid"
  Device File: /dev/input/event5
  Device Files: /dev/input/event5, /dev/char/13:69, /dev/input/by-id/usb-Logitech_Logitech_Extreme_3D-event-joystick, /dev/input/by-path/pci-0000:00:04.0-usb-0:4:1.0-event-joystick
  Device Number: char 13:69
  Speed: 1.5 Mbps
  Module Alias: "usb:v046DpC215d0204dc00dsc00dp00ic03isc00ip00"
  Driver Info #0:
    Driver Status: usbhid is active
    Driver Activation Cmd: "modprobe usbhid"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #77 (Hub)

fdisk -l
Code:

glenn@GamesBox:~$ sudo fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xbcd2bcd2

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1          12      96358+  83  Linux
/dev/sda2              13      60801  488287642+  5  Extended
/dev/sda5              13        2622    20964793+  83  Linux
/dev/sda6            2623        5232    20964793+  83  Linux
/dev/sda7            5233        6537    10482381  83  Linux
/dev/sda8            6538        7589    8450158+  83  Linux
/dev/sda9            7590        7850    2096451  82  Linux swap / Solaris
/dev/sda10          7851        8502    5237158+  83  Linux
/dev/sda11          8503        9154    5237158+  83  Linux
/dev/sda12          9155        9415    2096451  83  Linux
/dev/sda13          9416      10067    5237158+  83  Linux
/dev/sda14          10068      60801  407520823+  83  Linux

Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xdff1dff1

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1  *          1        2805    22531131    7  HPFS/NTFS
/dev/sdb2            2806      30401  221664870    5  Extended
/dev/sdb5            2806        3080    2208906  82  Linux swap / Solaris
/dev/sdb6            3081        6750    29479243+  b  W95 FAT32
/dev/sdb7            6751      11222    35921308+  83  Linux
/dev/sdb8          11223      20859    77409171  83  Linux
/dev/sdb9          20860      30401    76646083+  83  Linux

Disk /dev/sdd: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x2ecb425f

  Device Boot      Start        End      Blocks  Id  System
/dev/sdd1  *        510      19457  152199810    f  W95 Ext'd (LBA)
/dev/sdd2              1        509    4088511  82  Linux swap / Solaris
/dev/sdd5            510        7344    54902106  83  Linux
/dev/sdd6            7345      11321    31945221    b  W95 FAT32
/dev/sdd7          11322      19457    65352388+  b  W95 FAT32

Partition table entries are not in disk order

Disk /dev/sdc: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x31183118

  Device Boot      Start        End      Blocks  Id  System
/dev/sdc1  *          1        7296    58605088+  83  Linux
/dev/sdc2            7297      14593    58613152+  5  Extended
/dev/sdc5            7297        7760    3727048+  83  Linux
/dev/sdc6            7761      10317    20539071  83  Linux
/dev/sdc7          10318      14593    34346938+  83  Linux

tail
Code:

glenn@GamesBox:~$ sudo tail -f /var/log/messages
Jul 25 17:29:21 GamesBox NET[3915]: /sbin/dhclient-script : updated /etc/resolv.conf
Jul 25 17:29:21 GamesBox dhclient: bound to 192.168.1.103 -- renewal in 3095 seconds.
Jul 25 17:32:07 GamesBox syslog-ng[2063]: Log statistics; processed='destination(d_mailwarn)=42', processed='destination(d_messages)=34029', processed='destination(d_syslog)=34255', processed='src.internal(s_sys#2)=38', stamp='src.internal(s_sys#2)=1280042527', processed='destination(d_mailinfo)=7', processed='destination(d_mailall)=0', processed='center(queued)=0', processed='destination(d_cronerr)=0', processed='center(received)=0', processed='source(s_postfix_chroot)=0', processed='destination(d_auth)=13', processed='destination(d_boot)=7', processed='global(payload_reallocs)=0', processed='global(msg_clones)=0', processed='destination(d_kernwarn)=78', processed='source(s_sys)=34268', processed='destination(d_kerninfo)=739', processed='destination(d_drakxtools)=12', processed='destination(d_consoleall)=34268', processed='destination(d_user)=33082', processed='destination(d_daemonwarn)=1', processed='destination(d_daemoninfo)=209', processed='global(sdata_updates)=0', processed='destination(d_daemonerr)=0', processed='destination(d_cronwarn)=0', processed='destination(d_croninfo)=30', processed='destination(d_mailerr)=0', processed='destination(d_kernerr)=6'
Jul 25 17:37:40 GamesBox sudo:    glenn : TTY=pts/0 ; PWD=/home/glenn ; USER=root ; COMMAND=/usr/sbin/urpmi --noclean --noclean kudzu
Jul 25 17:37:42 GamesBox urpmi: called with: --noclean --noclean kudzu
Jul 25 17:37:50 GamesBox urpmi: transaction on / (remove=0, install=0, upgrade=1)
Jul 25 17:37:51 GamesBox perl: [RPM] harddrake-13.35-1mdv2010.1 installed
Jul 25 17:39:00 GamesBox sudo:    glenn : TTY=pts/0 ; PWD=/home/glenn ; USER=root ; COMMAND=/sbin/fdisk -l
Jul 25 17:39:01 GamesBox CROND[4972]: (root) CMD ([ -d /var/lib/php ] && find /var/lib/php/ -type f -mmin +$(/usr/lib64/php/maxlifetime) -print0 | xargs -r -0 rm)
Jul 25 17:40:00 GamesBox sudo:    glenn : TTY=pts/0 ; PWD=/home/glenn ; USER=root ; COMMAND=/usr/bin/tail -f /var/log/messages
^C

lsusb
Code:

glenn@GamesBox:~$ lsusb
Bus 004 Device 006: ID 043d:007b Lexmark International, Inc. InkJet Color Printer
Bus 004 Device 005: ID 043d:007c Lexmark International, Inc. Lexmark X1110/X1130/X1140/X1150/X1170/X1180/X1185
Bus 004 Device 004: ID 0b05:1715 ASUSTek Computer, Inc. 2045 Bluetooth 2.0 Device with trace filter
Bus 004 Device 003: ID 046d:c215 Logitech, Inc. Extreme 3D Pro
Bus 004 Device 002: ID 043d:007a Lexmark International, Inc. Generic Hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 004: ID 046d:092f Logitech, Inc. QuickCam Express Plus
Bus 003 Device 003: ID 0aec:3260 Neodio Technologies Corp. 7-in-1 Card Reader
Bus 003 Device 002: ID 0582:00e7 Roland Corp.
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
glenn@GamesBox:~$

still no solution, no usb.

Regards Glenn

Zilvermeeuw 07-25-2010 02:55 AM

Can you use the USB ports, if you start VB as root?

GlennsPref 07-25-2010 03:16 AM

vBox starts when run from root, but there is no virtual machine in /root/

The VM's are on a different partition, within /home/glenn/local/vm1

GlennsPref 07-25-2010 03:45 AM

Back from a reboot, to make sure any permission changes took effect.

still no access.

vbox settings lists all the usb devices connected to this system.

That's in the same place I can select usb2.0 support.

But there's no change with the usb icon at the bottom of the window when vbox is up.

It used to work, that was why I wondered if the package had changed.

By the way, I use the .run (amd64) for all Distributions.

I think the rpm packages available from Mandriva only supports the open source edition. From memory, it has no usb support at all.

Thanks for responding, But I'm still stuck.

Regards Glenn

uxrs75 07-25-2010 03:06 PM

I've been running VirtualBox on a couple Arch boxes for a while, but to enable usb support I had to add the following to the fstab:
Code:

none /proc/bus/usb usbfs auto,busgid=101,busmode=0775,devgid=101,devmode=0664 0 0
(Note: busgid should share the same number as the vboxusers entry in /etc/group )

camorri 07-25-2010 04:15 PM

For what its worth, I have a similar line, I had to add it also.

Quote:

none /proc/bus/usb usbfs devgid=43,devmode=664 0 0
43 is my vboxusers.

uxrs75 07-25-2010 04:41 PM

Hmm... Have you tried dropping the busgid and busmode entries into fstab?

GlennsPref 07-25-2010 06:04 PM

Hi, currently I have this usbfs line in /etc/fstab.

Code:

#Get read/write access to usb, load usbfs
none /proc/bus/usb usbfs defaults 0 0

I'll make some adjustments and report back.

Thank you all.

GlennsPref 07-25-2010 07:22 PM

Hi, I changed the line
Code:

none /proc/bus/usb usbfs devgid=501,devmode=664 0 0
and rebooted, But still no usb access.

501 corresponds to my vboxusers gid.

vbox user id is 503

I'm looking for busgid...group bus does not exist on my system

/etc/group
Code:

root:x:0:
bin:x:1:
daemon:x:2:
sys:x:3:
adm:x:4:
tty:x:5:
disk:x:6:
lp:x:7:
mem:x:8:
kmem:x:9:
wheel:x:10:glenn,root
mail:x:12:
news:x:13:
uucp:x:14:
man:x:15:
floppy:x:19:
games:x:20:
tape:x:21:
cdrom:x:22:
utmp:x:24:
shadow:x:25:
chkpwd:x:26:
auth:x:27:
usb:x:43:games,glenn,root
cdwriter:x:80:
audio:x:81:glenn
video:x:82:
dialout:x:83:
users:x:100:
nogroup:x:65534:
messagebus:x:101:
avahi:x:102:
avahi-autoipd:x:103:
polkituser:x:16:
haldaemon:x:17:
rpm:x:18:
xgrp:x:104:
ntools:x:105:
ctools:x:106:
rtkit:x:107:
vcsa:x:69:
htdig:x:108:
slocate:x:109:
glenn:x:500:amarokuser
ntp:x:71:
mysql:x:499:
usbmux:x:498:
vboxusers:x:501:glenn,root
squid:x:497:
clamav:x:496:
apache:x:495:
ftp:x:494:
lpadmin:x:493:
postfix:x:492:
postdrop:x:491:postfix
nobody:x:490:


GlennsPref 07-25-2010 07:34 PM

Here is a snippet from the vbox log, all lines with usb...

Code:

vbox log.
........
00:00:01.399 [/Devices/serial/] (level 2)
00:00:01.399
00:00:01.399 [/Devices/usb-ehci/] (level 2)
00:00:01.399
00:00:01.399 [/Devices/usb-ehci/0/] (level 3)
00:00:01.399  PCIDeviceNo  <integer> = 0x000000000000000b (11)
00:00:01.399  PCIFunctionNo <integer> = 0x0000000000000000 (0)
00:00:01.399  Trusted      <integer> = 0x0000000000000001 (1)
00:00:01.399
00:00:01.399 [/Devices/usb-ehci/0/Config/] (level 4)
00:00:01.399
00:00:01.399 [/Devices/usb-ehci/0/LUN#0/] (level 4)
00:00:01.399  Driver <string>  = "VUSBRootHub" (cb=12)
00:00:01.399
00:00:01.399 [/Devices/usb-ehci/0/LUN#0/Config/] (level 5)
00:00:01.399
00:00:01.399 [/Devices/usb-ehci/0/LUN#999/] (level 4)
00:00:01.399  Driver <string>  = "MainStatus" (cb=11)
00:00:01.399
00:00:01.399 [/Devices/usb-ehci/0/LUN#999/Config/] (level 5)
00:00:01.399  First  <integer> = 0x0000000000000000 (0)
00:00:01.399  Last    <integer> = 0x0000000000000000 (0)
00:00:01.399  papLeds <integer> = 0x00007ff9ac001690 (140710309271184)
00:00:01.399
00:00:01.399 [/Devices/usb-ohci/] (level 2)
00:00:01.399
00:00:01.399 [/Devices/usb-ohci/0/] (level 3)
00:00:01.399  PCIDeviceNo  <integer> = 0x0000000000000006 (6)
00:00:01.399  PCIFunctionNo <integer> = 0x0000000000000000 (0)
00:00:01.399  Trusted      <integer> = 0x0000000000000001 (1)
00:00:01.399
00:00:01.399 [/Devices/usb-ohci/0/Config/] (level 4)
00:00:01.399
00:00:01.399 [/Devices/usb-ohci/0/LUN#0/] (level 4)
00:00:01.399  Driver <string>  = "VUSBRootHub" (cb=12)
00:00:01.399
00:00:01.399 [/Devices/usb-ohci/0/LUN#0/Config/] (level 5)
00:00:01.399
00:00:01.399 [/Devices/usb-ohci/0/LUN#999/] (level 4)
00:00:01.399  Driver <string>  = "MainStatus" (cb=11)
00:00:01.399
00:00:01.399 [/Devices/usb-ohci/0/LUN#999/Config/] (level 5)
00:00:01.399  First  <integer> = 0x0000000000000000 (0)
00:00:01.399  Last    <integer> = 0x0000000000000000 (0)
00:00:01.399  papLeds <integer> = 0x00007ff9ac001688 (140710309271176)
00:00:01.399
.......
00:00:01.399 [/TM/] (level 1)
00:00:01.399  UTCOffset <integer> = 0x0000000000000000 (0)
00:00:01.399
00:00:01.399 [/USB/] (level 1)
00:00:01.399
00:00:01.399 [/USB/USBProxy/] (level 2)
00:00:01.399
00:00:01.399 [/USB/USBProxy/GlobalConfig/] (level 3)
00:00:01.399
........
00:00:22.627 Guest Additions information report: Interface = 0x00010004 osType = 0x00033000
00:00:22.628 Guest Additions information report: Version 3.2.6 r63112 '3.2.6'
00:00:22.651 Guest reported fixed hypervisor window at 0x00000000f6000000 (size = 0xc00000, rc = VINF_SUCCESS)
00:00:26.586 EHCI: Hardware reset
00:00:26.586 EHCI: USB Operational
00:00:26.755 OHCI: Software reset
00:00:26.755 OHCI: USB Reset
00:00:26.816 OHCI: USB Operational
00:00:26.831 Guest Log: VBoxVideo: using HGSMI
00:00:26.902 PCNet#0: Init: ss32=1 GCRDRA=0x057a5420[64] GCTDRA=0x057a5020[64]
00:00:27.913 Audio: set_record_source ars=0 als=0 (not implemented)
00:00:27.915 Audio: set_record_source ars=0 als=0 (not implemented)
00:00:28.007 SharedFolders host service: connected, u32ClientID = 1
00:00:28.376 PCNet#0: Init: ss32=1 GCRDRA=0x057a5420[64] GCTDRA=0x057a5020[64]
00:00:28.867 EHCI: USB Suspended
00:00:28.876 OHCI: USB Suspended
00:00:29.024 Display::handleDisplayResize(): uScreenId = 0, pvVRAM=00007ff980000000 w=1152 h=864 bpp=32 cbLine=0x1200
.........

The last couple of lines, USB Suspended cause me concern.

camorri 07-26-2010 04:44 AM

After some looking around my system, I added my regular usid to the vboxusers group. Not sure if this will help or not, it shouldn't hurt anything. I also have regular users added to the USB group. That shouldn't hurt either.

GlennsPref 07-26-2010 07:27 AM

This worked b4
 
Camorri, please explain what you mean, Because I'm lost....


<edit> I (glenn) as a user I am part of the vboxusers group.
generally that was all I had to do, (make myself part of the "vboxusers" group) if the install went smoothly.

So, I can't understand why this occurs now.

regards Glenn.

p.s. I have a custom kernel, is it possible I have left something out?

I load the vbox modules when required with a script (~/bin/vbox_load.sh), rather that use dkms (dynamic kernel module service) That way it loads when I say, not automagically.

I wonder???

I've had a few beers by now, I should say!

camorri 07-26-2010 08:48 AM

Quote:

<edit> I (glenn) as a user I am part of the vboxusers group.
generally that was all I had to do, (make myself part of the "vboxusers" group) if the install went smoothly.
The only thing I'm suggesting is adding your regular user to the usb group, in addition to the regular user being added to the vboxusers group ( which you already have ).

I'm doing everything on a stock kernel, and DKMS is doing its thing on my system. I have no experience with custom kernels, so I can not help there.

GlennsPref 07-26-2010 03:11 PM

I've also tried adding vboxusers, and myself to the usb group, but I found no difference.

My kernel is not so custom, Just configured and re-built by me with the sources.

ntfs r/w, usb-audio, amd-gart, but no major customisations.

This could be a setting I have set in msec, I'll have to go right through it to check.

Maybe this arvo(afternoon).

Regards Glenn

skola 07-28-2010 08:38 AM

Glenn, here's something that may be worth a try.

You know your usb devices show up under /proc/bus/usb and then under the sub-dirs /001 /002 etc depending on sockets etc. The devices you have plugged in will show up as a file under each of those and this filename will be probably 002, 003 etc - the file showing 001 will be the actual socket.

Set the permissions of the _device_ file to be 'rwx' for group 'vboxusers' and/or 'others'.

I'm happy doing many things at the CLI but the chmod/chown permissions is not one of these so I use that great terminal prog Midnight Commander which has carried on working in its own way without all the hassle that has appeared in recent Linux times like KDE4 and hal/udev or kernel stuff giving us problems like yours and mine (other thread).

M.C. has its own drop-down menu to do all manner of things to files/directories and the chown/chmod bits give a nice visual feedback of the octal - 664/775 - type so you can see what applying 'rwx' for each set will do number-wise.

I said above to change the permissions for the 2 groups beside 'owner' as "and/or" meaning that for my own bizarre experience I found that one distro would need both done whereas another needed the 'others' only.

And that was despite the 'owner' being set as me or the actual login user.

Even having fstab entries to get the /proc/bus/usb coming up _and_ giving it and an entry for usbfs device node permissions, all my usb devices could be used but not in VBox with recent kernels. When I did the permissions change manually on the device entries as above - eureka!!!

Christ knows what actual code that's running in those newer kernels and/or newer hal/udev causing this grief.

GlennsPref 07-28-2010 08:14 PM

Hi, I am familiar...
Quote:

without all the hassle that has appeared in recent Linux times like KDE4 and hal/udev or kernel stuff giving us problems like yours and mine (other thread).
I start vbox by first loading the modules and confirming they are loaded.

~/bin/vbox_load
Code:

#!/bin/zsh
# /home/glenn/bin/vbox_load
echo "load modules for vbox."
sudo modprobe -f vboxdrv
sudo modprobe -f vboxnetadp
sudo modprobe -f vboxnetflt
echo "list vbox modules"
sudo lsmod | grep vbox

This way I don't get messages about dkms, kernel and graphics dependency errors.

I changed the permissions with this,
Code:

#/dev/bus/usb
sudo chown -hR glenn:glenn /dev/bus/usb
sudo chmod -R 775 /dev/bus/usb

but I don't think it completed.

Just checking now...
ls -la /dev/bus/usb/003 & 004...
Code:

glenn@GamesBox:~$ ls -la /dev/bus/usb/003                                    (29-07 11:07)
total 0
drwxr-xr-x 2 root root            60 2010-07-29 10:48 ./
drwxr-xr-x 6 root root          120 2010-07-29 10:48 ../
crw-rw-r-- 1 root vboxusers 189, 256 2010-07-29 10:48 001
glenn@GamesBox:~$ ls -la /dev/bus/usb/004                                    (29-07 11:07)
total 0
drwxr-xr-x 2 root root            60 2010-07-29 10:48 ./
drwxr-xr-x 6 root root          120 2010-07-29 10:48 ../
crw-rw-r-- 1 root vboxusers 189, 384 2010-07-29 10:48 001
glenn@GamesBox:~$                                                            (29-07 11:07)

I try again, being more specific.

Maybe ...vbox_load then the permissions?

Back soon.

And thank you!

Regards Glenn

GlennsPref 07-28-2010 08:23 PM

... double post.

unclejed613 07-30-2010 06:34 AM

quick answer? here it is, you (and i) downloaded the free version of VBox. the free version has USB crippled. i also got the free version of VMware's VMPlayer, and USB works just fine on it...

skola 07-30-2010 06:55 PM

Glenn, no, I said the /proc/bus/usb directories. And then you drill down to the seperate /001 /002 ... dirs where each of those will have a file entry for the device plugged in. It's the file entry for the device you need to chown.

The file 'devices' that's in /proc/bus/usb will list all the usb stuff plugged in and should show which bus entry it's in. For your problem device, look for its name in that file and then see which actual bus it's plugged into - /001 or /002 etc - then go to /001 and there another file named 002 (because the socket for that bus will be 001) will relate to your actual usb device.

Double check that by unplugging all stuff and see that there are only the 001 files in those sub-dirs., Wait and then plug 1 device back into a usb socket. The time stamp of the file that appears will be obviously different from the "socket 001" file.

GlennsPref 07-31-2010 02:24 AM

Thanks, I thought I did that ,

but will do the checks,

I have reinstalled and still it's the same.

Talk soon, Regards Glenn

ps, I have found near no benefits from newer kernels, I might trying the older versions that worked.

I'm not developing, just want to play a game I got with a video card.

GlennsPref 07-31-2010 02:34 AM

I'll get midnight Commander

Midnight commander is broken on my system.

GlennsPref 07-31-2010 03:11 AM

UncleJed613, I don't think so,

but that is kinda what I suspected at first

I thought the license may of changed.

regards Glenn

unclejed613 08-01-2010 12:32 PM

i went back and looked... i guess the PUEL version is supposed to have usb support, the OSE version does not. if you get it figured out, i'm still subscribed to this thread. in the meantime, i'm using VMware. i needed to talk to a TI evaluation module for a project, and couldn't wait around for an answer on VBox... if you get it figured out, great, i think VBox runs faster and smoother than VMware.... but in the meantime, VMware is working for what i need it for.

GlennsPref 08-01-2010 11:57 PM

Thanks for that, Today, I am rebuilding and reinstalling the custom kernel,

When I find a replicable conclusion, I'll post back..

Cheers Glenn

GlennsPref 08-02-2010 04:21 AM

check kernel config, rebuild and install (to be sure, to be sure).

Reinstall nvidia graphics card (NVIDIA-Linux-x86_64-256.35.run)

Installed no problems, so I know the sources are installed correctly(?)

find and remove all except the virtual-machines and HardDisks. (winxpsp2 in this case)
/home/glenn/local/vm1/.VirtualBox/Machines/winxpsp2/winxpsp2...
/home/glenn/local/vm1/.VirtualBox/HardDisks/winxpsp2/...

locate vbox, sudo rm -rf
locate VirtualBox, sudo rm -rf

After that I rebooted, then updatedb, and searched again.

I found some stale links to vbox programs in /usr/bin, sudo rm -rf

Once satisfied I had removed all instances of vbox,
I then reinstalled ver (VirtualBox-3.2.6-63112-Linux_amd64.run)

Once again before starting the virtual machine I was able to select which usb devices I wanted access to,

Namely the Joystick. Logitech, Extreme 3D. Even now, the winxp VM is running, in the Oracle VM window it shows one usb device active, but from the winxp VM they are all greyed out and when moused-over, the message is
Quote:

Indicates the activity of the attached usb devices:
No usb devices attached

The US banned this game after 9/11 because of the realism of tech involved for radar, communications, tactics and weapons systems.

They managed to cripple the game with the agp-2.0 code 8 or 9 odd years ago (win2k).

So, I'm sus, but I don't believe it.

Checking Permissions...

user.
changed primary user of vboxusers (user) to vboxusers, and made glenn a member of the vboxusers.
group.
vboxusers has vboxusers, glenn, root, usb and games as members of the group.

(I had glenn as the primary user of vboxusers (user)) reboot!

Regards Glenn

GlennsPref 08-02-2010 04:59 AM

Still the same.

Copy log, cat and grep usb
Code:

cat /home/glenn/My_system/vbox-logs/winxpsp2-2010-08-02.log | grep usb
00:00:01.262 [/Devices/usb-ehci/] (level 2)
00:00:01.262 [/Devices/usb-ehci/0/] (level 3)
00:00:01.262 [/Devices/usb-ehci/0/Config/] (level 4)
00:00:01.262 [/Devices/usb-ehci/0/LUN#0/] (level 4)
00:00:01.262 [/Devices/usb-ehci/0/LUN#0/Config/] (level 5)
00:00:01.262 [/Devices/usb-ehci/0/LUN#999/] (level 4)
00:00:01.262 [/Devices/usb-ehci/0/LUN#999/Config/] (level 5)
00:00:01.262 [/Devices/usb-ohci/] (level 2)
00:00:01.262 [/Devices/usb-ohci/0/] (level 3)
00:00:01.262 [/Devices/usb-ohci/0/Config/] (level 4)
00:00:01.262 [/Devices/usb-ohci/0/LUN#0/] (level 4)
00:00:01.262 [/Devices/usb-ohci/0/LUN#0/Config/] (level 5)
00:00:01.262 [/Devices/usb-ohci/0/LUN#999/] (level 4)
00:00:01.262 [/Devices/usb-ohci/0/LUN#999/Config/] (level 5)

lsusb
Code:

glenn@GamesBox:~$ lsusb                                (02-08 19:55)
Bus 004 Device 005: ID 043d:007b Lexmark International, Inc. InkJet Color Printer
Bus 004 Device 004: ID 043d:007c Lexmark International, Inc. Lexmark X1110/X1130/X1140/X1150/X1170/X1180/X1185
Bus 004 Device 003: ID 0b05:1715 ASUSTek Computer, Inc. 2045 Bluetooth 2.0 Device with trace filter
Bus 004 Device 002: ID 043d:007a Lexmark International, Inc. Generic Hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 005: ID 046d:c215 Logitech, Inc. Extreme 3D Pro
Bus 002 Device 004: ID 0aec:3260 Neodio Technologies Corp. 7-in-1 Card Reader
Bus 002 Device 003: ID 046d:092f Logitech, Inc. QuickCam Express Plus
Bus 002 Device 002: ID 0582:00e7 Roland Corp.
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

That's all I got so far.

Regards Glenn

GlennsPref 08-02-2010 05:48 AM

lsusb...
Bus 002 Device 006: ID 046d:c215 Logitech, Inc. Extreme 3D Pro

sudo chmod -R 775 /proc/bus/usb/002
sudo chown -hR vboxusers:vboxusers /proc/bus/usb/002

glenn@GamesBox:~$ ls -l /proc/bus/usb (02-08 20:26)
total 0
dr-xr-xr-x 2 root root 0 2010-08-02 20:22 001/
dr-xr-xr-x 2 vboxusers vboxusers 0 2010-08-02 20:22 002/
dr-xr-xr-x 2 root root 0 2010-08-02 20:22 003/
dr-xr-xr-x 2 root root 0 2010-08-02 20:22 004/
-r--r--r-- 1 root root 0 2010-08-02 20:23 devices

glenn@GamesBox:~$ ls -l /proc/bus/usb/002 (02-08 20:39)
total 0
-rwxrwxr-x 1 vboxusers vboxusers 43 2010-08-02 20:22 001*
-rwxrwxr-x 1 vboxusers vboxusers 192 2010-08-02 20:22 002*
-rwxrwxr-x 1 vboxusers vboxusers 251 2010-08-02 20:22 003*
-rwxrwxr-x 1 vboxusers vboxusers 50 2010-08-02 20:22 004*
-rwxrwxr-x 1 vboxusers vboxusers 52 2010-08-02 20:29 006*

glenn@GamesBox:~$ vbox_load (02-08 20:28)
load modules for vbox.
list vbox modules
vboxnetadp 5171 0
vboxnetflt 15181 0
vboxdrv 1791525 2 vboxnetadp,vboxnetflt

It works!:)

My mistake was (not knowing about) permissions for usb, and in particular /proc/bus/usb.

Yes, thanks skola..., I did misunderstand about the permissions for /proc, I was applying to/dev/bus/usb/...lol!

Still this is new to me, but I thank you, all, for your guidance.

Thanks Heaps.

Regards Glenn

catkin 08-02-2010 05:55 AM

Sorry not to be able to help in what must be a frustrating saga (because my versions are too different) but have you tried a) attaching USB devices from the command line (to see any error messages) and b) re-ordering the VirtualBox udev rule? Earlier in the thread a usbfs line in fstab was mentioned and that has obviated any need for a udev rule adjustment in my experience -- but it may be worth trying. More in this LQ thread.

EDIT: was posting while solution was being posted. Glad you found a solution.

unclejed613 08-02-2010 06:08 AM

so what happened after a reboot?

edit: oh, now i see...

not sure that's going to help me, since my USB is managed by HAL, and /etc/fstab hasn't got a usbfs entry as a result...

GlennsPref 08-02-2010 06:25 AM

Well what actually happened was, I tried doing far too much.

When all I needed to do was change the permissions for the joystick @ /proc/bus/usb/002 to vboxusers.

I was already a member of the vboxusers group, and the usbfs line in /etc/fstab made no noticable difference, it may save me some trauma later ;)

The reboots were mainly to be sure the system knew what changes I was trying to make to the permissions,

I'm still learning.

all's well, Now.

Slight changes in these systems (to me, anyway) means never stop researching.

Kinda what I wanted GNU/Linux for really. At least we can make it work, with a little collaboration, lol.

Thank you all again.

See you 'round the posts.

Regards Glenn

GlennsPref 08-03-2010 05:15 AM

Well, I've come across another problem.

Yesterday the address for the usb joystick was /proc/bus/usb/002/005, but today it is /proc/bus/usb/003/005.

Code:

Bus 003 Device 005: ID 046d:c215 Logitech, Inc. Extreme 3D Pro
I'm wondering how I can make these addresses stick?

It's not too hard to reset it anytime I want to run the vbox and flight sim, but there must be a more efficient way.

Any tips?

Thank you Glenn

unclejed613 08-04-2010 06:14 AM

ok, so last night i tried it as root, with no other modifications made. usb works when running vbox as root. after doing some further searching, i am not sure, but the file /etc/udev/rules.d/10-vboxdrv.rules may hold the key to fixing this:
Code:

KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600"
SUBSYSTEM=="usb_device", GROUP="vboxusers", MODE="0664"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="vboxusers", MODE="0664"

anybody got any thoughts on this? like, maybe changing or adding another OWNER line?

catkin 08-04-2010 09:13 AM

Quote:

Originally Posted by unclejed613 (Post 4055371)
anybody got any thoughts on this? like, maybe changing or adding another OWNER line?

Try renaming /etc/udev/rules.d/10-vboxdrv.rules as /etc/udev/rules.d/90-vboxdrv.rules. More detail in the LQ post I linked earlier in this thread.

unclejed613 08-05-2010 06:15 AM

i've tried that, but since there's no conflicting rules elsewhere, it had no effect, neither did changing the mode and owner information in the rules file

GlennsPref 02-22-2011 11:56 PM

SOLVED Summary of operation
 
To summarise and mark this thread as solved this is what i have and did to it.

Quote:

glenn@GamesBox:~$ uname -a (23-02 15:11)
Linux GamesBox.GlennsPref.net 2.6.37-0.rc5.1mdvtmb-GamesBox #2 SMP PREEMPT Wed Dec 22 16:16:48 EST 2010 x86_64 x86_64 x86_64 GNU/Linux
vbox,4.0.0r69151 AMD64 .run shell package

Make $user a member of the vboxusers group

add usbfs entry to /etc/fstab
Code:

none /proc/bus/usb usbfs devgid=43,devmode=664    0 0
Now what I do is anytime I want to run vbox I find the joystick address, it changes from time to time.
Code:

lsusb | grep "3D Pro"                            (23-02 15:49)
Bus 003 Device 003: ID 046d:c215 Logitech, Inc. Extreme 3D Pro

then edit this file and run it.
my script,
Code:

#!/bin/zsh
# /home/glenn/bin/vbox_load
echo "load modules for vbox."
sudo modprobe -f vboxdrv
sudo modprobe -f vboxnetadp
sudo modprobe -f vboxnetflt
echo "list vbox modules"
sudo lsmod | grep vbox
ls -l /proc/bus/usb/003 #edit this line
sudo chown -hR vboxusers:vboxusers /proc/bus/usb/003/003 #edit this line
sudo chmod -R 775 /proc/bus/usb/003/003 #edit this line
ls -l /dev/input/js0
# ID 046d:c215 Logitech, Inc. Extreme 3D Pro

final output...(dates and user rem. for clarity)
Code:

echo "load modules for vbox."
load modules for vbox.
sudo modprobe -f vboxdrv
sudo modprobe -f vboxnetadp
sudo modprobe -f vboxnetflt
echo "list vbox modules" 
list vbox modules
sudo lsmod | grep vbox
vboxnetadp              5147  0
vboxnetflt            18777  0
vboxdrv              1809667  2 vboxnetadp,vboxnetflt
ls -l /proc/bus/usb/003 #edit this line
sudo chown -hR vboxusers:vboxusers /proc/bus
/usb/003/003 #edit this line
sudo chmod -R 775 /proc/bus/usb/003/003 #edit this line
ls -l /dev/input/js0                                   
crw-rw-r--+ 1 root root 13, 0 2011-02-23 09:45 /dev/input/js0

Cheers Glenn


All times are GMT -5. The time now is 06:14 PM.