Slide 57
Slide 57 text
http://docs.vagrantup.com/v2/virtualbox/configuration.html
57
# Vagranfile
Vagrant.configure("2") do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :forwarded_port, guest: 80, host: 8080
config.vm.network :private_network, ip: "10.5.0.2"
config.vm.synced_folder ".", "/vagrant", :nfs => true
config.vm.provider "virtualbox" do |vb|
vb.name = "phplx" # custom VM name
vb.gui = true # enables GUI, defaults is false
# Vagrant exposes a way to call any command against VBoxManage
# Example: Change the memory of the VM
vb.customize ["modifyvm", :id, "--memory", "512"]
end
end