Cannot attach USB device

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
Monge
Posts: 4
Joined: 26. Mar 2023, 17:44

Cannot attach USB device

Post by Monge »

Tried to follow instructions for required info needed to post a new thread. Hope it's complete. Ideas:

Host:
VB: Version 7.0.6 r155176 (Qt5.15.2)
EP: Version 7.0.6 r155176

The version of VirtualBox you are using, what version of the Extension Pack in Virtualbox on the host you have installed (if any), and Guest Additions (in the guest).

Host:
VB: Version 7.0.6 r155176 (Qt5.15.2)
EP: Version 7.0.6 r155176

Guest:
EP: Version 7.0.6 r155176


Host & Guest make and version including 32 or 64 bit, and the amount of memory available to both.
Host:
MacBook Pro
13.2.1 (22D68)
16 Gig RAM

Guest:
Windows 10 Home
Ver 22H2
OS Build 19045.2728
64 bit os, x64
4 Gig RAM



VM log file (as an attachment) See your VirtualBox users guide for how to locate this if using command line or right click the guest in the VirtualBox main manager and select show log. Then choose save.
*Note: Windows as host users with version newer than 4.3.12 need to post the VBoxStartup.log or VBoxHardening.log
Attached


id:
uid=502(JoeBlow) gid=20(staff) groups=20(staff),501(access_bpf),12(everyone),61(localaccounts),80(admin),702(com.apple.sharepoint.group.2),703(com.apple.sharepoint.group.3),33(_appstore),98(_lpadmin),100(_lpoperator),204(_developer),250(_analyticsusers),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh),400(com.apple.access_remote_ae),701(com.apple.sharepoint.group.1)

VBoxManage -version
7.0.6r155176

VBoxManage list extpacks
Extension Packs: 1
Pack no. 0: Oracle VM VirtualBox Extension Pack
Version: 7.0.6
Revision: 155176
Edition:
Description: Oracle Cloud Infrastructure integration, Host Webcam, VirtualBox RDP, PXE ROM, Disk Encryption, NVMe, full VM encryption.
VRDE Module: VBoxVRDP
Crypto Module: VBoxPuelCrypto
Usable: true
Why unusable:


VBoxManage list usbhost
Host USB Devices:

UUID: 318a584c-ef01-454a-8be1-10a14d4e60fe
VendorId: 0x1908 (1908)
ProductId: 0x0226 (0226)
Revision: 1.17 (0117)
Port: 0
USB version/speed: 0/High
Manufacturer: GEMBIRD
Address: p=0x0226;v=0x1908;s=0x000000006a15c079;l=0x14400000
Current State: Held

UUID: a1230959-3d12-4619-bcb9-fe08a86b3647
VendorId: 0x05ac (05AC)
ProductId: 0x8600 (8600)
Revision: 1.1 (0101)
Port: 0
USB version/speed: 0/High
Manufacturer: Apple Inc.
Product: Apple T1 Controller
Address: p=0x8600;v=0x05ac;s=0x000000013697d8cd;l=0x14200000
Current State: Busy


VBoxManage list usbfilters
Global USB Device Filters:

<none>


