Skip to content
Chris Paquin

Chris Paquin

AI, Virtualization, Containers, Infrastructure, Linux

  • Home
  • About
  • Categories
  • Search

  • Nmcli: Working with Linux Bridges on RHEL8/CentOS8

    Misc
    12/02/2020

    For better or worse, mmcli is pretty much the default mechanism for configuring networking on RHEL8/CentOS8. I cannot as of yet, say I am a fan. However, I have been working with ifconfig files for years and held on to that method of networking configuration until they were dragged from my cold and bloated hands.

    Show Bridges

    # nmcli con show
    NAME          UUID                                  TYPE      DEVICE       
    eno1          e875f081-1ef6-4995-bb12-0f5ff50f1095  ethernet  eno1         
    provisioning  272457e0-8a6b-4e93-8902-f28c07f45cdc  bridge    provisioning 
    baremetal     f6d0909c-9ee7-4aa6-8902-b8ce9171fa93  bridge    baremetal    
    vlan98        1db123b9-0e43-453d-ba7b-757213ed377d  vlan      eno1.98      
    vlan99        9d5d886b-e9bd-45c3-8dc4-c958b73b232e  vlan      eno1.99      
    vnet0         73344ec4-37e4-487d-9a07-775ddab2b05e  tun       vnet0        
    vnet1         cb4622dc-7987-4410-8497-780f89195a2f  tun       vnet1        
    eno2          c1b3674d-cc63-414c-90bb-69e00759efd8  ethernet  --           
    eno3          5f12b893-3333-4c8f-91c2-54512d7e7f09  ethernet  --           
    eno4          4bbbcace-9ffe-43df-863a-2b19585d98ee  ethernet  --    

    Show a Bridge and Connected Interfaces

    Format is as shown below.

    nmcli -f GENERAL.DEVICE,GENERAL.TYPE,BRIDGE.SLAVES device show bridge_device_name

    For example:

    nmcli -f GENERAL.DEVICE,GENERAL.TYPE,BRIDGE.SLAVES device show provisioning
    GENERAL.DEVICE:                         provisioning
    GENERAL.TYPE:                           bridge
    BRIDGE.SLAVES:                          eno1.98 vnet1
    

    Add a Bridge

    # nmcli connection add type bridge ifname app-br0
    Connection 'bridge-app-br0' (f26b8315-5ab0-409a-a701-8abf3837aa92) successfully added.
    

    Add a Slave Interface to a Bridge

    nmcli con add type ethernet con-name br-slave-1 ifname eno51 master app-br0

    Delete a Bridge

    # nmcli conn delete bridge-app-br0
    Connection 'bridge-app-br0' (f26b8315-5ab0-409a-a701-8abf3837aa92) successfully deleted.
    

    • Share on X (Opens in new window) X
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on Reddit (Opens in new window) Reddit

    Like this:

    Like Loading…
  • Introduction to the OpenShift 4 Logging Stack

    OpenShift
    11/17/2020

    https://www.openshift.com/blog/introduction-to-the-openshift-4-logging-stack

    • Share on X (Opens in new window) X
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on Reddit (Opens in new window) Reddit

    Like this:

    Like Loading…
  • Enhanced Platform Awareness in Red Hat OpenShift

    OpenShift Redhat
    06/17/2020

    cropped-post-7682-0-05689900-1437494023.jpg

    Four part series published on Medium.com

    Enhanced Platform Awareness (EPA) in OpenShift — Part I, HugePages

    Enhanced Platform Awareness (EPA) in OpenShift — Part II, CPU pinning

    Enhanced Platform Awareness (EPA) in OpenShift — Part III, NUMA Topology Awareness

    Enhanced Platform Awareness (EPA) in OpenShift — Part IV, SR-IOV, DPDK and RDMA

     

    • Share on X (Opens in new window) X
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on Reddit (Opens in new window) Reddit

    Like this:

    Like Loading…
  • Installing RHEL 8.1 on Dell R710/R610 with H700 Raid Controller

    Redhat RHEL8
    11/23/2019
    sys_r710.png

    Introduction

    A large number of storage controller drivers have been removed from RHEL 8.x, which means that the Dell R710/R610 with the H700 RAID controller, no longer supports RHEL 8.x natively. While this fact is unfortunate for a lot of hobbyists with their own homelabs, you can still install RHEL 8.x on these machines with the use of a driver update disk (DUD).

    Setup

    Using the link below, navigate and download the deprecated drivers.

    https://elrepo.org/linux/dud/el8/x86_64

    For Dell the R710/R610, you are specifically looking for the megaraid_sas drivers. See output below from R610.

    # dmesg | grep raid
    [ 1.402339] megaraid_sas 0000:03:00.0: FW now in Ready state
    [ 1.402346] megaraid_sas 0000:03:00.0: 64 bit DMA mask and 32 bit consistent mask
    [ 1.402571] megaraid_sas 0000:03:00.0: irq 34 for MSI/MSI-X
    [ 1.402593] megaraid_sas 0000:03:00.0: firmware supports msix : (0)

    The specific DUD iso that you need for RHEL 8.1 is shown below.

    https://elrepo.org/linux/dud/el8/x86_64/dd-megaraid_sas-07.707.51.00-1.el8_1.elrepo.iso

    Installation

    The install process is as follows.

    1. Download RHEL 8.x media and burn to dvd or usb drive
    2. Download deprecated drivers in iso format and burn to usb drive
    3. Boot with both RHEL 8.x media and DUD mounted
    4. The installer should detect the DUD iso and install the proper drivers

    Special Note: In my testing (3 systems) the DUD was not automatically detected by Anaconda.  I suggest using the method below.

     

    Troubleshooting

    When you burn your DUD a usb stick, that the usb drive’s volume label is OEMDRV. This was the default when I burned the iso. The RHEL installer (anaconda) will look for this label on any and all available disks and should automatically recognize the DUD and mount the usb drive.

    However, if this does not occur during the install process, and the installer still does not see your disks, you may need to reboot and this time interrupt the installer with the TAB key and append the following to your boot options.

    inst.dd=/dev/sdb1

    On my system, the DUD was /dev/sdb1 and the RHEL 8.1 install media was /dev/sda.

    Resources:

    https://access.redhat.com/discussions/3722151

    https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/performing_an_advanced_rhel_installation/index#updating-drivers-during-installation_installing-rhel-as-an-experienced-user

    https://elrepo.org/linux/dud/el8/x86_64

    https://serverfault.com/questions/908209/how-to-add-a-dud-driver-to-centos-rhel-7-media-without-network

     

    • Share on X (Opens in new window) X
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on Reddit (Opens in new window) Reddit

    Like this:

    Like Loading…
  • Red Hat: Identity Management Server Setup and HA on RHEL 7

    centos Linux Redhat rhel7
    08/01/2019
    cropped-oversaturateddetail.jpg

    Introduction

    Red Hat Identity Management Server provides is a centralized identity management server for Linux, Mac, Windows.

    In this post we are going to setup and configure a HA deployment of Red Hat IDM on two RHEL 7.x servers.

    Red Hat Identity Management Server is based on the upstream project, FreeIPA.

    Prerequisites

    Only a couple of prerequisites for a simple lab setup

    • You need working dns with forward and reverse entries for both IDM servers
    • NSCD needs to be disabled on each IDM server
    • Proper hostname needs to be set on each IDM node (cannot use localhost)
    • IPV6 needs to be enabled, but you do not need to have an IPV6 address on external interfaces
    (more…)
    • Share on X (Opens in new window) X
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on Reddit (Opens in new window) Reddit

    Like this:

    Like Loading…
  • OpenSCAP Part 4: Integration with Red Hat Satellite 6.5

    Linux rhel7 satellite virtualization
    07/31/2019

    openscap-base

    Introduction

    This is the 4th installment of a series of posts focusing on OpenSCAP.  Previous posts in this series can be found below.

    OpenSCAP Part 1: Introduction and Basic Usage for RHEL 7/CentOS 7/Fedora
    OpenSCAP Part 2: SCAP Content for RHEL 7
    OpenSCAP Part 3: Running Scans from the Command Line in RHEL 7

    This time around we are going to work on integrating OpenSCAP functionality into Red Hat Satellite 6.5

    Installing SCAP Content on Satellite Server

    SSH into your satellite server and run the command below as root.

    # foreman-rake foreman_openscap:bulk_upload:default

    Screenshot from 2019-07-26 17-02-22.png

    By default only a few content files are added.

    Installing Additional SCAP Content

    This can be done via the UI (and possibly via the CLI, however I have not attempted this).

    In this example I have already downloaded RHEL 8 content from here.

    Log into the Satellite UI, and navigate to “Hosts” > “SCAP content”

    Select “Upload New SCAP Content”

    Screenshot from 2019-07-26 17-09-14.png

    And select Choose File to select a file from your local machine.

    Screenshot from 2019-07-26 17-20-54.png

    (more…)

    • Share on X (Opens in new window) X
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on Reddit (Opens in new window) Reddit

    Like this:

    Like Loading…
  • OpenSCAP Part 3: Running Scans from the Command Line in RHEL 7

    centos Compliance Linux Redhat rhel7 Security
    07/25/2019

    openscap-base

    Introduction

    In part 1 of this series we were introduced to OpenSCAP and the process of running scans via the SCAP workbench. In part 2, we explored concepts and components that define security/vulnerability scans. In this 3rd post we are going to dive into the command line operation.

    Let’s get started with oscap.

    Installing oscap

    In RHEL 7 oscap can be installed with the following command

    # yum -y install scap-security-guide openscap-scanner

    Content is installed under the following directory. Note that ssg is short for SCAP Security Guide.

    /usr/share/xml/scap/ssg/content

    Lets change directories to the one listed above and view the installed files.

    Screenshot from 2019-07-24 15-58-04

    Using oscap we can view more info on each file shown above. In this example we are going to inspect the ssg-rhel7-ds.xml file.

    # oscap info ssg-rhel7-ds.xml

    (more…)

    • Share on X (Opens in new window) X
    • Share on Facebook (Opens in new window) Facebook
    • Share on LinkedIn (Opens in new window) LinkedIn
    • Share on Reddit (Opens in new window) Reddit

    Like this:

    Like Loading…
←Previous Page
1 … 7 8 9 10 11 … 67
Next Page→

Twenty Twenty-Five

Designed with WordPress

Loading Comments...
%d