Skip to content

AnwarYagoub/RHCSA-RHCE-Lab-Environment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Red Hat RHCSA-RHCE 7 Cert Guide (Lab Environment)

About

This project offers environment for all the labs in Red Hat RHCSA/RHCE 7 Cert Guide: Red Hat Enterprise Linux 7 book written by Sander van Vugt.

What is included?

  • server1: CentOS box (Server With GUI).
  • server2: same as Server1
  • cache-server: Debian box used for package caching.
  • labipa: CentOS box with FreeIPA configured.

install dependencies:

  • Virtualbox: cross-platform virtualization application.
  • Vagrant: tool for building complete development environments. With an easy-to-use workflow and focus on automation

Don't worry you don't have to be expert on any of these tools.

1. Install virtualbox :

1.1 Install virtualbox on Ubuntu:

$ wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -

$ sudo sh -c 'echo "deb https://download.virtualbox.org/virtualbox/debian `lsb_release -sc` non-free contrib" > /etc/apt/sources.list.d/virtualbox.org.list'

$ sudo apt-get update

$ sudo apt-get install dkms

$ sudo apt-get install virtualbox-5.2

1.2 Install virtualbox on Oracle Linux/RHEL/CentOS:

$ wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | rpm --import -

$ sudo wget https://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo -O /etc/yum.repos.d/virtualbox.repo

$ sudo yum install VirtualBox-5.2

1.3 Install virtualbox on Fedora:

$ wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | rpm --import -

$ sudo wget https://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo -O /etc/yum.repos.d/virtualbox.repo

$ sudo yum install VirtualBox-5.2

2. Install vagrant :

2.1 Install vagrant on Debian-based Linux Ubuntu/Mint (64-bit):

$ wget https://releases.hashicorp.com/vagrant/2.1.0/vagrant_2.1.0_x86_64.deb

$ sudo dpkg -i vagrant_2.1.0_x86_64.deb

2.2 Install vagrant on Debian-based distributions Ubuntu/Mint (32-bit):

$ wget https://releases.hashicorp.com/vagrant/2.1.0/vagrant_2.1.0_i686.deb

$ sudo dpkg -i vagrant_2.1.0_i686.deb

2.3 Install vagrant on RedHat-based distributions (64-bit):

$ sudo yum -y install https://releases.hashicorp.com/vagrant/2.1.0/vagrant_2.1.0_x86_64.rpm

2.4 Install vagrant on RedHat-based distributions (32-bit):

$ sudo yum -y install https://releases.hashicorp.com/vagrant/2.1.0/vagrant_2.1.0_i686.rpm

Get environment

$ git clone https://github.com/jszigetvari/RHCSA-RHCE-Lab-Environment.git

$ cd RHCSA-RHCE-Lab-Environment

How to start servers?

Navigate to project path where Vagranfile exists.

  • start all servers
$ vagrant up
  • start a specific server
$ vagrant up MACHINE_NAME

replace MACHINE_NAME with any of (server1, server2, cache-server, labipa)

$ vagrant up server1

How to access servers?

Navigate to project path where Vagranfile exists.

  • to get shell access to any of environment servers
$ vagrant ssh MACHINE_NAME

replace MACHINE_NAME with any of (server1, server2, cache-server, labipa)

$ vagrant ssh server1
  • You can also access servers using ip addresses listed below.
ssh root@192.168.4.210

How to stop servers?

Navigate to project path where Vagrantfile exists.

  • stop all servers
$ vagrant halt
  • stop a specific server
$ vagrant halt MACHINE_NAME

replace MACHINE_NAME with any of (server1, server2, cache-server, labipa)

$ vagrant halt server1

IP addresses & credentials

Server IP address username password username password
cache-server 192.168.4.100 vagrant vagrant
server1 192.168.4.210 user password root password
server2 192.168.4.220 user password root password
labipa 192.168.4.200 user password root password

About

Lab environment for RHCSA/RHCE Cert Guide book by Sander van Vugt (not official)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •