Skip to content

Instantly share code, notes, and snippets.

@joshenders
Last active December 10, 2015 03:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshenders/4376649 to your computer and use it in GitHub Desktop.
Save joshenders/4376649 to your computer and use it in GitHub Desktop.
How to solve a "used exclusively by host" error in VirtualBox

Yanked, from here: https://forums.virtualbox.org/viewtopic.php?f=2&t=24748

1. First, I used 'VBoxManage list usbhost' to get info on the device

VBoxManage list usbhost

VirtualBox Command Line Management Interface Version 3.0.10
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

Host USB Devices:

...

UUID: c8ed4c9a-79c7-4f19-bedf-ec2297bc116f
VendorId: 0x4647 (4647)
ProductId: 0x1000 (1000)
Revision: 2.1 (0201)
Manufacturer: OHSUNG
Product: URCHID
Address: p=0x1000;v=0x4647;s=0x00000acf4822b145;l=0x04100000
Current State: Unavailable

2. Then, I disconnected the USB device. Next I got the ID of the VM I wanted to use this device on:

VBoxManage list vms

VirtualBox Command Line Management Interface Version 3.0.10
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

"Sun VPN" {b6813458-14f7-4d74-9b38-e2d79dc239bc}
"Update Bare XP Pro SP3" {992ae767-179f-4760-8e23-a9dd711660b8}
"DVD Shrink" {7bbd11c8-6cbd-4355-a5c9-db1105720828}
"Theater and Home Automation" {67fcc3cf-157c-4b97-bbc6-9c76e139191e}

3. And lastly, I added the filter with this command, using the ID of that last VM as the -target (with the VM shutdown, of course):

VBoxManage usbfilter add 0 -target 67fcc3cf-157c-4b97-bbc6-9c76e139191e -name "URC-MX-900" -action hold -active yes -vendorid 0x4647 -productid 0x1000

VirtualBox Command Line Management Interface Version 3.0.10
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment