Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using Ubuntu Maverick and Virtual Box 3+ and I installed Window 7 Ultimate Editon. The problem is that it doesn't detect USB drives on Window 7 but USB peripherals (mouse + keybord) are working.

I followed this instruction, but I can't find the user group vboxusers. How can I continue? I would also like to upgrade to the latest version without any risk (without losing my virtual hard disk drive).

share|improve this question
    
Is the Virtualbox you have installed the one from the software center? –  belacqua Feb 10 '11 at 8:47
1  
For your second question, the one about upgrading, you should probably have a look at this: askubuntu.com/questions/19268/… –  Yi Jiang Feb 10 '11 at 8:47
    
@jgbelacqua Yes, I installed via software center. –  kst Feb 10 '11 at 9:05
    
follow this link, [follow this link - akwal][1] [1]: askubuntu.com/questions/209950/… –  akwal Jan 6 at 13:30
add comment

3 Answers

up vote 37 down vote accepted

USB in different versions of Virtual Box

For use of USB in Virtual Box 3.x you need a PUEL-version. From Virtual Box 4.x USB 1.0 is supported in the OSE version installed from software center. For USB 2.0 we need to install an extension pack free for download from Oracle. This will make our Virtual Box a PUEL-Version (see this question on details on how to install Virtual Box from the Oracle repository).

Become a "vboxuser"

To be able to get access to an attached USB device we need to be in the vboxusers group. This can be done from Users and Groups after having installed the gnome-system-tools Install gnome-system-tools or from the command line by

sudo usermod -aG vboxusers <username> 

We need a reboot or logout/login for group membership to take effect.

Activate USB support in Virtual Box Manager

We need to activate the virtual USB driver in our guest OS. In the USB settings from Virtual Box Manager tick "Enable USB Controller" For enabling the USB 2.0 driver also tick "Enable USB 2.0 (EHCI) Controller".

enter image description here

Select host USB device for access from the guest

To grant access to USB devices we need to select a device to disable in the host and to enable in the guest (this is a precaution to avoid simultaneous access from host and guest). This can be done from the panel Devices menu or by right mouse click in the bottom panel of the Virtual Box Manager on the USB icon:

enter image description here

Tick the device you need in the guest, untick it if you need it in the host. The selected device will immediately be accessible from the guest. A Windows guest may need additional drivers:

enter image description here

Use USB filters for permanent access in the guest

By defining USB filters we can define USB devices that will automatically be presented to the guest when booting the guest OS.

enter image description here

Click on the green + symbol on the right to add a known device.

Note, that some devices may lead to a boot failure of the guest. We can not use these devices for filters.

Read more on USB support in the Virtual Box User Manual.

share|improve this answer
add comment
  • Install gnome-system-tools b/c The old Users and Groups GUI is not available by default on 11.10

sudo apt-get install gnome-system-tools

  • After the installation finished Open user and groups from launcher

  • Select your username click on Manage Groups and select vboxusers and click add.

enter image description here

  • logout/login to be able to use usb in vertualbox.
share|improve this answer
    
I had a host ubuntu and a guest ubuntu. Most importantly do this on host not guest and one also needs Virtualbox extension pack apart from the guest additions (and save yourself an hour and a frustration). –  enthusiasticgeek Apr 11 at 21:11
add comment

The vboxusers will be in the /etc/group file. You edit it with something like nano .

sudo nano /etc/group

Add your user to the vboxusers line, or create one if necessary.

As Takkat has pointed out, to get full USB device support, you'll need to install the full (not the OSE) version of Virtualbox.

The ppa I have for the "official" virtualbox is here:

/etc/apt/sources.list.d/virtualbox-offical-source.list:  
deb http://download.virtualbox.org/virtualbox/debian maverick contrib #VirtualBox Offical Source
share|improve this answer
1  
+1 for ppa. I prefer linking to the download page as the deb link changed quite often recently ;) –  Takkat Feb 10 '11 at 9:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.