Vagrant is an open-source tool for building and managing virtual machine environments in a single workflow. With an easy-to-use workflow and focus on automation. You can,
- Create VMs
- Start, Stop, Restart VMs
- SSH to a VM
- Manage Network and VM Settings
- Destroy VM
You can create all cluster automatically with deploying your code and make sure you have the same libraries and dependencies installed, same processes installed, same operating system and version, and many other details without having to sacrifice the way your local machine is set up, and without connecting to it.
The required tools to setup a proper lab are as below.
- Install Git for Windows
Download URL: https://git-scm.com/download/win
- Install Virtual Box
Version 6.1.2 r135663 works properly in my setup, you can also download the latest version from the link below.
Downlod URL: https://download.virtualbox.org/virtualbox/6.1.2/VirtualBox-6.1.2-135663-Win.exe
Download URL (Latest Version): https://www.virtualbox.org/wiki/Downloads
Install VirtualBox with the default settings.
- Install Vagrant
Version 1.9.2 works properly in my setup, you can also download the latest version from the link below.
Download URL: https://releases.hashicorp.com/vagrant/1.9.2/vagrant_1.9.2.msi
Download URL (Latest Version): https://www.vagrantup.com/downloads.html
Install the Vagrant with default settings and restart your machine.
Vagrant is installed and you will be able to run via command prompt.
VT-X (Intel Virtualization Technology) must be enabled in computer bios settings to be able to create VMs on VirtualBox.