Page 1 of 1

USB not working on Ubuntu 12.04 LTS (Precise)

Posted: 15. May 2012, 23:26
by scj1091
I recently installed Precise (fresh install) 64-bit. I added the Debian/Ubuntu apt repository as suggested on the Linux Downloads page. I installed virtualbox-4.1 which installed v4.1.14-77440. I installed the extension pack as well. But when I run the VirtualBox manager, it gives me an error: Failed to access the USB subsystem. It suggests adding my username to group vboxusers, but that group does not exist. I tried running /etc/init.d/vboxdrv setup, and /etc/udev/rules.d/10-vboxdrv.rules exists, but it made no difference. I tried creating a vboxusers group and adding myself to it, rebooted but still the same error message.

Re: USB not working on Ubuntu 12.04 LTS (Precise)

Posted: 15. May 2012, 23:53
by Perryg
In a host terminal run this:

Code: Select all

sudo usermod -aG vboxusers <your username>
Replace <your username> with the name you use to log in. Type your user password when prompted.


Be sure to log off and back in to finalize the change in permissions

Re: USB not working on Ubuntu 12.04 LTS (Precise)

Posted: 16. May 2012, 00:06
by scj1091
Thanks for the reply Perryg, that's what I did. But the group didn't exist. So on the off chance that permissions were set for that group but it just didn't get created, I ran

Code: Select all

sudo groupadd vboxusers
and then

Code: Select all

sudo usermod -aG vboxusers <my username>
It didn't make any difference.

Re: USB not working on Ubuntu 12.04 LTS (Precise)

Posted: 16. May 2012, 00:17
by Perryg
Does id in a terminal list the vboxusers group for you? Did you remember to log off and back in? Sometimes it takes a reboot.

Also look at the following:

Code: Select all

VBoxManage list extpacks

Re: USB not working on Ubuntu 12.04 LTS (Precise)

Posted: 16. May 2012, 00:25
by scj1091
I did reboot, I'm in the vboxusers group. VBoxManage list extpacks shows

Code: Select all

<username>@<hostname>:~$ VBoxManage list extpacks
Extension Packs: 1
Pack no. 0:   Oracle VM VirtualBox Extension Pack
Version:      4.1.14
Revision:     77440
Description:  USB 2.0 Host Controller, VirtualBox RDP, PXE ROM with E1000 support.
VRDE Module:  VBoxVRDP
Usable:       true 
Why unusable:

Re: USB not working on Ubuntu 12.04 LTS (Precise)

Posted: 16. May 2012, 00:35
by Perryg
What really concerns me is that you say you created the vboxusers group. This should not happen if you installed the official version of VBox from VirtualBox.org.
I know USB works in 12.04 as I use it. All that is required is your user name in the vboxusers group.

What I would do if it were me is uninstall VirtualBox, remove the vboxusers group, make sure that there is no group that says vboxusers and reboot the host.
Now when you install again watch for errors and then check if the vboxusers group gets created. If so add your user name and reboot. (don't forget to add the extpack).

Finally I would download the *.deb package that matches your host and use dpkg or gdebi to install and see if it creates the group. But under no circumstance create the group manually until you exhaust the above suggestions.

Re: USB not working on Ubuntu 12.04 LTS (Precise)

Posted: 16. May 2012, 02:21
by scj1091
Well, I got no error messages when I originally installed, but I purged the apt cache and reinstalled and now it works. Go figure. Thanks for the help!

Re: USB not working on Ubuntu 12.04 LTS (Precise)

Posted: 10. Sep 2012, 14:09
by fightling
Same on my system (Core2/64bit/ubuntu12.04.1). USB is available if I start virtualbox from a shell window. weird. I don't know the reason.

Re: USB not working on Ubuntu 12.04 LTS (Precise)

Posted: 19. Sep 2012, 09:22
by dstanley
I had the same problem. Uninstall Virtualbox-4.2
Re install
Re install extension pack
USB should work. Weird, but it worked for me.

I followed this re-installation method the second time: liberiangeek_DOT_net/2012/09/install-virtualbox-4-2-via-its-repository-in-ubuntu-12-04/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+LiberianGeek+%28Liberian+Geek%29

Re: USB not working on Ubuntu 12.04 LTS (Precise)

Posted: 13. Oct 2012, 05:55
by snowvm
I do not understand, what do you mean, log on and log off.

Perryg on 15. May 2012, 23:53;
In a host terminal run this:

Code: Select all Expand view
sudo usermod -aG vboxusers <your username>


Replace <your username> with the name you use to log in. Type your user password when prompted.


Be sure to log off and back in to finalize the change in permissions

Re: USB not working on Ubuntu 12.04 LTS (Precise)

Posted: 6. Sep 2013, 18:00
by grewe
Great stuff! These guidelines helped me to get my usb devices working on my vbox after I had been battling to do that for a long time.