VB 7 - can't connect any USB device

Discussions related to using VirtualBox on Mac OS X hosts.
Darius123
Posts: 45
Joined: 3. Aug 2016, 21:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win 7 Pro, MacOS, Linux*
Location: UK

VB 7 - can't connect any USB device

Post by Darius123 »

First - nice job with getting rid of kext(s) and using native virtualization framework in virtualbox 7 on macOS.

One issue I noticed is that I can't connect any USB devices to guest OS (and tried few). When trying it shows error mesage "Can't attach USB device"

Detailed error info:

Code: Select all

Failed to attach the USB device General USB Flash Disk [0100] to the virtual machine Debian 11.
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}
Is it something known not to work in VB 7?

I run the latest virtualbox 7 on Intel macOS Monterey 12.6 (also the latest in time of writting)

It worked in VB 6
kapitainsky
Posts: 26
Joined: 11. Oct 2022, 12:34

Re: VB 7 - can't connect any USB device

Post by kapitainsky »

the same issue here
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: VB 7 - can't connect any USB device

Post by scottgus1 »

Both posters, please Carefully go through USB basics and troubleshooting. If you finish all the steps 1-7 and cannot get your USB device into the guest OS, carefully post the outputs of the commands in step 8 as text, not screenshots. Zip and post the logs step 8 call for, using the forum's Upload Attachment tab.

kapitainsky, please start a new topic with your results.
Darius123
Posts: 45
Joined: 3. Aug 2016, 21:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win 7 Pro, MacOS, Linux*
Location: UK

Re: VB 7 - can't connect any USB device

Post by Darius123 »

Sorry had so many issues with v7 that now I am back on 6. I will try again after few v 7 iterations. Clearly 7.0 is not ready for prime time yet.
kapitainsky
Posts: 26
Joined: 11. Oct 2022, 12:34

Re: VB 7 - can't connect any USB device

Post by kapitainsky »

scottgus1 wrote:Both posters, please Carefully go through USB basics and troubleshooting. If you finish all the steps 1-7 and cannot get your USB device into the guest OS, carefully post the outputs of the commands in step 8 as text, not screenshots. Zip and post the logs step 8 call for, using the forum's Upload Attachment tab.

kapitainsky, please start a new topic with your results.

Thank you for suggestions. Will do.
kapitainsky
Posts: 26
Joined: 11. Oct 2022, 12:34

Re: VB 7 - can't connect any USB device

Post by kapitainsky »

One thing I also noticed is that I can't create any filter from existing USB devices. When I click '+' I can see list of all of them but none can be selected.
Attachments
Screenshot 2022-10-12 at 08.11.15.png
Screenshot 2022-10-12 at 08.11.15.png (80.05 KiB) Viewed 54266 times
Geofrog
Posts: 11
Joined: 25. Jul 2015, 15:05

Re: VB 7 - can't connect any USB device

Post by Geofrog »

I'm adding my two cents worth that VB 7.0.0-153978 running on a macOS 11.7 host and a WIN 10 guest does not connect my GPSr via USB as it has for years. I uninstalled, reinstalled, went through the guide, checked the security settings in the macOS settings, and nada—just errors. I downgraded to 6.1.40-154048, and I had no problems, just like I did not have problems before. This version is not ready for production with USBs yet.
kapitainsky
Posts: 26
Joined: 11. Oct 2022, 12:34

Re: VB 7 - can't connect any USB device

Post by kapitainsky »

Cool. Good to hear that it is not just my system setup etc. but that issue is experienced by others. At the end I did the same - downgraded to v6. Definitely like v7 but need some features to work:) Hopefully it will be fixed in the next release.
kapitainsky
Posts: 26
Joined: 11. Oct 2022, 12:34

Re: VB 7 - can't connect any USB device

Post by kapitainsky »

also anybody who attempts to use virtualbox on mac for any heavy USB activity please be aware of this:

https://www.virtualbox.org/ticket/18176#comment:25

it is 4 years old ticket still not fixed. Simply even in v6 where USB works if you try anything more demanding - reading/writing a lot of data it will let you down.
Geofrog
Posts: 11
Joined: 25. Jul 2015, 15:05

Re: VB 7 - can't connect any USB device

Post by Geofrog »

This is still a problem for me in VirtualBox 7.0.2 with a Mac Big Sur host and a Windows 10 guest.
kapitainsky
Posts: 26
Joined: 11. Oct 2022, 12:34

Re: VB 7 - can't connect any USB device

Post by kapitainsky »

Geofrog wrote:This is still a problem for me in VirtualBox 7.0.2 with a Mac Big Sur host and a Windows 10 guest.
https://www.virtualbox.org/wiki/Changelog-7.0

there is no word of USB fixes..

but some work has been done as now I can select USB device in port filters - not that it changes anything from practical usability perspective. Still can't connect any USB device. I guess we have to wait for future fixes.
Geofrog
Posts: 11
Joined: 25. Jul 2015, 15:05

Re: VB 7 - can't connect any USB device

Post by Geofrog »

kapitainsky wrote:there is no word of USB fixes..
Yeah, I noticed that. But it was worth a try!
kapitainsky
Posts: 26
Joined: 11. Oct 2022, 12:34

Re: VB 7 - can't connect any USB device

Post by kapitainsky »

Geofrog wrote:
kapitainsky wrote:there is no word of USB fixes..
Yeah, I noticed that. But it was worth a try!
sure:) i did the same
matafaga
Posts: 1
Joined: 2. Nov 2022, 14:58

Re: VB 7 - can't connect any USB device

Post by matafaga »

this problem also occurs in Ventura.
VBox 7.0.2r154219

VERR_SHARING_VIOLATION does not occur if run as root
sudo virtualbox
LGFox
Posts: 3
Joined: 8. Nov 2022, 09:06

Re: VB 7 - can't connect any USB device

Post by LGFox »

matafaga wrote: VERR_SHARING_VIOLATION does not occur if run as root
sudo virtualbox
Wow, thanks! I had the same problem. Using `sudo virtualbox` I managed to get USB connected on MacOS Ventura 13.0 with VB 7.0.2.
1. Start VB using `sudo virtualbox`
2. Go to your guest OS settings->Ports->USB and select `USB 3.0 (xHCI)`
3. Then just start your guest OS and USB devices should work. No need to use USB filters.

I'm not sure how safe it is though. :D
Post Reply