You can assign a name to your VM, both in what’s displayed by the vagrant output, and also on the Oracle Virtualbox gui.

config.vm.define :puppetmaster-abc do |puppetmaster_config| # this names it for vagrant
puppetmaster_config.vm.hostname = "puppetmaster.codingbee.dyndns.org"
puppetmaster_config.vm.provider "virtualbox" do |v, override|
v.name = "puppetmaster-def" # this names it for oracle gui
end
end

1. Open up git-bash terminal and create a folder that will contain all your personal vagrant files, in my case I have created a top level folder called “vagrant”:

mkdir c:\vagrant\centos

Note: I also create the centos directory in order to keep all my vagrant vms organised.

2. cd into this directory.

3. By default vagrant is designed to automatically download OS images from vagrantcloud. This website is a repository that host hundreds of OS images. The cool thing about this is that it is free to use! On VagrantCloud, search for an image that you are interested in (make sure you pick one that is compatible with your hypervisor, which in my case is virtualbox). In this example, I have searched for centos and will go with the following: