Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
vagrant-examples/example2/Vagrantfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
22 lines (20 sloc)
600 Bytes
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
# Example 2 | |
# | |
# Single box with VirtualBox provider. | |
# | |
# NOTE: Make sure you have the precise32 base box installed... | |
# vagrant box add precise32 http://files.vagrantup.com/precise32.box | |
# | |
# VirtualBox modifyvm docs: http://www.virtualbox.org/manual/ch08.html#vboxmanage-modifyvm | |
Vagrant.configure("2") do |config| | |
config.vm.box = "precise32" | |
config.vm.hostname = "myprecise.box" | |
config.vm.network :private_network, ip: "192.168.0.42" | |
config.vm.provider :virtualbox do |vb| | |
vb.customize [ | |
"modifyvm", :id, | |
"--cpuexecutioncap", "50", | |
"--memory", "256", | |
] | |
end | |
end |