Connect USB from Virtual Machine using Vagrant and Virtual Box

Sometimes (e.g You are developing an IoT Project), you need to connect you board to Virtual Machine via USB Port. This post will show you steps to connect USB port from Virtual Machine using Vagrant and Virtual Box.

At the first, you have to make sure that the USB device was connected to your computer with command:

The output above shows the USB Device has VendorID is 0x1a86 and ProductId is 0x7523. So we add the lines below to Vagrantfile:

Finally, starting your Virtual Machine:

In your Linux Virtual Machine, type lsusb to check the result.

  • whoah this weblog is great i love reading your posts.

    Keep up the great work! You realize, lots of people are searching round for this info,
    you could aid them greatly.

  • Great info. Lucky me I ran across your blog by chance (stumbleupon).
    I have book-marked it for later!