Can not use USB in Virtualbox

Hello all,

I know this has been asked before in this forum but their solutions didn’t work for me.

I’m using OpenSUSE 12.3 64-bit with KDE 4.10.5 and Virtualbox 4.2.14 OSE.
The guest is Windows 7 32-bit. Guest additions is installed and everything works nicely apart from USB.
Than I installed the extensionpack from here:
http://download.virtualbox.org/virtualbox/4.2.14/Oracle_VM_VirtualBox_Extension_Pack-4.2.14.vbox-extpack

All USB-devices are grayed out.

I’m a member of the vboxusers group.

As root I entered the following commands:

cp -v /usr/lib/udev/60-vboxdrv.rules /etc/udev/rules.d/

nano /etc/udev/rules.d/60-vboxdrv.rules

I uncommented the lines that start with “SUBSYSTEM”

Here’s the content:

KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600"
#these lines below give access permission to vboxusers to properly work with usb nodes, but enabling them could be security risk (bnc#664520) !!
SUBSYSTEM=="usb_device", ACTION=="add", RUN+="VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass} vboxusers"
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN+="VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass} vboxusers"
SUBSYSTEM=="usb_device", ACTION=="remove", RUN+="VBoxCreateUSBNode.sh --remove $major $minor"
SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN+="VBoxCreateUSBNode.sh --remove $major $minor"

In Virtualbox -> setings -> USB I checked “Enable USB controller” and “enable USB 2.0 controller”.

I rebooted. No luck. Any ideas?

Thanks for your help!

I did some more investigation. In the console I entered the following commands:

The output of Virtualbox (console) as normal user:

teuniz@jupiter:/data/jupiter> VBoxManage list extpacks
Extension Packs: 1
Pack no. 0:   Oracle VM VirtualBox Extension Pack
Version:      4.2.14
Revision:     86644
Edition:      
Description:  USB 2.0 Host Controller, VirtualBox RDP, PXE ROM with E1000 support.
VRDE Module:  VBoxVRDP
Usable:       true 
Why unusable: 
teuniz@jupiter:/data/jupiter> VBoxManage list usbhost
Host USB Devices:

UUID:               75af6e5b-761a-412d-b742-920540dc0c9a
VendorId:           0x046d (046D)
ProductId:          0xc05a (C05A)
Revision:           99.0 (9900)
Port:               2
USB version/speed:  2/1
Manufacturer:       Logitech
Product:            USB Optical Mouse
Address:            sysfs:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3//device:/dev/bus/usb/001/004
Current State:      Unavailable

UUID:               a5675873-b00f-4193-a254-c49978c1b3d9
VendorId:           0x046d (046D)
ProductId:          0xc31c (C31C)
Revision:           100.0 (10000)
Port:               3
USB version/speed:  1/1
Manufacturer:       Logitech
Product:            USB Keyboard
Address:            sysfs:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4//device:/dev/bus/usb/001/005
Current State:      Unavailable

UUID:               148cd63a-39f2-4623-bd0a-783e69ec3411
VendorId:           0x04b9 (04B9)
ProductId:          0x0300 (0300)
Revision:           2.0 (0200)
Port:               0
USB version/speed:  1/1
Manufacturer:       SafeNet Inc.
Product:            USB UltraPro
Address:            sysfs:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1//device:/dev/bus/usb/002/003
Current State:      Unavailable

UUID:               f435f9ac-fb04-42fe-a007-acf342ae8a3b
VendorId:           0x0bda (0BDA)
ProductId:          0x0184 (0184)
Revision:           132.19 (13219)
Port:               1
USB version/speed:  2/2
Manufacturer:       Generic
Product:            USB2.0-CRW
SerialNumber:       20100818841300000
Address:            sysfs:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2//device:/dev/bus/usb/001/003
Current State:      Unavailable

The output of Virtualbox (console) as root:

jupiter:/data/jupiter # VBoxManage list usbhost
Host USB Devices:

UUID:               080a2ed0-03d9-4475-9405-6a636fbce9b8
VendorId:           0x046d (046D)
ProductId:          0xc05a (C05A)
Revision:           99.0 (9900)
Port:               2
USB version/speed:  2/1
Manufacturer:       Logitech
Product:            USB Optical Mouse
Address:            sysfs:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3//device:/dev/bus/usb/001/004
Current State:      Busy

UUID:               3f793cf0-4dd4-4383-930a-a0209c368b4a
VendorId:           0x046d (046D)
ProductId:          0xc31c (C31C)
Revision:           100.0 (10000)
Port:               3
USB version/speed:  1/1
Manufacturer:       Logitech
Product:            USB Keyboard
Address:            sysfs:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4//device:/dev/bus/usb/001/005
Current State:      Busy

UUID:               7fde1500-1d1b-4cd1-880e-0b7f9923cffc
VendorId:           0x04b9 (04B9)
ProductId:          0x0300 (0300)
Revision:           2.0 (0200)
Port:               0
USB version/speed:  1/1
Manufacturer:       SafeNet Inc.
Product:            USB UltraPro
Address:            sysfs:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1//device:/dev/bus/usb/002/003
Current State:      Available

UUID:               df61d399-09e7-4d7b-a9ed-fe5f8a7fe14e
VendorId:           0x0bda (0BDA)
ProductId:          0x0184 (0184)
Revision:           132.19 (13219)
Port:               1
USB version/speed:  2/2
Manufacturer:       Generic
Product:            USB2.0-CRW
SerialNumber:       20100818841300000
Address:            sysfs:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2//device:/dev/bus/usb/001/003
Current State:      Busy

From here, it looks like a permission problem because as root the USB-devices are available but not as a normal user.

Any ideas?

Thanks for your help!

I don’t have a definitive answer for you, but the following thread (user discussing vbox with openSUSE 12.2) may still be worth reviewing:
https://forums.opensuse.org/english/get-technical-help-here/applications/478311-virtualbox-usb-greyed-out-opensuse-12-2-a.html

Well, those udev rules cannot work:
udev looks for VBoxCreateUSBNode.sh in /usr/lib/udev/, but the virtualbox package installs it in /usr/lib/…
Seems to be a packaging error.

Create a symlink and it should work:

sudo ln -s /usr/lib/VBoxCreateUSBNode.sh /usr/lib/udev/VBoxCreateUSBNode.sh

Thanks everybody for your replies but unfortunately none of them worked in my case.

I solved the problem for the moment by un-installing virtualbox and I installed the binaries from here:

https://www.virtualbox.org/wiki/Linux_Downloads

So, it must be indeed a package problem.

Who is the maintainer of Index of /repositories/Virtualization so that I can file a bug report?

Best Regards.

There is a link there called “Report bug”.
Username and password is the same as here in the forums…

Sorry that I couldn’t help you more.

I stumbled accross your post and I think that I can help.

I have a windows guest on a mac. Had trouble with usb until I found a very simple solution.

all you need to do is to select a generic filter that will be automatically called “new filter 1” by clicking on the first usb logo (blue one) inside ports> usb in the configuration settings. Selecting that will make all usb devices available. You don’t need to do more then that, really simple. Leave it at that, with nothing more then “new filter 1” and nothing else. It will work.

You have to install the USB package it is only free for personnel use if you use commercially you need to pay a small fee

Not quite.
USB1 should work fine without installing anything additional.