Step 1) Install Oracle Virtual Box
Download : https://download.virtualbox.org/virtualbox/6.1.16/VirtualBox-6.1.16-140961-Win.exeFollow 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
Step 3) Create a template machine using oracle Virtual Box Manager
Password: osboxes.org
Root Account Password: osboxes.org
- 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
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
No comments:
Post a Comment