Customizable Vagrantfile to provision and run CentOS, Debian & Ubuntu VMs based on VirtualBox provider.
- Vagrant 1.7.4+ => Download Vagrant
- VirtualBox 5.0.2+ => Download VirtualBox
-
Clone this repo into the root folder of your project and add the resulting
vagrant
folder to your project's.gitignore
file:$ git clone https://github.com/rubenmromero/vagrant-custom-linux.git vagrant $ echo '/vagrant/' >>.gitignore $ git commit -m "Update '.gitignore' file" .gitignore
-
Change to the
vagrant
folder and install thevagrant-vbguest
Vagrant plugin:$ cd vagrant $ vagrant plugin install vagrant-vbguest
-
Create a copy of
config.yml.dist
template namedconfig.yml
, edit the new file and set the Vagrant environment configuration replacing the existing<tags>
by the appropriate values:# From the vagrant folder $ cp -p config.yml.dist config.yml $ vi config.yml
Once set up the Vagrant environment configuration in the config.yml
file, simply run the following command from the vagrant
folder:
$ vagrant up
If you need some help with the Vagrant utility, you can get it by executing the following command:
$ vagrant --help