ライブパッチ処理用のチャンネルの設定
完全なカーネルパッケージを更新するたびに再起動が必要です。 したがって、ライブパッチ処理を使用しているクライアントは、割り当てられているチャンネルで新しいカーネルを使用できないことが重要です。 ライブパッチ処理を使用しているクライアントは、ライブパッチ処理チャンネルで実行中のカーネルの更新を取得します。
ライブパッチ処理用のチャンネルを管理するには次の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.
-
クライアントのコマンドプロンプトで、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 -
Use the
spacewalk-manage-channelcommand with theinitargument to automatically create a new development clone of the original vendor channel:spacewalk-manage-channel-lifecycle --init -c sles15-sp7-pool-x86_64
-
Check that
dev-sles15-sp7-updates-x86_64is available in your channel list.
Check the dev cloned channel you created, and remove any kernel updates that require a reboot.
-
Check the current kernel version by selecting the client from , and taking note of the version displayed in the
Kernelfield. -
In the SUSE Multi-Linux Manager Web UI, select the client from , navigate to the tab, and select
dev-sles15-sp7-updates-x86_64. Navigate to thePatchestab, and click List/Remove Patches. -
In the search bar, type
kerneland identify the kernel version that matches the kernel currently used by your client. -
現在インストールされているカーネルより新しいすべてのカーネルバージョンを削除します。
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.
-
At the command prompt on the client, as
root, promote and clone thedev-sles15-sp7-pool-x86_64channel to a newtestingchannel:# spacewalk-manage-channel-lifecycle --promote -c dev-sles15-sp7-pool-x86_64
-
SUSE Multi-Linux Manager Web UIで、からクライアントを選択し、タブに移動します。
-
Check the new
test-sles15-sp7-pool-x86_64custom channel to change the base channel, and check both corresponding live patching child channels. -
次へをクリックして、詳細が正しいことを確認して、確認をクリックして、変更を保存します。
これで、使用できるCVEパッチを選択して表示し、ライブパッチ処理でこれらの重要なカーネル更新を適用できるようになりました。