Skip to content

Instantly share code, notes, and snippets.

@kiprasmel
Last active March 8, 2019 11:02
Show Gist options
  • Save kiprasmel/176895a4b193111e038c21fe35477ef4 to your computer and use it in GitHub Desktop.
Save kiprasmel/176895a4b193111e038c21fe35477ef4 to your computer and use it in GitHub Desktop.
VirtualBox USB connection

How to attach your USB to VirtualBox's VM

Reset the USB stick (all data will be LOST)

TL;DR:

# as admin
diskpart
list disk
# check which disk is your USB
select disk=YOUR_USB_DISK_NUMBER
clean
convert mbr
create partition primary
exit

& format the USB.

Make sure that machine's local state is NOT saved (power off instead)!

Credit https://forums.virtualbox.org/viewtopic.php?p=8776

  • Power off the machine (exit & select Power off the machine or Send the shutdown signal instead of Save the machine state

Download VirtualBox's Extension Pack

Change VMs USB settings

Credit http://www.macfreek.nl/memory/Mounting_a_USB_stick_with_VirtualBox @ VERR_PDM_NO_USB_PORTS

  • Change settings from OHCI (1.1) or EHCI (2.0) to xHCI (3.0)
  • Save the settings

Test it out

  • Start the VM
  • VM window > Devices > USB > your_device

If you still have issues - try debugging

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