Radu Cotescu's professional blog

g33k w17h pa45510n

VirtualBox USB Support

Recently I became a fan of VirtualBox, the virtualization platform from Sun Microsystems. It’s robust, it has an extremely small memory foot-print comparing it to other similar virtual managers and it has some great features. You can find more about it on its homepage.

Yesterday I have updated VirtualBox from 2.2.4 to 3.1. Unfortunately, the USB support failed to work despite the fact that I did install VirtualBox Guest Additions to my guest machines. The solution to fix it is pretty simple:

  1. add your user to the vboxusers group:

     useradd -G vboxusers yourusername
  2. check the group id (the number that appears in the output):

     grep vboxusers /etc/group
  3. add the following line in /etc/fstab (you need sudo access):

     none /proc/bus/usb usbfs devgid=xxx,devmode=664 0 0

    where xxx stands for the group id

  4. remount all the devices in fstab

     sudo mount -a

    or if this doesn’t work simply reboot your machine.

Afterwards all should work like a charm.