jeff1evesque / iScanner

Backend iOS, and Android logic for facial, and iris recognition
1 stars 0 forks source link

Mount USB directory from host to Vagrant guest #37

Closed jeff1evesque closed 9 years ago

jeff1evesque commented 9 years ago

We need to resolve the issue of being able to mount a USB drive from the host machine, to the guest vagrant virtual machine.

jeff1evesque commented 9 years ago

In order to resolve the issue of accessing USB devices on the guest VM, we need to add the host machine user name to the vboxusers on the host machine:

sudo usermod -a -G vboxusers jeffrey

Then, we need to define the following fields:

usb-filter-details

This can be accomplished via the VirtualBox Settings -> USB -> USB Device Filters, or by defining the properties via the Vagrantfile. However, to attain adequate information, we can implement the VBoxManage list usbhost within terminal:

$ sudo VBoxManage list usbhost
[sudo] password for jeffrey: 
Host USB Devices:

UUID:               xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
VendorId:           0x064e (064E)
ProductId:          0xc107 (C107)
Revision:           2.49 (0249)
Port:               4
USB version/speed:  2/2
Manufacturer:       SuYin
Product:            HP Webcam
SerialNumber:       xxxxx-xxxx-xxxx-xx-R02.43.01
Address:            sysfs:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5//device:/dev/vboxusb/002/003
Current State:      Busy

UUID:               xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
VendorId:           0x0781 (0781)
ProductId:          0x5575 (5575)
Revision:           1.39 (0139)
Port:               0
USB version/speed:  2/2
Manufacturer:       SanDisk
Product:            Cruzer Glide
SerialNumber:       xxxxxxxxxxxxxxxxxxxx
Address:            sysfs:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1//device:/dev/vboxusb/001/011
Current State:      Busy

If the Vagrantfile approach is used, we need to either vagrant halt, followed by vagrant up, or vagrant provision, followed by vagrant reload.

jeff1evesque commented 9 years ago

This issue has been resolved, and properly documented in the Vagrant wiki page.