Thursday, January 30, 2014

How to Install RHN Satellite Server



This document will explain how to install, build, and configure a Red Hat Satellite Server.  This document will also explain many of the requirements for Satellite and options for installations, channels, kickstart profiles, etc...  
Section I: Installation 
1.  Follow the RHN Satellite Installation Guide on Redhat Portal. 
2.  Build VM with necessary requirements. 
1.      Choose Stand Alone DB vs Embedded DB (same machine) 
2.      For Stand Alone RHN Satellite only support Oracle 10g
 
3.  Download the ISO Image for installing RHEL 6 from RHN  
4.  Download the ISO Image for RHN Satellite 5.4 from RHN 
2.      While still logged into the RHN website, download the Channel Content ISOs to be served by your Satellite
 
5.  Install Red Hat Enterprise Linux and then RHN Satellite on the Satellite machine. 
1.      Recommended - 5gb + for OS 
2.      30gb per Channel in /var/satellite 
3.      12gb for DB in /rhnsat
 
6.  Mount the RHN Satellite ISO through VMware then mount it in satellite server 
1.      [root@mysat /]# mount /dev/cdrom /media 
2.      [root@mysat media]# ./install.pl 
3.      * Starting the Red Hat Network Satellite installer.
* Performing pre-install checks.
* Pre-install checks complete.  Beginning installation.
* RHN Registration.
RHN Username? todd.walters
RHN Password?
HTTP Proxy Hostname?
RHN Profile Name [mysat.mydom.com]?
* Checking for uninstalled prerequisites.
** Checking if yum is available ...
There are some packages from Red Hat Enterprise Linux that are not part
of the @base group that Satellite will require to be installed on this
system. The installer will try resolve the dependencies automatically.
However, you may want to install these prerequisites manually.
Do you want the installer to resolve dependencies [y/N]? y
* Applying updates.
* Installing RHN packages.

 


You should have the following technical documents in hand for use in roughly this order:  
1.   The RHN Satellite Installation Guide — This guide, which you are now reading, provides the essential steps necessary to get an RHN Satellite up and running.  
2.   The RHN Client Configuration Guide — This guide explains how to configure the systems to be served by an RHN Proxy Server or RHN Satellite. (This will also likely require referencing The RHN Reference Guide, which contains steps for registering and updating systems.)  
3.   The RHN Channel Management Guide — This guide identifies in great detail the recommended methods for building custom packages, creating custom channels, and managing private Errata.  
4.   The RHN Reference Guide — This guide describes how to create RHN accounts, register and update systems, and use the RHN website to its utmost potential. This guide will probably come in handy throughout the installation and configuration process.  
How to Install RHN Satellite Server 
Requirements 
·         Call RHN and Request Satellite Certificate (for Satellite 5.4) 
·         At least 120gb DiskSpace 
·         4-8gb RAM & 2CPU 
·         Access to RHN Customer Portal to Download the ISO’s. 
Configure /etc/hosts properly 
Hostname:           satserv  satserv.mydomain.com 
Proposed DNS:  satellite.mydomain.com 
VmWare:              Red Hat Primary Cluster 
IP Address:           192.168.4.180.  
Netmask:              255.255.252.0
Gateway:              192.168.4.1



more /etc/resolv.conf
nameserver      192.168.3.26
nameserver      192.168.4.25
nameserver      192.168.3.26

domain  mydomain.com 
[root@satserv ~]# pvs  
  PV         VG    Fmt  Attr PSize   PFree  
  /dev/sda2  satvg lvm2 a--  119.80g 50.80g  
Logical Volume Layout  
[root@satserv ~]# lvs  
  LV       VG    Attr     LSize  Pool Origin Data%  Move Log Copy%  Convert  
 optLV    satvg -wi-ao--  2.00g  
 rhnLV    satvg -wi-ao-- 10.00g  
 rootLV   satvg -wi-ao--  5.00g  
 satdbLV  satvg -wi-a--- 14.00g  
 swapLV   satvg -wi-ao--  4.00g  
 tmpLV    satvg -wi-ao--  2.00g  
 usrLV    satvg -wi-ao--  3.00g  
 varLV    satvg -wi-ao--  3.00g  
 varsatLV satvg -wi-ao-- 40. 
  
  
Logical Volume 
Mount Point 
Description 
optLV 
/opt 
Oracle db config files 
rhnLV 
/var/rhn/cache 
Cache for satellite (rec 10gb) 
rootLV 
Root Filesystem 
satdbLV 
/rhnsat 
Embedded DB (rec 12gb) 
swapLV 
Swap 
4gb 
tmpLV 
/tmp 
2gb 
usrLV 
/usr 
3gb 
varLV 
/var 
3gb 
varsatLV 
/var/satellite 
40gb (rec 30gb/per channel) 
  
