USB not working on Ubuntu 12.04 LTS (Precise)

Discussions related to using VirtualBox on Linux hosts.
Post Reply
scj1091
Posts: 4
Joined: 15. May 2012, 23:14

USB not working on Ubuntu 12.04 LTS (Precise)

Post 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.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

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

Post 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
scj1091
Posts: 4
Joined: 15. May 2012, 23:14

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

Post 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.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

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

Post 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
scj1091
Posts: 4
Joined: 15. May 2012, 23:14

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

Post 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:
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

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

Post 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.
scj1091
Posts: 4
Joined: 15. May 2012, 23:14

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

Post 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!
fightling
Posts: 1
Joined: 10. Sep 2012, 14:07

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

Post 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.
dstanley
Posts: 1
Joined: 19. Sep 2012, 09:22

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

Post 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
snowvm
Posts: 2
Joined: 9. Oct 2012, 08:15

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

Post 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
grewe
Posts: 1
Joined: 26. Apr 2010, 09:13
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Windows XP
Location: South Africa
Contact:

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

Post 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.
Post Reply