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

  • ImageMagick Convert PDF Not Authorized
  • ImageMagick Converted PDF to JPEG some files have a black background solution
  • Linux Mint Mate Customize the Lock screen messages and hide username and real name
  • Ubuntu/Gnome/Mint/Centos How To Take a partial screenshot
  • ssh how to verify your host key / avoid MIM attacks
  • Cisco IP Phone CP-8845 8800/8900 Series How To Reset To Factory Settings Instructions
  • ls how to list ONLY directories
  • How to encrypt your SSH private key file id_rsa
  • Linux Mint 18 Disable User Name List from showing on Login Screen
  • Firefox Cannot Hit Enter Key In Address Bar and Location History Not Working
  • Cisco Unified Communications Manager / CUCM IP 8.6,10,12 Install Error Solution
  • Ubuntu Debian Mint Linux SSHD OpenSSH Server Not Starting After Reboot Solution
  • nmap how to scan for all ports and not just the 1000 most common ports
  • Windows 7,8,10 and Server 2008, 2012, 2016, 2019 Read Only Attribute Won't Go Away
  • bind / named how to make a wildcard record and retain defined A records
  • Cisco Unified Communications Manager 12 Install Errors on Proxmox/KVM
  • Local Vs Universally Administered MAC Address NIC Refuses to come up
  • Cisco Unified Communications Manager 12 CUCM 12 - How To Enable Video Calling
  • Windows 7, 8, 10, Windows Server 2008, 2012, 2016, 2019 How To AC97 Audio Drivers and Other Unsigned Drivers
  • Cisco Unified Communications Manager / CUCM IP Telephony Definitions