|
|
|
Other Tips, Tricks and Tutorials |
|
How to Fix VirtualBox USB SupportStep-by-step tutorial with screenshots |
|
| |
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. Go to System -> Administration -> Users and Groups... Click the "Unlock" button... Type your password and click the "Authenticate" button.... Click on the "Manage Groups" button... 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... 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... 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! Yes... it was that simple!
|
|
| Article rating: |
|
Very Good (4.4/5) |
30 vote(s) |
|

|
|
|
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 #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 #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 #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 #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 #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. |
|
|
|