Hands-On Vagrant

Hands-On Vagrant

Khaleel Ahmad, Masroor Ansari
Copyright: © 2018 |Pages: 13
DOI: 10.4018/978-1-5225-2785-5.ch009
OnDemand:
(Individual Chapters)
Available
$37.50
No Current Special Offers
TOTAL SAVINGS: $37.50

Abstract

A vagrant is a freeware tool that facilitates to easily manage and configure multiple virtual machines. The main goal of its creation is to simplify the environment maintenance in a large project with multi technical tasks. It provides the better manageability and maintainability for the developers and prevents needless maintenance and improve the productivity for development using simple functions. Vagrant supports almost all main languages for the development, but it is written in the Ruby language. Vagrant was initially supported by Virtual Box, but the version 1.1 has the full vital support for VMware, KVM and other virtualization environment as well as for the server like Amazon EC2. It supports many programming languages such as C#, Python, PHP and JavaScript to enhance the project efficiency. Recently, version 1.6 may serve as a fully virtualized operating system due to the added support for Docker containers.
Chapter Preview
Top

1. Introduction

In January 2010, Mitchell Hashimoto started it as a personal project and released the first version in March 2010. Engine Yard announced to sponsor the Vagrant project in October 2010. In March 2012, the first stable version “Vagrant 1.0” was released. In November 2012, an organization “HashiCorp” by Mitchell came to give the full attention and improvement in the development of Vagrant. Nowadays Hashi is focusing to develop the e-commerce support and offers professional training support for the Vagrant.

A Vagrant is a freeware application/tool for building and developing a portable environment. Mostly the latest release and newest tools are tested by a test environment. It is, the less time consuming in redeveloping the Operating System. A Vagrant is really tied to VirtualBox to manage and handle the Virtualization. A Vagrant takes actions as the dominant configuration for deploying/handling many reproducible virtual environments with the identical configuration.

It plays the role just like a tool in the Ubuntu Linux environment to set up a wide-ranging virtual improvement environment that is generally quoted to as a VDE. It reduces the amount of time spent needed to rebuild the Operating System as a core configuration for end user deeds. It also allows the easy manageability VDEs by means of identical configuration. Installation of VirtualBox at the same period is important and basic requirements being its central configuration built into the main Vagrant product.

To set up and configure, an online Linux Server is needed with a proper and suitable IP address and a method for connecting it. GoDaddy was recommended Virtual Private Server, at the time of start up for newer users, or a full applicable Server for taking total control. Some different types of SSH client as Google, PuTTY (Windows) or Terminal (Mac) is needed for connecting the Server.

Installation

A Vagrant is easy to download and install on standard distribution of Linux, Windows and Mac OS X. Setup process is not complex.

Configuration

Needs to create a file for the project that describes your machine type, the software that is mandatory for the installation, and an approach to make the machine accessible. Needs to save this file with project code (“Vagrant 1” n.d.).

System Requirements

  • 1.

    Virtual Box

  • 2.

    Vagrant

  • 3.

    Putty for windows and Terminal for MAC OS

VirtualBox

The Virtual Box host should be a 64-bit x86 server-class machine devoted to hosting VMs.

64-bit x86 server-class machines are recommended for Virtual Box to create VMS.A toughened and enhanced windows partition should be run by this machine with a Virtual Box enabled kernel which is able to control the communication between the physical hardware and the virtualized devices seen by the VMs.

Table 1.
VirtualBox is able to use of
System ComponentMinimum RequirementRecommended Requirement
CPUsOne or more 64-bit x86 CPU(s), 1.5GHz2 GHz or faster multicore CPU
Memory2 GB of RAM4 GB of RAM or more
Network100Mbit/sOne or more gigabit NIC(s) for faster P2V and export/import data transfers and VM live migration.
Disk SpaceLocally attached storage (PATA, SATA, SCSI) with 16GB60 GB
Table 2.
Vagrant
System ComponentMinimum RequirementRecommended Requirement
Operating SystemAny Windows OS, Any Linux OS
CPUs750 MHz of CPU1 GHz of CPU or Faster
.Net FrameworkVersion 3.5Version 4
Memory1 GB of RAM2 GB of RAM
Screen Resolution1024 x 768 Pixels1920 x 1200 pixels for LAN and 1280 x 1024 for WAN
connection
Network100 MBOr Faster NIC
Disk Space100 MB
Table 3.
Putty
System ComponentMinimum RequirementRecommended Requirement
Operating SystemAny Windows flavors: Windows XP, Windows Vista, Windows 7, Windows Server 2003, Windows Server 2008, Windows Server 2008R2
CPUs750 MHz of CPU1 GHz of CPU or Faster
.Net FrameworkVersion 3.5Version 4
Memory1 GB of RAM2 GB of RAM
Screen Resolution1024 x 768 Pixels1920 x 1200 pixels for LAN and 1280 x 1024 for WAN
connection
Network100 MBOr Faster NIC
Disk Space100 MB

Complete Chapter List

Search this Book:
Reset