RHEL 7/Centos 7 Installation

From NovaOrdis Knowledge Base
Revision as of 02:04, 5 January 2016 by Ovidiu (talk | contribs)
Jump to navigation Jump to search

External

Internal

Overview

This installation procedure has been tested on bare metal (ThinkPad laptops) and on VirtualBox VMs.

DVD

Download the RHEL 7.2 Binary ISO DVD from https://access.redhat.com.

Procedure

Install Red Hat Enterprise Linux 7.2
...
Starting installer, one moment.

Welcome to Red Hat Enterprise Linux 7.2

What language would you like to use during the installation process? English -> English (United States) -> Continue

Installation Summary

First go to "Network & Host Name" to set external access.

Network & Host Name

Turn wireless off

The NAT adapter is eth1. Turn it "ON". This is the VirtualBox NAT network interface, so it should get an IP address from its DHCP server and allow external connection.

It should say "Connected", get a valid IP address (example IP address 10.0.3.15, default route 10.0.3.2, DNS: a valid DNS or your local router).

Then go to eth0.

Turn it ON.

Configure:

General

Automatically connect to this network when it is available.

All users may connect to this network.

Ethernet:

Device: eth0

MTU: automatic

IPv4 Settings

Method: Manual

Addresses: Add

Address 172.20.2.11, Netmask 255.255.0.0, Gateway: leave empty

Make sure you Save.

__DO NOT FORGET__ Then go to "Host name".

Specify the local host name: openshift-master1.

If you are planning to use a local DNS server, specify openshift-master1.openshift.local

Done.

!Date & Time

Time Zone.

Network Time: ON

Done.

!Keyboard

English(US)

!Installation Source

Auto-detected installation media

!Software Selection

Minimal Install

!Installation Destination

Select the VBOX disk.

Automatically configure partitioning.

Done.

!Kdump

Disable.


!!Next

Begin Installation


!!User Settings

Root password

Create users as necessary (openshift)

!!Next

Finish configuration

!!!Post Install

!!DNS

Immediately after reboot and before logging in the first time, set up the DNS server to resolve the new server: [Bind DNS Server#AddingANewHostToTheZoneFile]

!!Reboot

!!Set up DNS

[Linux DNS Client#Configuration]

!!Test

Test the following:

1. We have external network access and DNS works:

{{{ ping www.cnn.com }}}


!!!Troubleshooting

!!Failure to boot with the default kernel

Did not know what I did, but I set storage as follows:

Controller IDE -> Empty -> IDE Primary Slave, No Live CD/DVD.

Controller SATA -> Port Count: 2

*.vdi -> Hard Disk SATA Port 0, No Solid-state Drive.

!!A Network Adapter Does Not Start

Go to /etc/sysconfig/network-scripts/ifcfg-ethX and make sure ONBOOT=yes

See [Linux6NetworkConfiguration#Troubleshooting].


!!!Subscription Registration


{{{ [root@rhel-test ~]# subscription-manager register Username: novaordis_2 Password: The system has been registered with ID: 8ccbea2c-8b26-4049-b2f5-ed5487ea9cb1 }}}

{{{ subscription-manager refresh subscription-manager attach --auto }}}


After that I can update the system:

{{{ yum update }}}

{{{

subscription-manager list

}}}

{{{

subscription-manager list --available --all

}}}

More details about the subscription manager:

|[Red Hat Subscription Manager]


!!!Reboot

One more time, to make sure the system starts after patching {{{ init 0 }}}

and then start it from the VirtualBox console.


!!!Create External Aliases

etc.


!!!Continue VirtualBox Installation

If installing in VirtualBox, go back to the VirtualBox installation procedure

|[VirtualBoxVMCreation#GuestAdditions]