WhatsApp No: +91 8886740600
LAB SETUP
Setup DevOps Lab on Local Machine with Virtual Box and Vagrant
System requirement
operating System :Windows 7 or Above version
RAM: 8 GB or above
step 1: Download Vagrant software from below link
www.vagrantup.com
1): Install Vagrant
NOTE: System reboot required after Vagrant installation
2) After Reboot , go to Command Prompt and type “vagrant -v” to check the vagrant version and vagrant installed correctly
step 2: Download Virtual BOX from below link
www.virtualbox.org
1): Install Virtual Box
step 3: Configure Vagrant
1) goto COMMAND PROMPT
2) create a Folder "md vagrant_lab"
3) change to Folder "cd vagrant_lab"
4) type "vagrant init" which creates a configuration file "Vagrantfile"
5) check the file - with command "dir" it list all file in the folder vagrant_lab
step:4 create a Centos-7 operating system for LAB practice
1) got to the folder where we created the "vagrantfile" in the previouse step 3 in Graphic mode
EXAMPLE: the full path for the "vagrant_lab" is "C:\Users\sairam\vagrant_lab1" open this path in Graphic mode
2) open the "Vagrantfile" with notepad++ or notepad and copy the below content in to "Vagrantfile"
copy the below Content into vagrant file and save it
NOTE: Change the IP: with unique IPADDRESS according to your network
get the ipaddress information with command "ipconfig /ALL"
node1.vm.network "public_network", ip: "172.16.0.44", bridge: "eth0"
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
config.ssh.insert_key = false
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "512"]
end
config.vm.define "node1" do |node1|
node1.vm.box="bento/centos-7.2"
node1.vm.hostname="node1"
node1.vm.network "public_network", ip: "172.16.0.44", bridge: "eth0"
end
end