]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Allow passthru of Teensy to Virtualbox for programming
authordragon788 <github@deik.me>
Sun, 17 Jan 2016 22:08:47 +0000 (16:08 -0600)
committerdragon788 <github@deik.me>
Sun, 17 Jan 2016 22:08:47 +0000 (16:08 -0600)
Vagrantfile

index a2059cb80dcfaf62068842430518239d06853b78..4544386d0bde117f0f1346f9b07adb02b138d037 100644 (file)
@@ -11,16 +11,16 @@ Vagrant.configure(2) do |config|
   # config.vm.box = "phusion/ubuntu-14.04-amd64"\r
   #\r
   # VMware/Virtualbox 64 bit\r
-  # config.vm.box = "puphpet/centos65-x64"\r
+  #config.vm.box = "puphpet/centos65-x64"\r
   #\r
   # The opensuse boxes don't have dfu-util in their default repositories\r
   #\r
   # The virtualbox version has tools issues\r
   # VMware/Virtualbox 64 bit\r
-  # config.vm.box = "bento/opensuse-13.2-x86_64"\r
+  #config.vm.box = "bento/opensuse-13.2-x86_64"\r
   #\r
   # Virtualbox only\r
-  # config.vm.box = "bento/opensuse-13.2-i386"\r
+  #config.vm.box = "bento/opensuse-13.2-i386"\r
   # config.vm.box = ""\r
   # config.vm.box = ""\r
 \r
@@ -30,7 +30,13 @@ Vagrant.configure(2) do |config|
   config.vm.provider "virtualbox" do |vb|\r
     # Hide the VirtualBox GUI when booting the machine\r
     vb.gui = false\r
-  \r
+    vb.customize ['modifyvm', :id, '--usb', 'on']\r
+    vb.customize ['usbfilter', 'add', '0',\r
+                 '--target', :id,\r
+                 '--name', 'teensy',\r
+                 '--vendorid', '0x16c0',\r
+                 '--productid','0x0478'\r
+                ] \r
     # Customize the amount of memory on the VM:\r
     vb.memory = "512"\r
   end\r
@@ -40,7 +46,7 @@ Vagrant.configure(2) do |config|
   # or cores if desired\r
   config.vm.provider "vmware_workstation" do |vmw|\r
     # Hide the VMware GUI when booting the machine\r
-    vmw.gui = false\r
+    vmw.gui = false \r
  \r
     # Customize the amount of memory on the VM:\r
     vmw.memory = "512"\r