질문
kdump.service
Google Cloud의 CentOS 8 가상 머신에서 시작할 수 없습니다. 서비스를 다시 시작하면 동일한 오류가 계속 발생합니다.
문제를 일으키는 것 같 secure boot
거나 적어도 그와 관련이 있는 것 같습니다. 필수 키를 로드할 수 없습니다.
이것해결책CentOS 7에서는 이 문제가 해결되지 않습니다. 패키지 kexec-tools
, crash
및가 kernel-debug
설치되었습니다.
이 문제를 어떻게 해결할 수 있나요? 감사해요.
기술적인 세부 사항은 다음과 같습니다.
환경
- Google Cloud의 CentOS 8 가상 머신 인스턴스
- 운영 체제 버전:
CentOS Linux release 8.2.2004 (Core)
- 커널 버전:
4.18.0-193.19.1.el8_2.x86_64
세부 사항
systemctl status kdump.service
산출:
kdump.service - Crash recovery kernel arming
Loaded: loaded (/usr/lib/systemd/system/kdump.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2020-10-19 23:18:32 UTC; 2min 2s ago
Process: 131082 ExecStart=/usr/bin/kdumpctl start (code=exited, status=1/FAILURE)
Main PID: 131082 (code=exited, status=1/FAILURE)
Oct 19 23:18:28 my_hostname systemd[1]: Starting Crash recovery kernel arming...
Oct 19 23:18:32 my_hostname kdumpctl[131082]: Secure Boot is enabled. Using kexec file based syscall.
Oct 19 23:18:32 my_hostname kdumpctl[131082]: kexec_file_load failed: Required key not available
Oct 19 23:18:32 my_hostname kdumpctl[131082]: kexec: failed to load kdump kernel
Oct 19 23:18:32 my_hostname kdumpctl[131082]: Starting kdump: [FAILED]
Oct 19 23:18:32 my_hostname systemd[1]: kdump.service: Main process exited, code=exited, status=1/FAILURE
Oct 19 23:18:32 my_hostname systemd[1]: kdump.service: Failed with result 'exit-code'.
Oct 19 23:18:32 my_hostname systemd[1]: Failed to start Crash recovery kernel arming.
journalctl -xe
산출:
Oct 19 23:18:32 my_hostname kdumpctl[131082]: Secure Boot is enabled. Using kexec file based syscall.
Oct 19 23:18:32 my_hostname kdumpctl[131082]: kexec_file_load failed: Required key not available
Oct 19 23:18:32 my_hostname kdumpctl[131082]: kexec: failed to load kdump kernel
Oct 19 23:18:32 my_hostname kdumpctl[131082]: Starting kdump: [FAILED]
Oct 19 23:18:32 my_hostname systemd[1]: kdump.service: Main process exited, code=exited, status=1/FAILURE
Oct 19 23:18:32 my_hostname systemd[1]: kdump.service: Failed with result 'exit-code'.
Oct 19 23:18:32 my_hostname systemd[1]: Failed to start Crash recovery kernel arming.
-- Subject: Unit kdump.service has failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- Unit kdump.service has failed.
--
-- The result is failed.
Oct 19 23:18:32 my_hostname sudo[131078]: pam_unix(sudo:session): session closed for user root
cat /proc/keys
산출:
00e8d728 I--Q--- 14 perm 3f030000 1002 10 keyring _ses: 1
029d6be0 I--Q--- 1 perm 1f3f0000 1002 65534 keyring _uid_ses.1002: 1
321674d8 I--Q--- 11 perm 3f030000 1002 10 keyring _ses: 1
37bb77f9 I--Q--- 3 perm 1f3f0000 1002 65534 keyring _uid.1002: empty
3b9154f0 I--Q--- 8 perm 3f030000 1002 10 keyring _ses: 1
rpm -q kexec-tools
산출:
kexec-tools-2.0.20-14.el8.x86_64