At this post, I will use Vagrant with VirtualBox but you can also use Vagrant with many other providers.
Then I will walk you through your first Vagrant project, and show the basics of Vagrant environment setup.
Let’s take a look at how to get Vagrant set up in a Windows environment.
Verifying the VAGRANT Installation, by running “vagrant -v” in command windows.
Verifying VirtualBox Installation, because it is a new installation, so there is no virtual machine
The first thing you need to do after installing is to select a box from Vagrant Cloud that you want to build from.
Initialize and Boot Vagrant Box
After you’ve chosen a box, initialize the Vagrant box.
Create a project folder, open command window in project folder
To initialize vagrant box type:
vagrant init puppetlabs/centos-6.6-64-puppet
This will also create a Vagrantfile for you. You can modify the file as needed, but I will keep it simple in this post and I will use the default setting
Boot the box with Vagrant (the first time it will need to download it before booting it):
SSH into the Box
After vagrant box started, SSH into the box (use putty) or use the console to start customizing it. Here’s how to SSH into the box:
Some vagrant command to start/stop the vagrant machine:
Stops the vagrant machine
stops and deletes all traces of vagrant machine
suspend the vagrant machine
To get more help type: