To install Red Hat Enterprise Linux 7.6 on the bastion node:
- Log in to the iDRAC web interface of the R640 PowerEdge server and launch a remote console.
- On the Virtual Media tab, connect virtual media and select Map CD/DVD.
- Browse to the location of the Red Hat Enterprise Linux Server 7.6 installation media and select Map Device.
- Use either the ks_usb.img file (Option 1) or the USB key you prepared earlier (Option 2):
- Option 1: In the iDRAC remote console, on the Virtual Media tab, select Map Removable Disk. Browse to the location of the ks_usb.img file and select Map Device.
- Option 2: Insert the USB key into a USB port on the R640 server.
sda = BOSS RAID1 as OS drive
sdb = ks_usb_img mounted to iDRAC
- Select Next Boot, set Virtual CD/DVD/ISO as the next boot option.
- Power on the system and click OK on the remote console.
- From the Red Hat Enterprise Linux 7.6 installation menu, select Install.
- Do not press the [Enter] key. Press the [e] key.
- Move the cursor to the end of the line that begins with vmlinuz, and append the following code to the end of the line:
Note: If only one physical RAID, SAS, or SATA disk is presented to the server, use the device name sdb for the kickstart location in the Red Hat Enterprise Linux 7 installer.
Note: NVMe disks are enumerated as nvme0n1, nvme1n1, nvme2n1, and nvme3n1.
The following figure shows the installation command.
Figure 1. Installation command
- Press [CTRL+X] to start the installation.
- Reboot the server and accept the license.
- Log in and verify that the bonds and networks are functioning.
- Start an SSH session to the bastion server.
- To register with Red Hat, attach the pool ID with OpenShift subscriptions, and install the supporting packages, run the following commands:
subscription-manager register --username Your_RH_account --password RH_password --force
subscription-manager attach --pool=xxxxxxxxxxxxxxxxxxxxxxxxxxxx
subscription-manager repos --enable="rhel-7-server-rpms" --enable="rhel-7-server-extras-rpms" --enable="rhel-7-server-ose-3.11-rpms" --enable="rhel-7-server-ansible-2.6-rpms"
yum -y install wget git net-tools bind-utils iptables-services bridge-utils bash-completion kexec-tools sos psacct
yum -y install openshift-ansible
yum -y install docker-1.13.1
If partitions with previous data exist on the disks, clean the disks by running the following command:
dd if=/dev/zero of=/dev/nvmeXn1 bs=1M count=1
Replace X with the target drive number such as 0, 1, 2, 3.
Example: dd if=/dev/zero of=/dev/nvme0n1 bs=1M count=1
Start an SSH session to the bastion node, and then follow these steps:
- Run the following commands as root:
- Edit this file as follows:
- Save your changes.
- Configure Docker storage by running the following command:
Rounding up size to full physical extent 1.49 GiB
Thin pool volume with chunk size 512.00 KiB can address at most 126.50 TiB of data. Logical volume "docker-pool" created. Logical volume docker-vg/docker-pool changed.
Enable and start Docker by running the following commands:
systemctl enable docker
systemctl start docker
systemctl is-active docker
- Log in to the Docker registry and install atomic by running the following commands:
docker login -u Your_RH_account -p Your_RH_password
docker login https://registry.redhat.io
yum -y install atomic
yum -y install atomic-openshift-clients
- Install the Red Hat Enterprise Linux updates and reboot the bastion server:
yum clean all
yum -y update