Vbox/Virtualbox devices grayed out for non-root user solution

It is a permissions issue that is hard to fix.

All but one USB device is greyed out.

I am already a member of "vboxusers"

  • I have already enabled and disabled USB support for the guest.
  • I have already reinstalled the latest VBOx guest editions
  • If running as root it all works fine
  • Changing ownership and permissions on /dev/vbox* does not help

The solution


user@homebox:~/.VirtualBox/Machines/XP$ cd /dev
user@homebox:/dev$ ls -al|grep -i vbox
crw-------   1 root root       10,  55 2014-10-24 16:43 vboxdrv
crw-------   1 root root       10,  54 2014-10-24 16:43 vboxdrvu
crw-------   1 root root       10,  53 2014-10-24 16:43 vboxnetctl
drwxr-x---   2 root vboxusers       40 2014-10-24 16:43 vboxusb
user@homebox:/dev$ sudo chmod 755 /dev/vbox
vboxdrv     vboxdrvu    vboxnetctl  vboxusb/   
user@homebox:/dev$ sudo chmod 755 /dev/vbox
vboxdrv     vboxdrvu    vboxnetctl  vboxusb/   
user@homebox:/dev$ sudo chmod 755 /dev/vboxusb/


user@homebox:~$ VBoxManage list usbhost
Host USB Devices:

UUID:               dbd3eb2f-8040-4b3b-974d-b7df4c5b4dca
VendorId:           0x045e (045E)
ProductId:          0x0752 (0752)
Revision:           1.16 (0116)
Port:               0
USB version/speed:  1/1
Manufacturer:       Microsoft
Product:            Wired Keyboard 400
Address:            sysfs:/sys/devices/pci0000:00/0000:00:12.1/usb4/4-1//device:/dev/bus/usb/004/002
Current State:      Unavailable

UUID:               51c5189d-7891-45c6-b373-ee15e2252520
VendorId:           0x045e (045E)
ProductId:          0x076c (076C)
Revision:           0.131 (00131)
Port:               1
USB version/speed:  2/1
Manufacturer:       Microsoft
Product:            Microsoft® Comfort Mouse 4500
Address:            sysfs:/sys/devices/pci0000:00/0000:00:12.0/usb3/3-2//device:/dev/bus/usb/003/003
Current State:      Unavailable

UUID:               c141d017-b473-4a2f-bffd-61b19b67d569
VendorId:           0x04a9 (04A9)
ProductId:          0x2220 (2220)
Revision:           1.0 (0100)
Port:               1
USB version/speed:  1/1
Manufacturer:       Canon
Product:            CanoScan
Address:            sysfs:/sys/devices/pci0000:00/0000:00:12.1/usb4/4-2//device:/dev/bus/usb/004/003
Current State:      Available

UUID:               c4c7eecd-188f-415c-929f-2f5834613262
VendorId:           0x054c (054C)
ProductId:          0x0243 (0243)
Revision:           1.0 (0100)
Port:               0
USB version/speed:  2/2
Manufacturer:       Sony
Product:            Storage Media
SerialNumber:       2A08060315464
Address:            sysfs:/sys/devices/pci0000:00/0000:00:13.2/usb2/2-1//device:/dev/bus/usb/002/002
Current State:      Unavailable

UUID:               c22984d9-208b-4900-ab0a-0c6bf53da472
VendorId:           0x058f (058F)
ProductId:          0x6366 (6366)
Revision:           1.0 (0100)
Port:               5
USB version/speed:  2/2
Manufacturer:       Generic
Product:            Mass Storage Device
SerialNumber:       058F0O1111B1
Address:            sysfs:/sys/devices/pci0000:00/0000:00:12.2/usb1/1-6//device:/dev/bus/usb/001/006
Current State:      Unavailable