FileSystem Layout 
[root@satserv /]# df -h 
Filesystem                                             Size        Used      Avail      Use%     Mounted on 
/dev/mapper/satvg-rootLV              5.0G      350M      4.4G       8%         / 
tmpfs                                                     1.9G        0             1.9G       0%          /dev/shm 
/dev/sda1                                             194M   32M         153M     18%        /boot 
/dev/mapper/satvg-optLV             2.0G         68M       1.9G       4%          /opt 
/dev/mapper/satvg-tmpLV            2.0G         68M        1.9G        4%        /tmp 
/dev/mapper/satvg-usrLV              3.0G        1.3G       1.6G       47%        /usr 
/dev/mapper/satvg-varLV              3.0G         110M    2.7G       4%          /var 
/dev/mapper/satvg-rhnLV              9.9G        151M     9.2G       2%          /var/cache/rhn 
/dev/mapper/satvg-varsatLV          40G        176M     38G        1%          /var/satellite 
/dev/mapper/satvg-satdbLV           14G        35M       14G        1%          /rhnsat 
  
[root@satserv /]# cat /etc/resolv.conf 
# Generated by NetworkManager 
search mydomain.com 
nameserver 192.168.4.1 
Create Local Admin Group 
# groupadd -g 1500 GroupAdmin

Create User Accounts & Add to Admin Group

[root@satserv /]# useradd -u 500 –G 1500 -d /home/twalters -c "Todd Walters " twalters

Modify /etc/sudoers
# User Privilege section
 # Add Local Admins

%AdminGroup  ALL=(ALL) NOPASSWD: ALL
  
Configure Initial Password 
# useradd –u 2001 -c 'John Doe' –d /home/jdoe jdoe  
# passwd jdoe  
Changing password for user jdoe.  
New password:  
Retype new password:  
passwd: all authentication tokens updated successfully.  
·         # chage -d 0 jdoe
  
·         When the user jdoe logs onto the system the first time, the user is prompted to change their password: 

Turn IPTables Off 
·         [root@satserv ~]# chkconfig iptables off 
·         # service iptables stop

Set SELinux to Disabled 
·         Change SELINUX=disabled  in /etc/sysconfig/selinux 
Begin RHN Satellite installation  
Copy myco.cert to /root  
Import GPG Key 
# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

Mount the RHN Satellite ISO to /dev/cdrom /media and change directory to /media and run install.pl

 * Starting the Red Hat Network Satellite installer.
 * Performing pre-install checks.
 * Pre-install checks complete.  Beginning installation.
 * RHN Registration.
 RHN Username? satadmin
 RHN Password?
 HTTP Proxy Hostname?
 RHN Profile Name [satserv.mydomain.com]?
 * Checking for uninstalled prerequisites.
 ** Checking if yum is available ...

There are some packages from Red Hat Enterprise Linux that are not part
 of the @base group that Satellite will require to be installed on this
 system. The installer will try resolve the dependencies automatically.
 However, you may want to install these prerequisites manually.
 Do you want the installer to resolve dependencies [y/N]? y
 * Applying updates.
 * Installing RHN packages.
 …continuing…

 Where is your satellite certificate file? /root/myco.cert

** Loading RHN Satellite Certificate.
** Verifying certificate locally.
** Activating RHN Satellite.
* Enabling Monitoring.
 * Configuring apache SSL virtual host.  

Should setup configure apache's default ssl server for you (saves original ssl.conf) [Y]?
** /etc/httpd/conf.d/ssl.conf has been backed up to ssl.conf-swsave
* Configuring tomcat.
** /etc/tomcat6/tomcat6.conf has been backed up to tomcat6.conf-swsave
 ** /etc/tomcat6/server.xml has been backed up to server.xml-swsave
 ** /etc/tomcat6/web.xml has been backed up to web.xml-swsave
 * Configuring jabberd.
 * Creating SSL certificates.
 CA certificate password?
 Re-enter CA certificate password?
 Organization? myco
 Organization Unit [satserv.mydomain.com]?
 Email Address [Todd_Walters@mydomain.com]?
 City? Anytown
 State? USA
 Country code (Examples: "US", "JP", "IN", or type "?" to see a list)? US
 ** SSL: Generating CA certificate.
 ** SSL: Deploying CA certificate.
 ** SSL: Generating server certificate.
 ** SSL: Storing SSL certificates.
 * Deploying configuration files.
 * Update configuration in database.
 * Setting up Cobbler..
 Cobbler requires tftp and xinetd services be turned on for PXE provisioning functionality. Enable these services [Y/n]? y
 * Restarting services.
 Installation complete.
 Visit https://satserv.mydomain.com to create the RHN Satellite administrator account.
 You have new mail in /var/spool/mail/root
   
Login to FQDN URL for Satellite
Complete ‘final’ configuration – Create Admin login

  Satellite Admin Account = satadmin
 
Go to RHN Satellite Configuration - General Configuration and verify the configuration
  
Yum install screen
 
Continue on to SatellitePost Installation Configuration document 
·         Cobbler INFO 
o    copy pxelinux.0 file from /usr/share/syslinux/ to /var/lib/tftpboot.
 
o    If you run cobbler get-loaders
Install syslinux rpm 
§  yum install syslinux.x86_64 
o    # cp -ruv /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/ 






No comments:

Post a Comment