Table of Contents

Technical Information: CentOS/RHEL Topics

See optum-specific details ...

Distribution Trivia

Licensing

Details to intialize for a new instance

If Starting with a Minimal Install

If VirtualBox VM Guest

If using Docker

Docker requires the container-selinux package, not available in RHEL repos.
Get it from: CentOS 7 package mirror
Then, install Docker with:

yum remove docker docker-common docker-selinux docker-engine
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce

… alternately …

yum check-update
curl -fsSL https://get.docker.com/ | sh
systemctl start docker
systemctl status docker
systemctl enable docker

If using ZFS

See official documentation for further details

If using LXC

See also: CentOS/RHEL Specifics for LXC

If using KVM

Other packages for new instance

Update a specific repository

yum –disablerepo=“*” –enablerepo=“epel” update

Enable TCP listen for X

… to be added …

Add firewall rule for HTTP

List active zone(s):firewall-cmd –get-active-zones
Add port (note zone):firewall-cmd –zone=public –add-port=3000/tcp –permanent
Refresh:firewall-cmd –reload

Change hostname post-installation

hostnamectl set-hostname Your-New-Host-Name-Here
hostnamectl set-hostname "Your New Host Name Here" --pretty
hostnamectl set-hostname Your-New-Host-Name-Here --static
hostnamectl set-hostname Your-New-Host-Name-Here --transient

ulimit

In /etc/security/limits.conf, create a file like 20-nofile.conf:

*        hard    nofile    4096
*        soft    nofile    1024
@users   soft    nofile    2048
rk4n3    hard    nofile    81920
rk4n3    soft    nofile    8192

Some Application Trivia

Routine CLI

rsyslog & logrotate

Wildfly

Jenkins

See CentOS/RHEL section in Jenkins devops page

Gatling

See CentOS/RHEL section in Gatling devops page

Some Issues -> Solutions

Raw network/socket access

systemd journal

Upgrading

CentOS will typically require accepting license agreement (again) after a significant upgrade.
This can mean that the system will not complete booting until license agreement acceptance is
completed on a console.

Firewall

Example:

firewall-cmd --permanent --zone=public --add-port=80/tcp
firewall-cmd --reload

LDAP

Permissions

Mounted filesystem after changing fstab

CentOS VMs Crash in VNC/Headless Mode

This problem seems to be related to IPv6, so disabling IPv6 helps. Perform installation and first boot-up using the native Qemu GUI console, then disable IPv6 in the guest:

sysctl -a | grep ipv6 | grep disable | sed 's/= 0/= 1/g' > /etc/sysctl.d/ipv6.conf; sysctl -p /etc/sysctl.d/ipv6.conf

… then, the VM can be restarted in headless/VNC mode.

Some Hardware Trivia


Links: Linux InfoTech Info