How to set up USB for Virtualbox?
Tags: ubuntu, drive, usb, virtualbox
Published: 2021-11-25 17:02:31

---
title: How to set up USB for Virtualbox?
published: true
date: 2021-11-23 09:30:00 UTC
tags: Ubuntu,drive,usb,virtualbox
canonical_url: https://stackallflow.com/ubuntu/how-to-set-up-usb-for-virtualbox/
---

<header>
<p><span style="font-size: 1.2em; color: initial;">usb</span><span style="font-size: 1.2em; color: initial;">usb-drive</span><span style="font-size: 1.2em; color: initial;">virtualbox</span><span style="font-size: 1.2em; color: initial;">virtualization</span></p>
</header>

I’m using Ubuntu Maverick and Virtual Box 3+. I have Windows 7 Ultimate. The problem is that it doesn’t detect USB drives in Windows 7, but USB peripherals (mouse + keybord) are working.

I followed [these instructions](https://help.ubuntu.com/community/VirtualBox/USB), 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).

#### Accepted Answer

### 1. Install Extension Pack

also see: [How do I install the VirtualBox version from Oracle to install an Extension Pack?](https://askubuntu.com/questions/41478/how-do-i-install-the-virtualbox-version-from-oracle-to-install-an-extension-pack)

**USB 1.0** is supported in the version installed from the Ubuntu repositories (from VirtualBox > 4.x).

For **USB 2.0** and **USB 3.0** we need to install the free (but closed source) **VirtualBox Extension Pack** (NOT the “platform packages”) [from the VirtualBox download page](http://www.virtualbox.org/wiki/Downloads). If you had installed VirtualBox from the repositories you have to make sure to choose the extension pack for the right version of VirtualBox. You can see the version of your installed VirtualBox in the `help > About VirtualBox` menu. For regular updates and bug fixes, it is recommended to [install the most recent VirtualBox version from the Oracle repository](https://askubuntu.com/questions/41478/how-do-i-install-the-virtualbox-version-from-oracle-to-install-an-extension-pack).

> **All virtual machines need to be powered off before installing the extension.**

### 2. Become a “vboxuser” in Host machine (local machine)

To be able to get access to an attached USB device, the Ubuntu **host** user needs to be in the `vboxusers` group. Add your user to this group by running the following command

```
sudo usermod -aG vboxusers <username> 

```

and **reboot** or logout/login.

### 3. Activate USB support in VirtualBox Manager

Shut down your virtual machine and open USB settings in the VirtualBox Manager. Tick `Enable USB Controller`and `USB 2.0 (EHCI) Controller` or `USB 3.0 (xHCI) Controller`.

> **If these settings are greyed out, you need to shut down the virtual machine**.

[![enter image description here](https://i.stack.imgur.com/oqULl.png)](https://i.stack.imgur.com/oqULl.png)

### 4. 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 VirtualBox Manager on the USB icon:

![enter image description here](https://i.stack.imgur.com/gyf5D.png)

Tick the device you need in the guest, untick it if you need it in the host. If you can’t see your USB device in that list, it means that VirtualBox cannot access your host USB devices. Make sure your user is added to the `vboxusers` group and that you restarted your host.

The selected device will immediately be accessible from the guest. A Windows guest may need additional drivers.

- Windows 7 needs an [additional driver](https://downloadcenter.intel.com/product/65855/Intel-USB-3-0-eXtensible-Host-Controller-Driver) for USB 3.0 support.
- Windows 10 does not accept an NTFS formatted USB pen drive.

![enter image description here](https://i.stack.imgur.com/OgFLu.png)

### [optional] 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](https://i.stack.imgur.com/aPBHN.png)

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 [VirtualBox User Manual](https://www.virtualbox.org/manual/ch03.html#idp19116496).

Also see: [what are the proper values for usb device in virtual box](https://askubuntu.com/questions/682550/what-are-the-proper-values-for-usb-device-in-virtual-box)

The post [How to set up USB for Virtualbox?](https://stackallflow.com/ubuntu/how-to-set-up-usb-for-virtualbox/) appeared first on [Stack All Flow](https://stackallflow.com).