rubenmromero / vagrant-custom-linux

Customizable Vagrantfile to provision and run CentOS, Debian & Ubuntu VMs based on VirtualBox provider

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vagrant-Custom-Linux

Customizable Vagrantfile to provision and run CentOS, Debian & Ubuntu VMs based on VirtualBox provider.

Prerequisites

Configuration

  1. 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
    
  2. Change to the vagrant folder and install the vagrant-vbguest Vagrant plugin:

    $ cd vagrant
    $ vagrant plugin install vagrant-vbguest
    
  3. Create a copy of config.yml.dist template named config.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
    

Execution Method

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

Troubleshooting

Related Links

About

Customizable Vagrantfile to provision and run CentOS, Debian & Ubuntu VMs based on VirtualBox provider

License:MIT License