RHCSA Lab setup using CentOS 7
I will using the CentOS-7-x86_64-Everything.iso for the installs in my VMware vSphere Client 6.0 and ESXi 6.0. Each Server gets 2 Cores, 2GB Ram, 25GB disk, and 1 NIC.
Servers names and IP addresses will be:
ipa.whittenberg.local 192.168.10.39
srv1.whittenberg.local 192.168.10.40
srv2.whittenberg.local 192.168.10.41
My Local LAN router is 192.168.10.1 and i will use this for my gateway out and DNS server.
At the CentOS 7 install I set my Network and Hostname.
Click on Network and Hostname on home screen.
Hostname: rh-ipa.whittenberg.local
Click slider to turn ethernet adapter ON. This gives me an IP from my DHCP server from my local LAN router.
Click the Configure button.
[General]
click on Automatically connect to this network
[IPv4 Settings]
Method: Manual
Addresses, click add button
address: 192.168.10.39
netmask: 24
gateway: 192.168.10.1
DNS server: 192.168.10.1
Click Save button
Click Done button
You should now be able to ping 192.168.10.39 from your workstation on the LAN.
Click on Date & Time from the home screen.
Chose your region and city.
Make sure Network Time slider shows ON.
Click on gears next to slider. Time servers should be green. If red then you are unable to reach them.
Click Done button.
Click on Software Selection from home screen.
Select Minimal Install under Base Environment and nothing under Add-Ons.
Click Done button.
Click on Installation Destination from home screen.
Make sure white check mark on your hard disk.
Select I will configure partitioning.
Click Done button.
Click the + button and setup as follows.
/boot = 512MB
swap = 1024MB
/root = 24.5GB
Click Done button.
Accept Changes.
Now click the Begin Installation button.
Supply root password while the installation is taking place.
When finished click the Reboot button.
Putty/SSH into your server from your workstation.
Disable selinux.
cp /etc/sysconfig/selinux /etc/sysconfig/selinux.bak
sed -i 's/^SELINUX=.*/SELINUX=disabled/g' /etc/sysconfig/selinux
cat /etc/sysconfig/selinux
reboot
Disable and turn off firewalld.
systemctl disable firewalld
systemctl stop firewalld
cat or edit your /etc/hostname file and add the following entree if not there already.
ipa.whittenberg.local
cat or edit your /etc/hosts file and add the following entries if not there already.
192.168.10.39 ipa.whittenberg.local ipa
cat or edit your /etc/resolv.conf file and add the following entries if not there already.
search whittenberg.local
nameserver 192.168.10.1
Install additional packages I need on normal basis.
yum -y install bind-utils traceroute net-tools ntp* gcc glibc glibc-common gd gd-devel make net-snmp openssl-devel xinetd unzip libtool* make patch perl bison flex-devel gcc-c++ ncurses-devel flex libtermcap-devel autoconf* automake* autoconf libxml2-devel cmake sqlite* wget ntp* lm_sensors ncurses-devel qt-devel hmaccalc zlib-devel binutils-devel elfutils-libelf-devel wget bc gzip uuid* libuuid-devel jansson* libxml2* sqlite* openssl* lsof NetworkManager-tui mlocate yum-utils kernel-devel nfs-utils tcpdump git
yum -y groupinstall "Development Tools"
Now update the server.
yum -y update
reboot
**Optional - Install of GNOME Desktop.
yum -y groups install "GNOME Desktop"
yum -y update
systemctl set-default graphical.target
systemctl get-default
reboot and make sure GNOME Desktop starts.
**END Optional - Install of GNOME Desktop.
**Optional - Turn off console screen saver and display all boot messages.
vi /etc/default/grub and on the line starting with GRUB_CMDLINE_LINUX= remove 'rhgb' and 'quiet'. Now add 'consoleblank=0' just before the last " on the line. DO NOT include the ' in the 'consoleblank=0' add.
Now make a new grub.cfg using the line below.
grub2-mkconfig -o /boot/grub2/grub.cfg
If using efi then use this line to make new grub.cfg
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
Now when you boot your server you will see all the boot messages.
**END Optional - Turn off console screen saver and display all boot messages.
NOW REPEAT all the steps above for the other two servers, of course using the correct IP and hostname for each server.
Now its time to setup ipa on the ipa server and we will user srv1 as our first client. TO BE CONTINUED.
No comments:
Post a Comment