Connecting a USB device to a macOS virtual machine lets macOS use a physical drive, phone, keyboard, or other peripheral attached to your computer. You’ll need VirtualBox’s USB support, permission for the host computer to access the device, and a compatible macOS guest; the exact steps vary slightly by VirtualBox version and host operating system.
What You’ll Need
- A working macOS virtual machine in VirtualBox and the VirtualBox Manager.
- The USB device and a direct connection to the host computer. A powered hub may help with devices that need more power.
- VirtualBox Extension Pack installed if your VirtualBox release requires it for the USB controller or device speed you need. Match the Extension Pack version to the installed VirtualBox version.
- An account with permission to access USB devices on the host. On Linux, this may require membership in the
vboxusersgroup and a sign-out or restart. - A current backup of important data on storage devices. Attaching a disk to the guest can make it unavailable to the host, and formatting it erases data.
Step-by-Step
- Check that the device works on the host. Connect it while the virtual machine is shut down. Confirm that the host detects it, and close any host app that is actively using it. If it is a storage device, safely eject it from the host before handing it to the guest.
- Check VirtualBox USB support. In VirtualBox Manager, select the macOS VM and open Settings. Look for USB in the settings list. If the USB section is missing or a required controller is unavailable, install the matching Extension Pack using VirtualBox’s Extension Pack manager, then reopen the VM settings. Download add-ons only from the official VirtualBox source.
- Choose a USB controller. In Settings > USB, enable the USB controller. Select the controller type that suits the device: USB 2.0 (EHCI) is broadly compatible, while USB 3.0 (xHCI) is suitable for many newer devices and faster storage. The Extension Pack may be needed for these options, depending on your VirtualBox release. If a device is not detected with one controller, shut down the VM and try another supported option.
- Add a filter for the device (optional). With the device attached to the host, select the add-filter button in the USB settings and choose the device from the list. A filter tells VirtualBox to capture a matching device automatically when the VM starts. Use a filter only for a device you want assigned to this VM; a broad filter can capture more devices than intended.
- Start macOS and attach the device. Start the VM. From its VirtualBox window menu, open Devices > USB and click the listed device. A check mark usually indicates that VirtualBox has attached it to the guest. If a filter is set, VirtualBox may capture the device automatically when the VM starts.
- Check macOS for the device. Open the relevant app or macOS settings. For a disk, check Disk Utility; it may appear there without being mounted in Finder. For a phone or other peripheral, check the app that supports it and respond to any trust or permission prompt. Device support depends on macOS and the device’s drivers or software.
- Release the device safely. Eject storage from macOS before disconnecting it. In the VM window, choose Devices > USB and click the checked device to return it to the host. If the guest does not release it, shut down the VM before unplugging. A USB device is generally controlled by either the host or guest at a time, not both.
Common Mistakes
- Expecting simultaneous access: Once captured by the VM, a USB device is normally unavailable to host applications. Release it from the guest before using it on the host.
- Skipping host permissions: VirtualBox cannot capture a device the host account is not allowed to access. This is a frequent cause of problems on Linux.
- Using a mismatched Extension Pack: A version mismatch can make USB features unavailable or unreliable. Keep the pack aligned with the installed VirtualBox release.
- Leaving a disk mounted on the host: Do not let both host and guest write to the same filesystem. Eject it from the host before guest use, and eject it from macOS before returning it.
- Assuming every USB device is supported: USB capture only passes the connection through. macOS still needs to support the device and its required software.
Tips
- Connect the device directly to the computer for initial testing. Remove adapters or hubs as a troubleshooting step, then add them back one at a time.
- Use a device filter for a regularly used peripheral, but leave filters off for devices you want the host to keep by default.
- Change USB controller settings only while the VM is powered off. Make one change at a time so you can identify what fixed the issue.
- For important files, make a separate backup before attaching a disk or memory card. Never initialize or erase a disk unless you intend to destroy its existing contents.
Troubleshooting
The USB device does not appear in the menu: Reconnect it, check that the host recognizes it, and close host software that may be using it. Confirm the VM’s USB controller is enabled and that the Extension Pack is installed if required. On Linux, check the user’s USB access permissions; after changing group membership, sign out and back in or restart.
The device appears but cannot be selected, or attachment fails: Shut down the VM and try a different controller supported by your VirtualBox setup. Check for a version mismatch between VirtualBox and the Extension Pack, then restart VirtualBox. On a laptop, try a direct port rather than a dock.
macOS does not show the device after capture: Confirm the device is checked under Devices > USB. Check the appropriate macOS utility or app, not only Finder. For a disk, inspect Disk Utility and verify that the format is supported. For another peripheral, check whether it needs a macOS-compatible driver or permission prompt.
The device keeps returning to the host: Review USB filters for conflicts, remove overly broad filters, and attach the device manually from the VM’s Devices > USB menu. Make sure another host app is not repeatedly claiming it.
USB works slowly or disconnects: Try another port and cable, disconnect unnecessary hubs, and select a suitable controller while the VM is off. Some devices are sensitive to power or timing, and VirtualBox passthrough may not behave like a direct physical connection. If a device is essential and remains unreliable, use a supported network or file-sharing method instead, where appropriate.
Frequently Asked Questions
Can I connect a USB device while the macOS VM is running?
Yes. Connect it to the host, then select it in the VM window under Devices > USB. Some controller or filter changes require the VM to be shut down.
Do I need the VirtualBox Extension Pack?
It depends on the VirtualBox release and USB controller features you need. If the controller option is unavailable or VirtualBox requests the pack, install the matching version from the official source.
Can the host and macOS guest use the same USB device at once?
Usually not. USB passthrough assigns the device to one side at a time. Detach it from the guest before using it on the host.
Why is my USB drive missing from Finder?
It may be detected but not mounted. Open macOS Disk Utility and check whether it appears there. Do not erase or initialize it unless you are certain that is what you want.
Can I pass through an iPhone or Android phone?
Often, but detection depends on the phone, cable, macOS version, and required software. Unlock the phone, respond to its trust prompt, and check the relevant macOS app after attaching it.
What if my host is Linux?
Make sure your user has permission to access VirtualBox USB devices. On many Linux installations this involves the vboxusers group; sign out and back in after changing membership, then reconnect the device.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix Error 0x80072f76 0x20016 in Windows
- How to Backup and Restore Drivers in Windows 11
- Fix Windows Couldn’t Complete the Requested Changes
- Move to iOS Stuck? Fixes That Actually Work
- USB Bluetooth Dongle: What It Is and How It Works
- ADB Device Not Found Error on Windows: Fixed