Created
March 2, 2017 04:20
-
-
Save ldong/1775f1d1ea05c7a80a54e73e9df90f14 to your computer and use it in GitHub Desktop.
ubuntu/xenial64
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 : | |
file_location = '~/VMs/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 = "ubuntu/xenial64" | |
config.vm.box_url = 'https://atlas.hashicorp.com/ubuntu/boxes/xenial64/versions/20170224.0.0/providers/virtualbox.box' | |
config.vm.synced_folder file_location, "/home/vagrant/src" | |
config.vm.synced_folder "~", "/vagrant", disabled: true | |
config.vm.network :forwarded_port, guest: 8000, host: 9000 | |
config.vm.network :forwarded_port, guest: 8001, host: 9001 | |
config.vm.network :forwarded_port, guest: 8080, host: 9080 | |
config.vm.network :forwarded_port, guest: 8081, host: 9081 | |
config.vm.network :forwarded_port, guest: 8443, host: 9443 | |
config.vm.network :forwarded_port, guest: 8888, host: 9888 | |
# config.vm.network :forwarded_port, guest: 3000, host: 3000 | |
# 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