NEWS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
Home / News / Linux / Other Tips, Tricks and Tutorials

Other Tips, Tricks and Tutorials


How to Fix VirtualBox USB Support

Step-by-step tutorial with screenshots

By Marius Nestor, Linux Editor

15th of May 2009, 10:19 GMT

Adjust text size:


VirtualBox with USB support enabled
Enlarge picture
It is actually a known fact that there
is an issue with VirtualBox and the attached USB devices that many of us are trying to use in the virtual machine. Here is a real-life example:

I am a 100% Linux user and I have a photo printer that Linux can't recognize. Let's say that I want to print some photos quickly, to give them to someone. I have a Windows installation in a virtual machine just for this reason (sad, I know) and I want to access my printer, which is connected via a USB port. To my surprise, I can see the printer in the USB device list of VirtualBox, but I can't access it (very frustrating). Firing up Firefox and searching on Google for a fix takes too long, because there are many old tutorials that teach you how to modify various files or change permissions, etc. What to do? Well, below is the answer to the endless VirtualBox – USB issue (and it's pretty damn simple too!).

This tutorial was created mostly for my needs, but I am sure that many of you will find it very helpful. Ready?

This is how a default installation of VirtualBox in Ubuntu 9.04 shows the USB devices, and we need to fix it.

Review image


Go to System -> Administration -> Users and Groups...

Review image


Click the "Unlock" button...

Review image


Type your password and click the "Authenticate" button....

Review image


Click on the "Manage Groups" button...

Review image


In the "Groups settings" window that will appear, scroll down until you see the vboxusers entry. Select it and then click on the "Properties" button...

Review image


Another window will appear, called "Group 'vboxusers' Properties. Just check the box in front of your username and click the "OK" button when you're done...

Review image


Close the "Group settings" and "Users Settings" windows and log out. Log in and open up VirtualBox, start your virtual machine and you will see that you can now access the USB devices!

Review image


Yes... it was that simple!

TAGS:

VirtualBox USB | USB VirtualBox | Ubuntu | Linux | VirtualBox
Read by 74,145 user(s) | Add comment | Link to this article TWEET THIS


Article rating:
Very Good (4.4/5) 30 vote(s)    

Subscribe to news | Print article | Send to friend

© Copyright 2001-2009 Softpedia
Contact:

 

 

SEARCH THE NEWS ARCHIVE :




Today's News
| Yesterday's News | News Archive


MORE RELATED ARTICLES:


Ubuntu 9.10 Alpha 1 Released

SystemRescueCd 1.2.0 Has Linux Kernel 2.6.29.3

Transmission 1.61 Plugs CSRF Hole

Sabily 9.04 - Ubuntu for Muslims

Ubuntu One: Free Online Storage

Zenwalk 6.0 Live Edition Released

Softpedia Linux Weekly, Issue 44

Parted Magic 4.1 Brings GParted 0.4.5

User opinions:


Comment #1 by: Hussain on 15 May 2009, 14:55 GMT reply to this comment

Thanks Marius for the tutorial i was looking for the solution since a month.


Comment #2 by: Adz on 15 May 2009, 15:30 GMT reply to this comment

It is really useful. I searched a lot in the net to find a solution for this problem and i was empty handed until now. Thanks


Comment #3 by: nocompiz on 15 May 2009, 15:45 GMT reply to this comment

You need to desactivate Compiz too.
I can't have the mouse with that.


Comment #4 by: thagoat on 15 May 2009, 20:27 GMT reply to this comment

Wow. Don't I feel like a fool. I played with this setting for 3 weeks and deleted my vbox install because of this


Comment #5 by: Bob H. on 16 May 2009, 01:29 GMT reply to this comment

Thanks. I have looked for months.


Comment #6 by: Anonymous on 17 May 2009, 17:23 GMT reply to this comment

so does anyone know if this will help with problems in installing XP with virtualbox? certain... permission....problems?

Comment #6.1 by: Marius Nestor on 18 May 2009, 07:51 GMT

What problems? I am not aware of such "permission" problems, please be more explicit.


Comment #7 by: itnet7 on 18 May 2009, 15:40 GMT reply to this comment

Marius,

I want to thank you so much for posting this. I have told a lot of people to add their user account to the vboxusers group, some of them were able to without more assistance, but some couldn't understand how to do this (I try and help out users at work and play that are "trying" linux so it's no wonder they can't add the group themselves without much assistance). I was thinking of similarly documenting it, prior to finding this. I will point them in your articles direction!

Thanks for taking the time out to post this.

Chris Crisafulli
itnet7


Comment #8 by: Andrew on 21 May 2009, 03:07 GMT reply to this comment

Running VirtualBox 2.2.0 on Debian Lenny. Am already in vboxusers group yet usb devices in virtual machines are grayed out.

Comment #8.1 by: rob on 13 Oct 2009, 22:54 GMT

i have the same problem.
here is the proof
rob@robunto:~$ cat /etc/group | grep rob
adm:x:4:rob
dialout:x:20:rob
cdrom:x:24:rob
plugdev:x:46:rob
lpadmin:x:104:rob
admin:x:115:rob
rob:x:1000:rob
sambashare:x:122:rob
vboxusers:x:123:rob
~~~~~
i am in the vboxusers.
bu still greyed out in vertualbox

Comment #8.2 by: rob on 13 Oct 2009, 23:06 GMT

duh.. had to logout and login


Comment #9 by: mohaned_nj on 22 May 2009, 11:25 GMT reply to this comment

coooooooooooool , it works .......................... at last
but let me inform u that that dosent work only on the last version of VB 2.2.2
thanks alot


Comment #10 by: SkeLLLa on 26 May 2009, 15:09 GMT reply to this comment

It doesn't work...


Comment #11 by: Skiesare on 28 May 2009, 16:59 GMT reply to this comment

This will not work with the version in the Ubuntu repositories, you have to down load the version from http://www.virtualbox.org/wiki/Linux_Downloads

This is because the USB code is not entirely free and open.


Comment #12 by: b.h. on 29 May 2009, 06:39 GMT reply to this comment

Brilliant,
I could not use vb for ages, I know that I had to a member of vboxusers but it had not been ticked off.
How stupid am I?

Thanks


Comment #13 by: dyess002 on 16 Jun 2009, 05:56 GMT reply to this comment

My vb tells me at the top under devices that there are no usb devices. How do I fix this?
Hope you can come up with something.
Thanks


Comment #14 by: s.m on 18 Jun 2009, 16:50 GMT reply to this comment

Thanks so much for the solution.


Comment #15 by: Wow! on 06 Jul 2009, 18:22 GMT reply to this comment

It's amazing to me how many users missed the large type, bold faced instructions when installing VirtualBox. That notice was to make sure all users that were going to use VirtualBox should be made members of the vboxusers group. I've used VirtualBox for almost two years now, and I didn't miss it when I installed the first time. (Maybe it's the default Ubuntu packages that fail to show the instructions. I installed it into Debian from a package file downloaded from the VirtualBox download site. Synaptic popped up an instruction box at the end of the install with instructions to add users to the vboxusers group.


Comment #16 by: Wow! on 06 Jul 2009, 18:35 GMT reply to this comment

Make sure the USB device you want activated in VB is plugged in. Open the VB starting window but don't start a machine. Select the machine you want the USB device attached to. Click the "Settings" button. On the left-hand side, choose "USB." Make sure "Enable USB Controller" is selected. Unless you have an older computer, also make sure that "Enable USB 2.0 (EHCI) Controller" is also selected. On the far right side, there are several buttons that have a picture of a USB plug and a symbol. The second button from the top is a USB plug with a plus sign. It is to add a device filter from a plugged device. Click it. If your desired device is in the list, select it. This adds the device to the list of devices that can be accessed by VB. If it is not in the list, then you have problems with your USB set up working well with VB.

BTW, when VB is "attached" to a USB device, the same device becomes unavailable in your host OS. If this is for an external drive, it is best to register the external drive as a shared folder in VB. This way both the host and the guest can access the external drive at the same time.


Comment #17 by: André on 24 Jul 2009, 15:57 GMT reply to this comment

I don't even have "USB" on the menu to the left, all I have is:

General
Hard Disks
CD/DVD-ROM
Floppy
Audio
Network
Serial Ports
Shared Folders

And I've seen screenshots of the menu and they all have a USB tab, but I don't. What the heck? I don't have that USB icon on the bottom of the VB window that you have in your screenshots either.

Comment #17.1 by: Marius Nestor on 31 Jul 2009, 14:09 GMT

Install the DEB package from www.virtualbox.org not from the Ubuntu repository!


Comment #18 by: Jim on 03 Aug 2009, 08:32 GMT reply to this comment

Dude. This is a life saver !!!


Comment #19 by: Live on 09 Aug 2009, 06:06 GMT reply to this comment

Will try, do you need to reboot?


Comment #20 by: Live on 09 Aug 2009, 06:10 GMT reply to this comment

In my case, you need to LOGOUT of Ubuntu.

This will reset Users and Groups.

Don't need to reboot, remember this when you change users and groups in the future. Thanks for the info.

PS Can you change the design of the website, it's really hard to read and type using small letters.


Comment #21 by: Rory on 12 Aug 2009, 14:15 GMT reply to this comment

You are an ANGEL!!!


Comment #22 by: Franki on 14 Aug 2009, 14:26 GMT reply to this comment

This just confirms my belief that many problems can be solved simply. Thank you!!


Comment #23 by: Rocco on 24 Aug 2009, 15:27 GMT reply to this comment

This is a good tutorial. However, this does not work for everyone. While I am able to connect my usb devices, I am unable to access them with USB 2.0 enabled. When I disable USB 2.0, everything works.


Comment #24 by: Ashura on 28 Aug 2009, 01:27 GMT reply to this comment

Wow really nice. it work . thanks Marius


Comment #25 by: tsai on 29 Aug 2009, 18:34 GMT reply to this comment

I have followed the instructions above fully. I:
installed VB 3.0
added my user to the vboxusers group
enabled usb 2.0
logged out/in (even restarted)
disabled usb 2.0

The attached usb items show up on the usb button, but do not show up in the WinXp VM. Am I missing something else?

Thanks
twitter: @tsairox


Comment #26 by: walterav on 18 Sep 2009, 08:29 GMT reply to this comment

Thanks it still works!

ubuntu 9.04 kernel verion 2.6.28-15 + virtualbox 3.02


Comment #27 by: mzsade on 21 Oct 2009, 11:17 GMT reply to this comment

Thanks, i had given up on, and about to remove, virtualbox when i found your life-saver.


Comment #28 by: Paul on 25 Oct 2009, 11:28 GMT reply to this comment

Thank you very very much for such a simple work around without playing with the console.


Comment #29 by: Ed on 30 Oct 2009, 01:45 GMT reply to this comment

Thanks Marius, this help me a lot


Comment #30 by: Jon on 17 Nov 2009, 19:10 GMT reply to this comment

Thank you. You're great!


Comment #31 by: whit on 19 Nov 2009, 23:24 GMT reply to this comment

wow that was really helpful! I had been researching this answer for almost 2 days! Thanks so much! :)

Share your opinion:

Your Name:
Your Email Address:
(will not be used for commercial purposes)
Solve this to prove you're not a bot: =
Your review/opinion:

 




Windows tabGames tabDrivers tabMac tabLinux tabScripts tabMobile tabHandheld tabGadgets tabNews tab

SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   ENTER NEWS SITE   |   ENGLISH BOARD   |   ROMANIAN FORUM