Recognizing SD card in vagrant environment

Does anyone know how to recognize SD card in Linux in Vagarnt?

  • Vagrant 1.7.2
  • Host: Windows7 (and Cygwin)
  • Guest: Ubuntu15.04

I first built the Ubuntu CUI using

vagrant init ubuntu-15.04
vagrant up

      

in Ubuntu env:

sudo apt-get update
sudo apt-get install -y ubuntu-desktop

      

and i changed Vagrantfile adding:

vb.gui = true

      

and changed to recognize SD card as USB device:

vb.customize ['modifyvm', :id, '--usb', 'on']
vb.customize ['usbfilter', 'add', '0',
              '--target', :id,
              '--name', 'Any mass storage',
              '--manufacturer', 'Generic',
              '--product', 'Mass Storage Device']

      

but i cant recognize the SD card and device like / dev / sdb or / dev / sdc is not generated.

$ lsusb
Bus 001 Device 005: ID 1307:0310 Transcend Information, Inc. SD/MicroSD CardReader [hama]
Bus 001 Device 002: ID 04e6:5115 SCM Microsystems, Inc. SCR335 SmartCard Reader
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
$ lsblk
NAME   MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda      8:0    0  40G  0 disk
└─sda1   8:1    0  40G  0 part /

      

sda1 is my hard drive.

By default installing Ubuntu15.04 from the VirtualBox GUI, the SD card can be detected by simply inserting the SD card. So I cannot understand the difference

  • Installing Ubuntu from Vagrant with CUI -> adding a GUI environment
  • Installing Ubuntu from VirtualBox with a GUI

How do I add a modification to use an SD card when installing from a Vagrant CUI?

+3


source to share





All Articles