UUID:               e24dec16-dce2-4856-b250-f511ad84b039
VendorId:           0x05ac (05AC)
ProductId:          0x1227 (1227)
Revision:           0.0 (0000)
Port:               1
USB version/speed:  2/1
Manufacturer:       Apple Inc.
Product:            Apple Mobile Device (DFU Mode)
SerialNumber:       CPID:8920 CPRV:14 CPFM:03 SCEP:01 BDID:00 ECID:000000700A15B58C SRTG:[iBoot-359.3]
Address:            sysfs:/sys/devices/pci0000:00/0000:00:13.0/usb5/5-2//device:/dev/bus/usb/005/002
Current State:      Unavailable

UUID:               04545987-fe87-4565-a0c3-44745e075033
VendorId:           0x0a81 (0A81)
ProductId:          0x0205 (0205)
Revision:           0.16 (0016)
Port:               0
USB version/speed:  1/1
Manufacturer:       CHESEN
Product:            PS2 to USB Converter
Address:            sysfs:/sys/devices/pci0000:00/0000:00:12.0/usb3/3-1//device:/dev/bus/usb/003/002
Current State:      Unavailable

user@homebox:~$ sudo VBoxManage list usbhost
[sudo] password for one:
Host USB Devices:

UUID:               75a9c8a4-0c9c-49b6-ba61-f0b121d5a7be
VendorId:           0x045e (045E)
ProductId:          0x0752 (0752)
Revision:           1.16 (0116)
Port:               0
USB version/speed:  1/1
Manufacturer:       Microsoft
Product:            Wired Keyboard 400
Address:            sysfs:/sys/devices/pci0000:00/0000:00:12.1/usb4/4-1//device:/dev/bus/usb/004/002
Current State:      Busy

UUID:               8894d0a2-1bbe-4588-a362-3e1c9608152b
VendorId:           0x045e (045E)
ProductId:          0x076c (076C)
Revision:           0.131 (00131)
Port:               1
USB version/speed:  2/1
Manufacturer:       Microsoft
Product:            Microsoft® Comfort Mouse 4500
Address:            sysfs:/sys/devices/pci0000:00/0000:00:12.0/usb3/3-2//device:/dev/bus/usb/003/003
Current State:      Busy

UUID:               7ecfd008-b536-4b51-aa72-9623a17e5283
VendorId:           0x04a9 (04A9)
ProductId:          0x2220 (2220)
Revision:           1.0 (0100)
Port:               1
USB version/speed:  1/1
Manufacturer:       Canon
Product:            CanoScan
Address:            sysfs:/sys/devices/pci0000:00/0000:00:12.1/usb4/4-2//device:/dev/bus/usb/004/003
Current State:      Available

UUID:               b53eb210-d787-4fa2-885e-2272b25e6e16
VendorId:           0x054c (054C)
ProductId:          0x0243 (0243)
Revision:           1.0 (0100)
Port:               0
USB version/speed:  2/2
Manufacturer:       Sony
Product:            Storage Media
SerialNumber:       2A08060315464
Address:            sysfs:/sys/devices/pci0000:00/0000:00:13.2/usb2/2-1//device:/dev/bus/usb/002/002
Current State:      Busy

UUID:               8d6fb26d-a5e5-4485-a0ee-80309e60184a
VendorId:           0x058f (058F)
ProductId:          0x6366 (6366)
Revision:           1.0 (0100)
Port:               5
USB version/speed:  2/2
Manufacturer:       Generic
Product:            Mass Storage Device
SerialNumber:       058F0O1111B1
Address:            sysfs:/sys/devices/pci0000:00/0000:00:12.2/usb1/1-6//device:/dev/bus/usb/001/006
Current State:      Busy

UUID:               8e5963c7-099a-4f98-810d-a6643639abce
VendorId:           0x05ac (05AC)
ProductId:          0x1227 (1227)
Revision:           0.0 (0000)
Port:               1
USB version/speed:  2/1
Manufacturer:       Apple Inc.
Product:            Apple Mobile Device (DFU Mode)
SerialNumber:       CPID:8920 CPRV:14 CPFM:03 SCEP:01 BDID:00 ECID:000000700A15B58C SRTG:[iBoot-359.3]
Address:            sysfs:/sys/devices/pci0000:00/0000:00:13.0/usb5/5-2//device:/dev/bus/usb/005/002
Current State:      Available

