Installing and Configuring Red Hat (CentOS) Linux
This section provides information about installing and configuring Red Hat (CentOS) Linux for the PSM server.
Before You Install Red Hat (CentOS) Linux
Obtain the following information from your IT department before installing Red Hat (CentOS) Linux.
the IP address for the server where the operating system will be installed
the system name
the domain name
the subnet mask
the DNS server
the proxy server if applicable (see below)
Before installing any software, consult the proNX Service Manager Release Notes for this release. The proNX Service Manager Release Notes contains important information relating to installing and upgrading software for this release, and may require you to take additional steps prior to or after executing the procedures in this section.
Running with a Proxy Server
If the machine that you're installing the PSM server on is located behind a proxy, you must make changes to the following configuration files in order for the installation to proceed properly:
wgetrc - The wget command is used by the installation script supplied by Juniper Networks to download files. The wget command needs to know that it's running behind a proxy. The recommended approach is to modify the wget configuration file,
/etc/wgetrcfor the system or
~/.wgetrcfor an individual user, by adding the following lines:
use_proxy=on http_proxy=proxy_host_or_ip:proxy_port proxy_user=username proxy_password=password
curlrc - The curl command is used by the installation script supplied by Juniper Networks to download files. The curl command needs to know that it's running behind a proxy. The recommended approach is to modify the curl configuration file,
~/.curlrc, by adding the following line:
Installing and Configuring Red Hat (CentOS) Linux, 64-bit, for the PSM Server
Use this procedure to install and configure Red Hat (CentOS) Linux, 64-bit, from an installation DVD.
Obtain the installation DVD for Red Hat (CentOS) Linux.
Obtain the PSM DVD or ISO image.
Obtain the information specified in Before You Install Red Hat (CentOS) Linux.
Ensure the server machine is physically connected to a LAN and is able to access the Internet.
Ensure the system is bootable from the DVD drive.
Ensure the SATA mode in the BIOS is set to support AHCI instead of legacy. For some BIOSs, this may be called "Enable SATA AHCI Support".
Before starting this procedure, consult the proNX Service Manager Release Notes for this release. The proNX Service Manager Release Notes contains important information relating to installing and upgrading software for this release, and may require you to take additional steps prior to or after executing this procedure.
This procedure provides supplementary installation information on how to configure the operating system and/or software packages in order to run the PSM server application, and is not intended to replace the procedures provided by the operating system and/or software package suppliers.
This section uses examples to illustrate the installation procedure. The examples refer to IP addresses and software version numbers that may not match your particular network configuration or the current software release. Consequently, the output that you see may differ from what is shown in the examples.
- Insert the Red Hat (CentOS) Linux installation DVD and
follow the on-screen instructions.
Select the following options during the installation:
If the server has an existing Linux installation, specify that you want to perform a fresh installation. In some installations, this may appear as the Fresh Installation option.
Provision the network settings. In some installations, this may appear as the Network Configuration option. Specify a static IP address, netmask, hostname, default gateway, and DNS server. Ensure the Connect automatically option is selected and that the server machine is physically connected to the network.
Select the option to make use of all the disk space for the new installation. In some installations, this may appear as the Use All Space option. See NOTE below.
Select the minimal server installation option. In some installations, this may appear as the Minimal installation option.
It is recommended that you partition the disk such that the
/homepartition takes up only 15% of the total disk space. You should configure the
/partition to take up the rest of the partitionable space. For RHEL (CentOS) 6, you can configure the partitioning by selecting Review and modify partitioning layout. For RHEL (CentOS) 7, you can configure the partitioning by selecting I will configure partitioning in the INSTALLATION DESTINATION window.
For all other options, follow the on-screen instructions and/or use the defaults.
- Reboot the server and log in as root using the credentials you specified during the OS installation.
- Confirm that your network settings are correct.
Check your network connectivity.
Ping a known IP address in your network. For example:
[root@psmdemo ~]# ping -c2 10.64.0.1 PING 10.64.0.1 (10.64.0.1) 56(84) bytes of data. 64 bytes from 10.64.0.1: icmp_seq=1 ttl=64 time=1.06 ms 64 bytes from 10.64.0.1: icmp_seq=2 ttl=64 time=1.03 ms --- 10.64.0.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1002ms rtt min/avg/max/mdev = 1.037/1.049/1.062/0.034 ms
Confirm your DNS server is working properly.
Ping a well-known site to ensure the site name is resolved. For example:
[root@psmdemo ~]# ping -c2 www.google.com PING www.google.com (126.96.36.199) 56(84) bytes of data. 64 bytes from yyz08s10-in-f17.1e100.net (188.8.131.52): icmp_seq=1 ttl=57 time=7.73 ms 64 bytes from yyz08s10-in-f17.1e100.net (184.108.40.206): icmp_seq=2 ttl=57 time=7.93 ms --- www.google.com ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1009ms rtt min/avg/max/mdev = 7.736/7.833/7.930/0.097 ms
If either of these steps fails, fix your network settings before proceeding.
- If you are installing Red Hat, you must register your
computer, attach a subscription, and subscribe to the necessary channels
before you can update your server machine from the Red Hat repositories.
If you are installing CentOS, skip to 5.
Register your subscription by using the
subscription-manager registercommand and entering your Red Hat subscription username and password.
Attach the subscription by using the
subscription-manager attach --autocommand.
Subscribe to the options channel.
For Red Hat 6, use the following command:
subscription-manager repos --enable=rhel-6-server-optional-rpms
For Red Hat 7, use the following command:
subscription-manager repos --enable=rhel-7-server-optional-rpms
Additionally, for Red Hat 7, you must subscribe to the extras channel by using the following command.
subscription-manager repos --enable=rhel-7-server-extras-rpms
- Update the
[root@psmdemo ~]# yum -y update
- Reboot the server and log back in as root.
- Add the server to the hosts file.
Look in the
/etc/hostsfile and add the name of the server, the domain, and the IP address as one of the entries.
For example, for a server named psmdemo:
[root@psmdemo ~]# vi /etc/hosts [root@psmdemo ~]# cat /etc/hosts | grep psmdemo 10.64.8.155 psmdemo.example.org psmdemo [root@psmdemo ~]#
- Ensure the date and time are set correctly.
To verify the date, for example:
[root@psmdemo ~]# date Mon Jan 13 09:28:54 EST 2014
If the date and time are not set correctly, manually set the date and time. For example:
[root@psmdemo ~]# date -s "Jan 21 14:38:00 2014 EST"
Alternatively, if NTP has been set up, you can use the
ntpdatecommand to manually synchronize the time with an NTP server (for example,
ntpdate us.pool.ntp.org). The
ntpdatecommand can only be performed if you do not have an ntpd service running. If you do, then stop the service first by issuing the
service ntpd stopcommand. In a new installation, NTP will not have been set up yet. NTP is set up as part of the
Proceed to the next step only after the date and time are correct.
- Install an SSH client, such as openSSH.
yum install openssh-clients
This installs openSSH and its dependencies.
- Install the Extra Packages for Enterprise Linux (EPEL).
EPEL contains packages that are required by the PSM server.
The EPEL package is available through YUM.
yum -y install epel-release
For Red Hat:
EPEL is part of the Fedora project, and can be installed as follows:
rpm –ivh http://dl.fedoraproject.org/pub/epel/epel-release-latest-n.noarch.rpm
where n is
6for Red Hat 6, and
7for Red Hat 7.
Confirm by checking for the repository. For example:
[root@psmdemo ~]# ls /etc/yum.repos.d/epel* epel.repo epel-testing.repo
the OpenJDK Java Runtime Environment (JRE) on the server machine.
The server machine must have Internet access.
[root@psmdemo ~]# yum install java-1.8.0-openjdk Loaded plugins: fastestmirror <trimmed> Installed: java-1.8.0-openjdk.x86_64 1:220.127.116.11.b12-1.el7_6 Dependency Installed: copy-jdk-configs.noarch 0:3.3-10.el7_5 giflib.x86_64 0:4.1.6-9.el7 java-1.8.0-openjdk-headless.x86_64 1:18.104.22.168.b12-1.el7_6 javapackages-tools.noarch 0:3.4.1-11.el7 libXcomposite.x86_64 0:0.4.4-4.1.el7 libXi.x86_64 0:1.7.9-1.el7 libXtst.x86_64 0:1.2.3-1.el7 libjpeg-turbo.x86_64 0:1.2.90-6.el7 lksctp-tools.x86_64 0:1.0.17-2.el7 nss-pem.x86_64 0:1.0.3-5.el7 python-javapackages.noarch 0:3.4.1-11.el7 python-lxml.x86_64 0:3.2.1-4.el7 ttmkfdir.x86_64 0:3.0.9-42.el7 tzdata-java.noarch 0:2018i-1.el7 xorg-x11-fonts-Type1.noarch 0:7.5-9.el7 Dependency Updated: chkconfig.x86_64 0:1.7.4-1.el7 nspr.x86_64 0:4.19.0-1.el7_5 nspr-devel.x86_64 0:4.19.0-1.el7_5 nss.x86_64 0:3.36.0-7.el7_5 nss-softokn.x86_64 0:3.36.0-5.el7_5 nss-softokn-freebl.x86_64 0:3.36.0-5.el7_5 nss-sysinit.x86_64 0:3.36.0-7.el7_5 nss-tools.x86_64 0:3.36.0-7.el7_5 nss-util.x86_64 0:3.36.0-1.el7_5 Complete!
Check that OpenJDK has been installed.
[root@psmdemo ~]# ls /usr/lib/jvm java-1.8.0-openjdk-22.214.171.124.b12-1.el7_6.x86_64 jre jre-1.8.0 jre-1.8.0-openjdk jre-1.8.0-openjdk-126.96.36.199.b12-1.el7_6.x86_64 jre-openjdk
For more information on installing OpenJDK, see https://openjdk.java.net/install/.
- Run the
psm-xxxxx.runscript provided by Juniper Networks in the PSM ISO image. This script requires Internet access, and configures the operating system and installs the software packages required by the PSM server.
If you are installing the PSM server on a machine that is behind a proxy, ensure you have modified the appropriate configuration files as described in Before You Install Red Hat (CentOS) Linux.
Insert the PSM DVD into the DVD drive of the server or copy the PSM ISO image onto the server.
To copy the ISO image onto the server, you can use
scpif transferring from a Linux machine, or you can use a Windows SCP application (for example, WinSCP) if transferring from a Windows machine.
Create the mount directory on the server if it is not already created.
Mount the DVD or the ISO.
To mount the DVD:
mount -t iso9660 /dev/cdrom /media
To mount the ISO:
mount -t iso9660 -o loop xxx.iso /media
xxx.isois the name of the ISO file (for example,
In the mount directory, look for the
psm-xxxxx.runscript and copy that file into the
xxxxxis the update version number, which varies from release to release.
[root@psmdemo ~]# cp /media/psm-xxxxx.run .
If necessary, change permissions on the script to allow it to be run.
[root@psmdemo ~]# chmod +x psm-xxxxx.run
Run the script.
[root@psmdemo ~]# ./psm-xxxxx.run
Here is sample output from one version of the script:
By accepting this license in any manner, you represent that you have read, understood and agree to be bound by and comply with the terms and conditions of the End-User Software License Agreement found at http://www.juniper.net/support/eula/ (this License or “EULA”). This License defines what you may do with the Licensed Software and may contain limitations on warranties and/or remedies. If you do not agree with or accept these terms and conditions then you are not granted a license and are not authorized to access, download, install or use the Licensed Software. Please type y to accept, n otherwise: y Verifying archive integrity... All good. Uncompressing PSM Server Setup .. 100% Confirming script running as root: [ OK ] Confirming distro is Red Hat RPM-based: [ OK ] Confirming architecture is x86_64: [ OK ] Confirming yum is available: [ OK ] Confirming hostname not set to localhost: [ OK ] Confirming hostname is configured and pingable: [ OK ] Confirming Internet connectivity (install only): [ OK ] Confirming EPEL repo is provisioned: [ OK ] Validating OpenJDK Java 8 JDK installation: [ OK ] Installing base dependencies (be patient): [ OK ] Installing EPEL dependencies (be patient): [ OK ] Generating unique machine-uuid: [ OK ] Installing scripts and configuration files: [ OK ] Installing daily database backup: [ OK ] Installing resty and friends: [ OK ] Installing PM graph dependencies (be patient): [ OK ] Verifying PM graph framework: [ OK ] Verifying PM tagging: [ OK ] Verifying PM graph database: [ OK ] Verifying PM graph storage: [ OK ] Verifying PM graphing: [ OK ] Initializing PM graphing database: [ OK ] Configuring SNMP daemon: [ OK ] Configuring NTP daemon: [ OK ] Configuring OS: [ OK ] Configuring process supervision: [ OK ] Generating file uninstall list [ OK ] Script completed successfully
All RPMs installed by the script, and all files created or updated by the script, are logged in
/root/uninstall.log. The log is provided in case you want to manually uninstall the packages and/or remove the files that the script has installed. Because these packages and files are required for proper operation of the PSM server, you should only do this if you are no longer using this machine as a PSM server.
- Reboot the server.
The reboot is necessary to ensure the path variables are set up properly.
the server reboots, log back in and verify that the $JAVA_HOME variable
is correctly set to reference the newly installed Java directory.
[root@psmdemo /]# echo $JAVA_HOME /usr/lib/jvm/jre-openjdk
You have successfully installed and configured Red Hat (CentOS) Linux and all necessary packages for the PSM server.