Instantly share code, notes, and snippets.

Embed
What would you like to do?
Intel Movidius Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
$provision = <<SCRIPT
apt-get update -qq && apt-get install -y vim curl python-software-properties build-essential cmake pkg-config
SCRIPT
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--usb", "on"]
vb.customize ["modifyvm", :id, "--usbxhci", "on"]
vb.customize ["usbfilter", "add", "0",
"--target", :id,
"--name", "Movidius Neural Compute Stick",
"--manufacturer", "Movidius Ltd.",
"--product", "Movidius MA2X5X",
"--vendorid", "0x03e7",
]
vb.customize ["usbfilter", "add", "1",
"--target", :id,
"--name", "5d8ae144-9961-49b0-8f44-18bc1bcdccfd",
"--active", "yes",
"--manufacturer", "Movidius",
"--product", "VSC Loopback Device",
"--vendorid", "0x040e",
]
end
config.vm.provider "virtualbox" do |vb|
# Customize the amount of memory on the VM:
vb.memory = "4096"
end
config.vm.provision "shell", inline: $provision
config.vm.synced_folder "/Users/foobar/go", "go", create: true, owner: "vagrant", group: "vagrant"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment