
Srv.vm.hostname = servers # Set the hostname of the VM Srv.vm.box = servers # Speciy the name of the Vagrant box file to use # Loading in the VM configuration informationĬonfig.vm.define servers do |srv| # Loading in the list of commands that should be run when the VM is provisioned.Ĭommands = YAML.load_file('commands.yaml')Ĭonfig.vm.provision :shell, inline: command # Using the hostmanager vagrant plugin to update the host filesĬ_private_ip = false # Using yaml to load external configuration files Here is my Vagrantfile: # -*- mode: ruby -*. The Vagrantfile tells Vagrant how to configure your virtual machines. Create Vagrant project files Create Vagrantfile Thus we have a project directory name of centos7-docker. The project is for Docker, so I include that in the name. We will be using a CentOS 7.2 Vagrant box, so I include centos7 in the Vagrant project name to differentiate it from a Centos 6 project. You should also use a helpful name for each Vagrant project directory you create. I keep my Vagrant projects in my ~/Development/Vagrant directory. Each Vagrant project should have its own directory. Read more here: vagrant-hostmanagerīefore we get started, determine where you want to keep your Vagrant project files. This plugin will automatically manage the /etc/hosts file on your local mac and in your virtual machines. You should already have installed the vagrant-hostmanager plugin.This plugin will keep the VirtualBox Guest Additions software current as you upgrade your kernel and/or VirtualBox versions. You should already have installed the vagrant-vbguest plugin.


The default configuration of Docker on CentOS 7 limits your Docker virtual machine image to 10GB in size.

If you are using Docker on CentOS 7, you may have run into issues importing the Docker version of the Hortonworks Sandbox for HDP 2.5.