UUID:               c305c6e1-b8f8-4b4f-a832-f7b8a878e464
VendorId:           0x0a81 (0A81)
ProductId:          0x0205 (0205)
Revision:           0.16 (0016)
Port:               0
USB version/speed:  1/1
Manufacturer:       CHESEN
Product:            PS2 to USB Converter
Address:            sysfs:/sys/devices/pci0000:00/0000:00:12.0/usb3/3-1//device:/dev/bus/usb/003/002
Current State:      Busy

 

The solution

This is not mentioned anywhere except one blog I found where for some reason the udev rules are missing which means it renders being part of the vboxusers group useless.  I believe this issue happened after manually upgrading VBox.

Just do the following

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

Edit it to look like so:

 

KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600"
#these two lines give access permission to vboxusers to properly work with usb nodes, this could be security risk (bnc#664520) !!
SUBSYSTEM=="usb_device", ATTR{devnum}=="?*", ATTR{busnum}=="?*",SYMLINK+="vboxusb/$attr{busnum}/$attr{devnum}", GROUP="vboxusers"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{devnum}=="?*", ATTR{busnum}=="?*",SYMLINK+="vboxusb/$attr{busnum}/$attr{devnum}", GROUP="vboxusers"

 


Tags:

vbox, virtualbox, devices, grayed, user, permissions, usb, greyed, quot, vboxusers, ul, li, enabled, disabled, reinstalled, editions, ownership, dev, href, br, homebox, xp, ls, grep, crw, vboxdrv, vboxdrvu, vboxnetctl, drwxr, vboxusb, sudo, chmod, vboxmanage, usbhost, uuid, dbd, eb, df, dca, vendorid, productid, revision, manufacturer, microsoft, wired, keyboard, sysfs, sys, pci, unavailable, ee, reg, bffd, canon, canoscan, eecd, sony, serialnumber, ab, bf, generic, dec, dce, ac, inc, mobile, dfu, mode, cpid, cprv, cpfm, scep, bdid, ecid, srtg, iboot, fe, chesen, ps, converter, password, bbe, ecfd, aa, fa, fb, abce, blog, udev, renders, manually, upgrading, etc, edit, kernel, nodes, bnc, subsystem, usb_device, attr, devnum, busnum, symlink, env, devtype,

Latest Articles

  • QEMU / KVM How To Manually Create Basic Virtual Machine VM
  • Linux wlan0 check all wireless clients
  • PHP Issues With Decoding Strange Smart Quotes And Non-Standard ASCII Characters
  • /etc/iproute2/rt_tables default settings file in Linux Centos 6,7 and most other NIX's
  • bind named error solutions named[2169]: error (no valid DS) resolving / error (broken trust chain) resolving / : error (no valid RRSIG) resolving 'com/DS/IN':
  • iptables how to log ALL dropped incoming packets
  • How To Edit Linux Based NM Network Manager Connection Settings Without GUI
  • Linux Disable IPV6 Centos / Debian / Mint Howto
  • Linux use growisofs to burn a larger file on a BD-R / Bluray Disc
  • Linux partprobe/partx cannot access last and 4th partition
  • DRBD Errors Caused By Physical Corruption
  • mdadm: add new device failed for /dev/sdb4 as 3: Invalid argument solution
  • Linux named / bind how to dump, view and clear the cache!
  • Centos 6 / 7 / 8 How To Change Default nameservers in /etc/resolv.conf when using DHCP / dhclient
  • Adobe Acrobat Reader for Linux to use and view XFA Fillable Forms
  • Debian Linux Mint Ubuntu iptables save and restore settings automatically onboot and reboot
  • Why SMART is not smart at all and doesn't properly predict disk errors that cause a kernel panic or crash
  • scp: ambiguous target error and solution
  • VirtualBox How To Add iSCSI Storage using VBoxManage
  • iSCSI on Centos 7 Configuration and Setup Guide for Initiator and Target