Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Connect a USB Device to a VirtualBox VM

Enable the VM’s USB controller, attach a device from the Devices menu, and fix common permission or controller problems.

Table of Contents

To pass a USB device through to a VirtualBox virtual machine, enable the VM’s USB controller, start the guest, and select the device from Devices > USB. While attached to the guest, the device is generally unavailable to the host. Finish any file transfers before switching ownership.

Enable USB and attach the device

  1. Shut down the VM. In VirtualBox Manager, select it and open Settings > USB. Enable the USB controller. Use xHCI for most current guests or the controller supported by your guest OS.
    Instructions for connecting USB to virtual machine Picture 5
    Instructions for connecting USB to virtual machine Picture 6
  2. Start the VM and plug the device into the host. In the VM window, select Devices > USB and choose the device. Confirm it appears in the guest’s file manager or device settings.
    Instructions for connecting USB to virtual machine Picture 8
    Instructions for connecting USB to virtual machine Picture 9
  3. For automatic attachment, add a filter for that specific device in Settings > USB. Choose criteria narrow enough that the VM will not capture unrelated devices.
    Instructions for connecting USB to virtual machine Picture 7

If the USB device does not appear

  • Check that the host recognizes it and that another VM or app is not using it. On Linux hosts, VirtualBox USB access normally requires membership in the vboxusers group. Sign out and back in after a group change.
  • Check whether the guest has a driver for its virtual controller or attached device. Older guest operating systems may need a different controller.
  • If you use an old VirtualBox version or a feature that requires the Extension Pack, use the pack that matches the installed VirtualBox version. These screenshots show the older Extension Pack workflow. Current local USB steps are covered in Oracle’s VirtualBox guide.
Instructions for connecting USB to virtual machine Picture 1
Instructions for connecting USB to virtual machine Picture 2
Instructions for connecting USB to virtual machine Picture 3
Instructions for connecting USB to virtual machine Picture 4

Before returning a USB storage device to the host, eject it inside the guest and deselect it in the VM’s USB menu.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.