LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   No usb access with VBox (http://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.


All times are GMT -5. The time now is 12:55 PM.