How to Enable USB in VirtualBox

If your data center depends on VirtualBox and your virtual machines depend on the USB device, you’ve perhaps noticed that USB doesn’t support by default unless you’ve manually enabled it.

In this article, we will explain to you how to enable USB support on Virtualbox. The current version of VirtualBox 6.0 comes with support for USB 3.0, and to take advantage of it, you need to install the latest version of VirtualBox Extension Pack.

This tutorial presumes that you already installed VirtualBox on your Linux and VirtualBox guest additions on your virtual machines. If you haven’t, you can install it using the following articles.

  1. How to Install Latest VirtualBox 6.0 in Linux
  2. How to Install VirtualBox 6 in Debian and Ubuntu
  3. How to Install Oracle VirtualBox 6.0 in OpenSUSE
  4. Install VirtualBox Guest Additions in CentOS, RHEL & Fedora
  5. How to Install VirtualBox Guest Additions in Ubuntu

How to Install the VirtualBox Extension Pack

To install the latest version of Extension Pack, head over to the Virtualbox Downloads page and grab the file for All supported platforms.

1. Once you’ve downloaded, open up VirtualBox –> Click File –> Preferences in the Menu.

VirtualBox Preferences
VirtualBox Preferences

2. Next, click on the Extension tab and then click the + sign.

Virtualbox Extension
Virtualbox Extension

3. Select the downloaded Extension Pack and install it as shown.

Install Virtualbox Extension Pack
Install Virtualbox Extension Pack

4. Scroll through the Virtualbox License and then click I Agree button to install it.

Virtualbox License Agreement
Virtualbox License Agreement

5. Enter your sudo password and allow the installation to finish.

Installing Virtualbox Extension Pack
Installing Virtualbox Extension Pack
Installed Virtualbox Extension Pack
Installed Virtualbox Extension Pack

Enabling USB Access to User

To allow a user to access the USB subsystem, you need to add the user (running VirtualBox) to the vboxusers group using the following command.

$ sudo usermod -aG vboxusers <USERNAME>

Where USERNAME is the name of the user running the VirtualBox.

Add User to vboxusers Group
Add User to vboxusers Group

Once the command runs successfully, logout and log back into the system.

Enabling USB Support in VirtualBox

Start up VirtualBox, right-click on the virtual machine that needs access to a USB device, and click Settings.

VirtualBox VM Settings
VirtualBox VM Settings

In the virtual machine’s Setting tab, click on USB to see the available USB devices. Click on the + sign to add a new device.

Enable USB Support in VM
Enable USB Support in VM

Once USB device added, start up the virtual machine to have access to the data on the USB device. If you want to enable more USB devices, go back into the Settings –> USB and add the devices.

Hey TecMint readers,

Exciting news! Every month, our top blog commenters will have the chance to win fantastic rewards, like free Linux eBooks such as RHCE, RHCSA, LFCS, Learn Linux, and Awk, each worth $20!

Learn more about the contest and stand a chance to win by sharing your thoughts below!

Ravi Saive
I am an experienced GNU/Linux expert and a full-stack software developer with over a decade in the field of Linux and Open Source technologies

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

15 Comments

Leave a Reply
  1. Ravi, I don’t know if this thread is still active, but I’m having trouble communicating with USB ports when using Oracle VirtualBox 7.0.12, running Xilinx ISE 14.7 (integrated software environment) on a Windows 10 host.

    The VM acknowledges the USB port and the host’s Device Manager shows the connection as USB Serial Converter (to the external JTAG programming “pod”), but iMPACT (the Xilinx programming tool) can’t find the USB connection. I’ve been researching this broken link for days and no solution found. Help!

    I’d attach a few screenshots, but the means to do this are not visible.

    DE

    Reply
    • @David,

      Here are some steps you can try to troubleshoot and resolve the problem:

      1. Open VirtualBox and select your virtual machine.
      2. Go to the Settings of the virtual machine.
      3. Navigate to the USB tab.
      4. Ensure that the USB device you want to connect is listed in the USB Device Filters.
      5. If it’s not there, add a filter for your USB device.
      6. In the VM settings, under the USB tab, try switching between different USB controller types (e.g., USB 2.0, USB 3.0) to see if that resolves the issue.
      7. Check the settings in Xilinx ISE regarding USB connections. Ensure it is configured to use the correct USB port.

      Reply
    • @Carlos,

      Make sure you have installed Extension Pack on the host and enabled USB 2.0 in your VM Settings. Also, create a USB filter in your guest VM settings while the device is connected and delete all values except Name, VendorID, and ProductID.

      After that, unplug the device, start your guest VM and make sure to plug your USB device again.

      Reply
  2. I have installed virtual windows XP on host ubuntu 20.04 (Pop OS 20.04), everything goes smoothly, but when I try to add a USB device, the USB tab in my VM shows all the options, but are shadowed and thus unable to select.

    The vboxusers is added, I checked in the terminal with id, but what am I missing?

    Thanks!

    Reply
  3. Finally, You made my day with this wonderful tutorial. I have been searching for hours to enable usb in a virtual box. all the other ways found but not worked. this really helped and thanks for the step by step process with beautiful screenshots.

    Reply
    • Man, your comments helped me what a great

      Thanks

      people who are facing issues with usb drive enabling, just power off and add extension support and then add the usb. Finally, you will get the usb in the virtual machine.

      Reply
  4. Jeez Louise thank you so much. I tried so many different things to get USB working, and nothing helped. Even this article is a bit misleading, as that first command you put in the “Enabling USB Access to User” section is wrong. The command in the screenshot below it worked, though.

    $ sudo gpasswd -a  vboxusers
    
    Reply
  5. I always forget about “Enabling USB Access to User” and end up on your article when the USB isn’t showing up in settings. Thank you!

    Reply
  6. I believe using Linux installed as bare metal. I’m running Linux in a virtual box, but it is running on a Windows 8 machine. My error says ‘vxboxusers does not exist in etc/group. Which it shouldn’t as the group hasn’t been installed yet. I’ll look into creating the group and then adding the user and see what happens.

    Reply
  7. I own a Thinkpad R60 on which I’ve just installed VirtualBox 5.1.38 (with the extension pack) as a Linux Mint 18.1 host and I have installed Windows 2000 Professional w/ service pack 4 as a guest. The guest loads properly. I have a Verbatim 64 Gb USB drive in the USB port. VB is not recognizing the existence of the USB drive when I click on settings and go to the USB section. The Enable USB Controller is checked and the USB 2.0 Controller is selected. What am I doing wrong?

    Reply

Got Something to Say? Join the Discussion...

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.