VboxManage list usbhost
VBoxManage controlvm usbattach <uuid>|<address>
VBoxManage controlvm usbdetach <uuid>|<address>
Arguments vendorid
and productid
are provided by command VBoxManage list usbhost
config.vm.provider :virtualbox do |vb|
vb.customize ['modifyvm', :id, '--usb', 'on']
vb.customize ['modifyvm', :id, '--usbehci', 'on']
vb.customize ['usbfilter', 'add', '0', '--target', :id, '--name', 'Sony Ericsson', '--vendorid', '0x08e6', '--productid', '0x3438']
end
lsusb
adb devices