Vagrant: Configuration Virtual Environments
Vagrant: Configuration Virtual Environments
VAGRANT is
computer software that
creates
and
configures virtual development environments. It can be seen as a higherlevel wrapper around virtualization software such as VirtualBox, VMware and
KVM etc. Vagrant is written in Ruby; it is usable in projects written in
other programming languages such as PHP, Python, Java, C# and JavaScript.
As prerequisites just have to install Vagrant software and any virtual software
such as VMware, VMplayer and VirtualBox etc. Vagrant automatically installs
and configures work environment and software on the machine with no or
minimal efforts towards it.
VAGRANT FEATURES:
Easy to configure
Reproducible
Flexible
Cross Platform
respective
environment.
This
eliminates
Single
machine
work
environment.
INSTALLATION:
Installing Vagrant is extremely easy.
UNINSTALLATION:
Removing the Vagrant program will remove the vagrant binary and all
dependencies from machine. After uninstalling the program installer ask to
restart the machine for successful uninstallation.
Removing the user data will remove all boxes, plugins, and any stored state
that may be used by Vagrant. Removing the user data effectively makes
Vagrant think it is once again a fresh install. On every platform, remove
the ~/.vagrant.d directory to delete the user data.
WORKING WITH VAGRANT (Windows) - Running and configuring multiple ID Proxy
instances
Prerequisites: Vagrant software and any of Virtual environments (VirtualBox).Vagrant
runs the virtual machine without a UI so there will not be any GUI for commands to
enter all the commands will execute in CLI.
Vagrant init
Few changes to be made in Vagrantfile listed below and save the file.
Vagrant Up
This will download the latest version of the id proxy image on the
<$update_channel> channel for VirtualBox and instantiate a new VM
named <$instance_name_prefix>
Vagrant Shh
Password.
Once ID proxy instances are up and running, they are associated with
enterprise and configured to Online using LDAP credentials.
Vagrant Destroy
From the same directory where you created the instance(s), run this
command, this will delete all the related VM instances that were
created.
The entire instances will be destroyed in the reverse order at which
they are created.
Fig10: All the Virtual machines will be removed and eventually VirtualBox gets
empty.
PROVIDERS:
Alternate providers can offer different features that make more sense
in your use case. For example, if we're using Vagrant for any real
work, VMware providers
are
recommended
since
they're
well