VBoxManage showvminfo "Your Virtual Machine Name"
Name: Windows 10
Encryption: disabled
Groups: /
Guest OS: Windows 10 (64-bit)
UUID: 751b19fa-32ef-4cca-b811-588cf9611a59
Config file: /Users/JoeBlow/VirtualBox VMs/Windows 10/Windows 10.vbox
Snapshot folder: /Users/JoeBlow/VirtualBox VMs/Windows 10/Snapshots
Log folder: /Users/JoeBlow/VirtualBox VMs/Windows 10/Logs
Hardware UUID: 751b19fa-32ef-4cca-b811-588cf9611a59
Memory size: 4096MB
Page Fusion: disabled
VRAM size: 128MB
CPU exec cap: 100%
HPET: disabled
CPUProfile: host
Chipset: piix3
Firmware: BIOS
Number of CPUs: 4
PAE: disabled
Long Mode: enabled
Triple Fault Reset: disabled
APIC: enabled
X2APIC: disabled
Nested VT-x/AMD-V: disabled
CPUID Portability Level: 0
CPUID overrides: None
Boot menu mode: message and menu
Boot Device 1: Floppy
Boot Device 2: DVD
Boot Device 3: HardDisk
Boot Device 4: Not Assigned
ACPI: enabled
IOAPIC: enabled
BIOS APIC mode: APIC
Time offset: 0ms
BIOS NVRAM File: /Users/JoeBlow/VirtualBox VMs/Windows 10/Windows 10.nvram
RTC: local time
Hardware Virtualization: enabled
Nested Paging: enabled
Large Pages: enabled
VT-x VPID: enabled
VT-x Unrestricted Exec.: enabled
AMD-V Virt. Vmsave/Vmload: enabled
IOMMU: None
Paravirt. Provider: Default
Effective Paravirt. Prov.: HyperV
State: powered off (since 2023-03-26T15:16:14.636000000)
Graphics Controller: VBoxSVGA
Monitor count: 1
3D Acceleration: disabled
2D Video Acceleration: disabled
Teleporter Enabled: disabled
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Tracing Enabled: disabled
Allow Tracing to Access VM: disabled
Tracing Configuration:
Autostart Enabled: disabled
Autostart Delay: 0
Default Frontend:
VM process priority: default
Storage Controllers:
#0: 'SATA', Type: IntelAhci, Instance: 0, Ports: 2 (max 30), Bootable
Port 0, Unit 0: UUID: 36d88e92-bd5c-43af-a337-3f77c06683f6
Location: "/Users/JoeBlow/VirtualBox VMs/Windows 10/Windows 10.vdi"
Port 1, Unit 0: UUID: 0be39324-e460-45e0-ac44-4066f510bf44
Location: "/Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso"
NIC 1: MAC: 08002728A57E, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 1 Settings: MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, receive: 64)
NIC 2: disabled
NIC 3: disabled
NIC 4: disabled
NIC 5: disabled
NIC 6: disabled
NIC 7: disabled
NIC 8: disabled
Pointing Device: USB Tablet
Keyboard Device: PS/2 Keyboard
UART 1: disabled
UART 2: disabled
UART 3: disabled
UART 4: disabled
LPT 1: disabled
LPT 2: disabled
Audio: enabled (Driver: CoreAudio, Controller: HDA, Codec: STAC9221)
Audio playback: enabled
Audio capture: disabled
Clipboard Mode: disabled
Drag and drop Mode: disabled
VRDE: disabled
OHCI USB: disabled
EHCI USB: disabled
xHCI USB: enabled
USB Device Filters:
Index: 0
Active: yes
Name: GEMBIRD [0111]
VendorId: 1908
ProductId: 0226
Revision: 0111
Manufacturer:
Product:
Remote: 0
Serial Number:
Bandwidth groups: <none>
Shared folders:

Name: 'Downloads', Host path: '/Users/JoeBlow/Downloads' (machine mapping), writable, auto-mount

Recording enabled: no
Recording screens: 1
Screen 0:
Enabled: yes
ID: 0
Record video: yes
Record audio: no
Destination: File
File: /Users/JoeBlow/VirtualBox VMs/Windows 10/Windows 10-screen0.webm
Options: vc_enabled=true,ac_enabled=false,ac_profile=med
Video dimensions: 1024x768
Video rate: 512kbps
Video FPS: 25fps
* Guest:
Configured memory balloon: 0MB
Attachments
Windows 10-2023-03-26-11-28-27.log.zip
(39.44 KiB) Downloaded 22 times
VBoxSVC.log.zip
(3.35 KiB) Downloaded 7 times
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Cannot attach USB device

Post by scottgus1 »

Looks like you're trying to use the Gembird device, and part of your filter doesn't match:
VBoxManage list usbhost wrote:Revision: 1.17 (0117)
VBoxManage showvminfo wrote:Revision: 0111
It also looks like you found USB basics and troubleshooting, which is really good, Kudos! Please see post #4, step 3, on what to delete from the VM's USB filter, unless these things are absolutely needed.
Monge
Posts: 4
Joined: 26. Mar 2023, 17:44

Re: Cannot attach USB device

Post by Monge »

I followed post #4, step 3.

I removed the Revision field, and changed the Remote to "Any" (it defaulted to "no",and still got the error:

Failed to attach the USB device GEMBIRD [0111] to the virtual machine Windows 10.
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}
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Cannot attach USB device

Post by mpack »

VERR_SHARING_VIOLATION means what it says: the host is already using the device, and USB devices can't be shared (at USB level). MacOS hosts seem particularly reluctant to give up control of attached devices. Best to only plug in the device after the VM is fully ready.

Also, this topic does not belong in "MacOS Guests" since MacOS seems to be your host, not your guest. Topic moved.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Cannot attach USB device

Post by scottgus1 »

I remember that VERR_SHARING_VIOLATION on a 7.0 Mac host is because 7.0 requires running Virtualbox under "sudo" for the time being, to access host USB devices. The devs are working on it.
Monge
Posts: 4
Joined: 26. Mar 2023, 17:44

Re: Cannot attach USB device

Post by Monge »

ah, thanks for the response.

When I do "sudo virtrualbox", I don't see any of my VMs. My VMs are located: "/users/joeblow/virtualbox vms".

I'm searching for instructions on how to start virtualbox as sudo and see my existing VMs, but if you can point me to the answer I'd much appreciate it. This is a little out of my comfort zone, but I'll keep looking! :)
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Cannot attach USB device

Post by scottgus1 »

"Sudo Virtualbox" is probably using a different user account which does have its own list of VMs. Under sudo you can go to each VM folder through the main Virtualbox window's Machine menu Add command and re-register each VM's .vbox file.
Monge
Posts: 4
Joined: 26. Mar 2023, 17:44

Re: Cannot attach USB device

Post by Monge »

worked like a charm, thank you very much for the quick responses!
Post Reply