Prerequisites
- Windows machine :)
- Install vagrant form https://www.vagrantup.com/downloads.html
- Install git with tools (or other ssh.exe client) + add folder to PATH. In powershell just invoke
$env:PATH +=";C:\Program Files (x86)\Git\bin"
- Configure folder for boxes.
It is useful when you want to work in offline mode. The easy way is to create mklink to store files in same place. Start cmd as admin and run (of course change second path to proper one):
mklink /D c:\vagrantfiles d:\downloads\vagrantfiles
- Download Oracle VM VirtualBox from https://www.virtualbox.org/ (or other prefered virtualization product). Vagrant already supports Virtualbox, VMWare and Hyper-V :)
Validate instalation
- Create new folder. Let's call it test-vagrant
- Enter it and type:
vagrant init
- Open Vagrantfile in your favorite notepad and:
- Change the box name
- Add url to the box like:
config.vm.box_url = "file:///c:/vagrantfiles/CentOS-6.4-i386-v20131103.box"
- Run
vagrant up
to create and start the VM - Run
vagrant ssh
to validate if it is working - Run
vagrant destroy
to delete the machine