failed to connect usb device

Discussions about using Mac OS X guests (on Apple hardware) in VirtualBox.
Post Reply
vividacorn
Posts: 6
Joined: 10. Jun 2023, 10:20

failed to connect usb device

Post by vividacorn »

Hi guys i have a mac book air 2019 and got this error:

Failed to attach the USB device SINOWEALTH Wired Gaming Mouse [0109] to the virtual machine windows.

Failed to create a proxy device for the USB device. (Error: VERR_SHARING_VIOLATION).

Result Code:

NS_ERROR_FAILURE (0X80004005)

Component:

ConsoleWrap

Interface:

IConsole {6ac83d89-6ee7-4e33-8ae6-b257b2e81be8}

Sorry; i dont have the log as i had to post this from a different computer; any tips maybe security or smth?? thanks
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: failed to connect usb device

Post by mpack »

"SHARING VIOLATION" implies that someone else (the host OS) is already using that USB device. USB devices are not designed for and cannot be shared.

USB Basics and Troubleshooting.
vividacorn
Posts: 6
Joined: 10. Jun 2023, 10:20

Re: failed to connect usb device

Post by vividacorn »

How do i tackle that then?
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: failed to connect usb device

Post by scottgus1 »

I think that in this case, the error is because Apple enforced a new requirement for third party hypervisors like Virtualbox. The devs and Apple are working on it.

The workaround for now is, Virtualbox on Mac hosts must be run via 'sudo' to use USB devices.

I think the command in a terminal window is:

sudo Virtualbox
rmcghee
Posts: 1
Joined: 13. Mar 2024, 23:17

Re: failed to connect usb device

Post by rmcghee »

I had the same problem when upgrading to VirtualBox version 7.x.
Read many posts, tried everything. Never got USB working.
So, I downgraded to VirtualBox 6.1 (with 6.1 extension pack).
USB works again!
klaus
Oracle Corporation
Posts: 1139
Joined: 10. May 2007, 14:57

Re: failed to connect usb device

Post by klaus »

It's not so simple... VirtualBox 7.0 can deal with USB devices nicely (our application's provisioning profile contains the necessary capability), but this stopped working with macOS Ventura. We contacted Apple, created a feedback (almost a year ago) but no response, even with multiple reminders. All we know is that the same code which worked nicely up to macOS Monterey now simply doesn't work when VirtualBox tries to grab a USB device.
Post Reply