ライブパッチ処理用のチャンネルの設定

完全なカーネルパッケージを更新するたびに再起動が必要です。 したがって、ライブパッチ処理を使用しているクライアントは、割り当てられているチャンネルで新しいカーネルを使用できないことが重要です。 ライブパッチ処理を使用しているクライアントは、ライブパッチ処理チャンネルで実行中のカーネルの更新を取得します。

ライブパッチ処理用のチャンネルを管理するには次の2つの方法があります。

コンテンツライフサイクル管理を使用して製品ツリーのクローンを作成し、実行中のバージョンより新しいカーネルバージョンを削除します。 このプロシージャは、administration:content-lifecycle-examples.adoc#enhance-project-with-livepatchingで説明されています。 これは推奨される解決策です。

または、spacewalk-manage-channel-lifecycleツールを使用します。 このプロシージャはより手動であり、Web UIと同様にコマンドラインツールが必要です。 このプロシージャはSLES 15 SP5のこのセクションで説明されていますが、SLE 12 SP4以降でも機能します。

1. ライブパッチ処理用のspacewalk-manage-channel-lifecycleを使用する

spacewalk-manage-channel-lifecycleは廃止され、今後のリリースで削除される予定です。代わりに、サポート対象で機能豊富なコンテンツライフサイクル管理(CLM) APIに切り替えることをお勧めします。

Cloned vendor channels should be prefixed by dev for development, testing, or prod for production. In this procedure, you create a dev cloned channel and then promote the channel to testing.

プロシージャ: ライブパッチ処理チャンネルの複製
  1. クライアントのコマンドプロンプトで、rootとして、現在のパッケージチャンネルツリーを取得します。

    # spacewalk-manage-channel-lifecycle --list-channels
    Spacewalk Username: admin
    Spacewalk Password:
    Channel tree:
    
     1. sles15-sp7-pool-x86_64
          \__ sle-live-patching15-pool-x86_64-sp7
          \__ sle-live-patching15-updates-x86_64-sp7
          \__ sle-manager-tools15-pool-x86_64-sp7
          \__ sle-manager-tools15-updates-x86_64-sp7
          \__ sles15-sp7-updates-x86_64
  2. Use the spacewalk-manage-channel command with the init argument to automatically create a new development clone of the original vendor channel:

    spacewalk-manage-channel-lifecycle --init -c sles15-sp7-pool-x86_64
  3. Check that dev-sles15-sp7-updates-x86_64 is available in your channel list.

Check the dev cloned channel you created, and remove any kernel updates that require a reboot.

プロシージャ: クローンチャンネルから非ライブカーネルパッチを削除する
  1. Check the current kernel version by selecting the client from Systems  System List, and taking note of the version displayed in the Kernel field.

  2. In the SUSE Multi-Linux Manager Web UI, select the client from Systems  Overview, navigate to the Software  Manage  Channels tab, and select dev-sles15-sp7-updates-x86_64. Navigate to the Patches tab, and click List/Remove Patches.

  3. In the search bar, type kernel and identify the kernel version that matches the kernel currently used by your client.

  4. 現在インストールされているカーネルより新しいすべてのカーネルバージョンを削除します。

Your channel is now set up for live patching, and can be promoted to testing. In this procedure, you also add the live patching child channels to your client, ready to be applied.

プロシージャ: ライブパッチ処理チャンネルのプロモート
  1. At the command prompt on the client, as root, promote and clone the dev-sles15-sp7-pool-x86_64 channel to a new testing channel:

    # spacewalk-manage-channel-lifecycle --promote -c dev-sles15-sp7-pool-x86_64
  2. SUSE Multi-Linux Manager Web UIで、システム  概要からクライアントを選択し、ソフトウェア  ソフトウェアチャンネルタブに移動します。

  3. Check the new test-sles15-sp7-pool-x86_64 custom channel to change the base channel, and check both corresponding live patching child channels.

  4. 次へをクリックして、詳細が正しいことを確認して、確認をクリックして、変更を保存します。

これで、使用できるCVEパッチを選択して表示し、ライブパッチ処理でこれらの重要なカーネル更新を適用できるようになりました。