라이브 패치를 위한 채널 설정
전체 커널 패키지를 업데이트할 때마다 재부팅해야 합니다. 그러므로 라이브 패치를 사용하는 클라이언트의 경우 할당된 채널에서 사용할 수 있는 최신 커널이 없는 것이 중요합니다. 라이브 패치를 사용하는 클라이언트에는 라이브 패치 채널에서 실행 중인 커널에 대한 업데이트가 있습니다.
라이브 패치를 위한 채널을 관리하는 두 가지 방법이 있습니다.
컨텐트 라이프싸이클 관리를 사용하여 제품 트리를 복제하고 실행 중인 버전보다 최신인 커널 버전을 제거합니다. 이 절차에 대한 설명은 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.
-
클라이언트의 명령 프롬프트에서 루트 권한으로 현재 패키지 채널 트리를 가져옵니다.
# spacewalk-manage-channel-lifecycle --list-channels Spacewalk 사용자 이름: admin Spacewalk 비밀번호: 채널 트리: 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 패치를 선택하여 볼 수 있으며, 라이브 패치를 사용하여 이러한 중요한 커널 업데이트를 적용할 수 있습니다.