Created
March 22, 2016 21:18
-
-
Save frangipane/52f884fa3249a3824b83 to your computer and use it in GitHub Desktop.
tweaks to Vagrantfile for vagrant box malthejorgensen/caffe-deeplearning
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# Every Vagrant development environment requires a box. You can search for | |
# boxes at https://atlas.hashicorp.com/search. | |
config.vm.box = "malthejorgensen/caffe-deeplearning" | |
config.ssh.insert_key = false | |
# Create a forwarded port mapping which allows access to a specific port | |
# within the machine from a port on the host machine. In the example below, | |
# accessing "localhost:8080" will access port 80 on the guest machine. | |
# config.vm.network "forwarded_port", guest: 8003, host: 8003 | |
config.vm.network "forwarded_port", guest: 8888, host: 8888 # jupyter notebook server | |
# Share an additional folder to the guest VM. The first argument is | |
# the path on the host to the actual folder. The second argument is | |
# the path on the guest to mount the folder. And the optional third | |
# argument is a set of non-required options. | |
config.vm.synced_folder "/home/cathy/repos/caffe-sandbox", "/home/vagrant/sync" | |
config.vm.provider "virtualbox" do |vb| | |
# per https://github.com/mitchellh/vagrant/issues/3860 | |
### Change network card to PCnet-FAST III | |
# for NAT adapter | |
vb.customize ["modifyvm", :id, "--nictype1", "Am79C973"] | |
# for host-only adapter | |
vb.customize ["modifyvm", :id, "--nictype2", "Am79C973"] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment