Created
August 26, 2014 16:56
-
-
Save ldong/704286dbfffc6ff2f2ee to your computer and use it in GitHub Desktop.
vagrant file for ubuntu
This file contains hidden or 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 : | |
file_location = '~/VMs/ubuntu/src' | |
Vagrant.configure("2") do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "precise64" | |
config.vm.box_url = 'http://files.vagrantup.com/precise64.box' | |
config.vm.synced_folder file_location, "/home/vagrant/src" | |
config.vm.synced_folder "~", "/vagrant", disabled: true | |
config.vm.network :forwarded_port, guest: 8080, host: 8080 | |
config.vm.network :forwarded_port, guest: 8081, host: 8081 | |
# enable X11 | |
# config.ssh.forward_x11 = true | |
config.vm.provider :virtualbox do |vb| | |
vb.customize [ "modifyvm", :id, "--memory", 2048 ] | |
vb.customize [ "modifyvm", :id, "--natdnshostresolver1", "on" ] | |
vb.customize [ "setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-src", "1"] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment