Managing SLES Systems Guide

SLES is a commercially supported Linux distribution and a popular choice for servers and cloud computing due to its long term support. This guide shows how to attach existing or deploy new hosts running SUSE Linux Enterprise Server (short: SLES) 15 SP3. When starting with a basic orcharhino installation, you can configure and prepare your orcharhino to deploy hosts running SLES 15 SP3 in five steps:

  1. Prepare the installation media to perform offline installations.

  2. Create the operating system entry for SLES 15 SP3.

  3. Synchronize SUSE content to orcharhino.

  4. Create a host group to bundle provisioning and configuration information.

  5. Deploy a host running SLES 15 SP3.

Attaching Hosts Running SLES 15 SP3

You can attach existing hosts running SLES 15 SP3 to your orcharhino. Refer to the attach existing hosts guide for more information on how to attach existing hosts running SLES using the bootstrap.py script.

Prerequisites
  • If you use a self-signed certificate on your orcharhino, ensure hosts trust the SSL certificate before running the bootstrap.py script.

  • An activation key for the host needs to exist and contain the necessary software content.

  • A host group must be configured accordingly to have orcharhino manage the host completely.

    Ensure to select a host group without any predefined deploy on compute resource. Otherwise, attaching an existing host starts deploying a new host to the compute resource selected in the deploy on drop down menu. Refer to creating a host group for more information.

  • Synchronize the required orcharhino client repository and create a content view.

  • (Debian, SLES, and Ubuntu only) Use --deps-repository-url to specify the repository containing the required dependencies. Navigate to Content > Products, click on your orcharhino clients product, choose the orcharhino client repository on the Repositories tab, and select the appropriate client repository. Pass the Published At URL using --deps-repository-url, for example --deps-repository-url https://orcharhino.example.com/pulp/deb/Example/Library/custom/Debian_Client/Debian_10_Client/.

  • (SLES only) Ensure to provide the managed host with the dependencies of subscription-manager:

    Operating System SUSE Repositories

    SLES 11 SP4

    SLES11-SP4-Pool for sle-11-x86_64, SLES11-SP4-Updates for sle-11-x86_64

    SLES 12 SP5

    SLES12-SP5-Pool for sle-12-x86_64

    SLES 15

    SLE-Product-SLES15-Pool for sle-15-x86_64, SLE-Module-Basesystem15-Pool for sle-15-x86_64

    SLES 15 SP1

    SLE-Product-SLES15-SP1-Pool for sle-15-x86_64, SLE-Module-Python2-15-SP1-Pool for sle-15-x86_64, SLE-Module-Basesystem15-SP1-Pool for sle-15-x86_64

    SLES 15 SP2

    SLE-Product-SLES15-SP2-Pool for sle-15-x86_64, SLE-Module-Python2-15-SP2-Pool for sle-15-x86_64, SLE-Module-Basesystem15-SP2-Pool for sle-15-x86_64

    SLES 15 SP3

    SLE-Product-SLES15-SP3-Pool for sle-15-x86_64, SLE-Module-Python2-15-SP3-Pool for sle-15-x86_64, SLE-Module-Basesystem15-SP3-Pool for sle-15-x86_64

    • Install the SCC Manager Plugin on your orcharhino.

    • Add your SCC account to orcharhino.

    • Import SUSE products, including the base operating system and the required repositories as described above.

      For example, if you want to attach hosts running SLES 15 SP3, include the SLE-Product-SLES15-SP3-Pool for sle-15-x86_64, SLE-Module-Python2-15-SP3-Pool for sle-15-x86_64, and SLE-Module-Basesystem15-SP3-Pool for sle-15-x86_64 repositories.

    • Synchronize SUSE content to your orcharhino.

      Ensure the necessary SUSE repositories are available to the host you want to attach to orcharhino using the activation key.

Procedure
  1. Download the bootstrap.py script to your host using wget:

    # wget http://orcharhino.example.com/pub/bootstrap.py
  2. Use the --help option to display a list of mandatory options:

    # python bootstrap.py --help
  3. Attach your host running SLES 15 SP3 to your orcharhino:

    # ./bootstrap.py \
        -s "orcharhino.example.com" \
        -a "sles_15_sp3" \
        -o "Example" \
        -L "Munich" \
        -l "admin" \
        -p "password" \
        -g "SLES 15 SP3" \
        --fqdn "my-host.example.com" \
        --deps-repository-url "https://orcharhino.example.com/pulp/rpm/Example/Library/custom/SLES_15_SP3_Client/SLES_15_SP3_Client/"

Preparing the Installation Media

To prepare the installation media image, see Preparing SUSE Installation Media in the Content Management guide.

Creating the Operating System Entry

To create the operating system, see Creating a SUSE Operating System in the Content Management guide

Installing the SCC Manager Plugin

To install the SCC Manager plugin, see Installing the SCC Manager Plugin in the Content Management guide

Adding SCC Accounts to orcharhino

To add SCC accounts to orcharhino, see Adding SCC Accounts to orcharhino in the Content Management guide

Switching SCC Accounts

To switch SCC accounts, see Switching SCC Accounts in the Content Management guide

Importing SUSE Products

To import SUSE products, see Importing SUSE Products in the Content Management guide

Synchronizing SUSE Content

To synchronize SUSE content, see Synchronizing SUSE Content in the Content Management guide

Creating a Host Group for SLES 15 SP3

Create a host group to bundle provisioning and configuration information for hosts running SLES 15 SP3.

Prerequisites
Procedure
  1. Navigate to Configure > Host Groups and click Create Host Group.

    • On the Host Group tab, enter a Name, Lifecycle Environment, Content View, Content Source, Deploy on, and Compute Profile.

    • On the Network tab, enter a Domain and Subnet.

    • On the Operating System tab, enter an Architecture, Operating System, Media, Partition Table, and optionally a Root Password.

    • On the Activation Keys tab, select the previously created Activation Key.

    • Optional: Assign Ansible Roles, Puppet Classes, or Salt States to the host group.

  2. Click Submit to save your host group to orcharhino.

Deploying Hosts Running SLES 15 SP3

Prerequisites
Procedure
  1. Navigate to Hosts > Create Host.

  2. Enter a name for your host.

  3. Select the previously created host group.

  4. Click Submit to deploy your host.

Enabling Kernel Live Patching

You can enable Kernel Live Patching using KLP for managed hosts running SLES 15 SP3 to allow for Linux Kernel updates without reboots.

Prerequisites
  • Synchronized content for SLES 15 SP3

  • Access to the SUSE product SUSE Linux Enterprise Live Patching 15 SP3 x86_64

Procedure
  1. Navigate to Content > SUSE Subscriptions and click Select products. Select the SUSE Linux Enterprise Live Patching 15 SP3 x86_64 product.

  2. Navigate to Content > Products, select the previously added product, and click Sync Selected.

  3. Once synchronized, navigate to Content > Content Views and add the repositories of the SUSE Linux Enterprise Live Patching 15 SP3 x86_64 product to your SLES 15 SP3 content view.

  4. Navigate to Content > Content Views and select the SLES 15 SP3 content view. Publish a new version of the selected content view.

  5. Navigate to Content > Activation Keys and select the previously created sles-15-sp3 activation key. On the Subscriptions tab, select the repositories of the SUSE Linux Enterprise Live Patching 15 SP3 x86_64 product.

  6. Connect to your managed host running SLES 15 SP3:

    # ssh root@my-host.example.com
  7. Update the available content on your managed hosts:

    # subscription-manager refresh
  8. Install the required package:

    # zypper install kernel-livepatch-tools
  9. Reboot your managed host:

    # reboot now

You can now continue with installing KLP Patches to update the Linux Kernel without rebooting your managed host.

Installing KLP Patches

Once Kernel Live Patching is enabled, you can install KLP patches to update the Linux Kernel without rebooting your managed host.

Prerequisite
Procedure
  1. Connect to your managed host running SLES 15 SP3:

    # ssh root@my-host.example.com
  2. Search for available Kernel live patches:

    # zypper search kernel-livepatch
  3. Install a KLP patch:

    # zypper install kernel-livepatch-5_3_18-59_5-default