Search This Blog

Tuesday 19 January 2021

Centos Installation guide using Virtual box on windows machine


Step 1) Install Oracle Virtual Box

Download : https://download.virtualbox.org/virtualbox/6.1.16/VirtualBox-6.1.16-140961-Win.exe

Follow the steps to Install Oracle Virtual box on your windows machine:







Step 2) Download CentOS Image using the following link and exact it to a folder on your windows machine
















Login to the machine using the following credentials:

Username: osboxes
Password: osboxes.org
Root Account Password: osboxes.org





Add the Google Public DNS IP addresses (IPv4) are as follows:
  • 8.8.8.8
  • 8.8.4.4

Login as a root and add the following entries inside the file ifcfg-enp0s3 and reboot the machine using init 6 command

vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
ONBOOT=yes
DNS1=8.8.8.8
DNS2=8.8.4.4


Get the ipaddress of the machine and connect using putty

Follow the document on how to download and install putty



Shutdown the machine using sudo init 0 command 







Step 4 ) Clone the multiple virtual machines using existing NewTemplate we have created.



















Start all 3 machines


Connect to all 3 machines and ping one machine from other and make sure they are able to connect.






Change the host name of each machine

Login as a root and Change the host name of each machine and then reboot them

Files should look like as below after making the config changes

MASTER MACHINE

[osboxes@master ~]$ cat /etc/hostname

master

[osboxes@master ~]$ cat /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 master

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6 master

192.168.1.120 master

MACHINE1

[osboxes@machine1 ~]$ cat /etc/hostname

machine1

[osboxes@machine1 ~]$ cat /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 machine1

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6 machine1

192.168.1.196 machine1

MACHINE2

[osboxes@machine2 ~]$ cat /etc/hostname

machine2

[osboxes@machine2 ~]$ cat /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 machine2

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6 machine2

192.168.1.197 machine2



Note: Execute the following command when you see difference in system time 

systemctl enable --now cockpit.socket

No comments: