이것은 vCenter의 가상 머신(vmware)입니다.
현재 커널3.10.0-862.el7.x86_64
[root@stage ~]# uname -a
Linux stage.dsr.FILTERED.net 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@stage ~]# hostnamectl
Static hostname: stage.dsr.FILTERED.net
Icon name: computer-vm
Chassis: vm
Machine ID: 4121FILTERED1663
Boot ID: b264FILTEREDa2dc
Virtualization: vmware
Operating System: CentOS Stream 8
CPE OS Name: cpe:/o:centos:centos:8
Kernel: Linux 3.10.0-862.el7.x86_64
Architecture: x86-64
최신 커널 설치
sudo dnf --enablerepo=elrepo-kernel install kernel-ml kernel-ml-devel kernel-ml-headers
[root@stage ~]# sudo dnf --enablerepo=elrepo-kernel install kernel-ml kernel-ml-devel kernel-ml-headers
Last metadata expiration check: 0:36:34 ago on Tue 21 Jun 2022 23:59:55 BST.
Package kernel-ml-5.18.5-1.el8.elrepo.x86_64 is already installed.
Package kernel-ml-devel-5.18.5-1.el8.elrepo.x86_64 is already installed.
Package kernel-ml-headers-5.18.5-1.el8.elrepo.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
사용 가능한 이미지 확인/boot
[root@stage boot]# ls -al
total 91212
dr-xr-xr-x. 6 root root 272 Jun 22 00:06 .
dr-xr-xr-x. 17 root root 224 Jun 22 00:01 ..
drwxr-xr-x. 3 root root 17 Aug 30 2018 efi
drwxr-xr-x. 2 root root 6 Jun 22 00:07 grub
drwx------. 5 root root 156 Jun 21 23:48 grub2
-rw-------. 1 root root 55388571 Aug 30 2018 initramfs-0-rescue-4121a368f8744621872224e7593f1663.img
-rw-------. 1 root root 12508372 Jun 7 18:44 initramfs-3.10.0-862.el7.x86_64kdump.img
-rw-------. 1 root root 19272908 Jun 22 00:06 initramfs-5.18.5-1.el8.elrepo.x86_64.img
drwxr-xr-x. 3 root root 21 Jun 21 23:48 loader
-rwxr-xr-x. 1 root root 6224704 Aug 30 2018 vmlinuz-0-rescue-4121a368f8744621872224e7593f1663
기본 커널 나열
[root@stage boot]# grubby --default-kernel
/boot/vmlinuz-0-rescue-4121a368f8744621872224e7593f1663
사용 가능한 목록
[root@stage boot]# ls -l /boot/vmlinuz-*
-rwxr-xr-x. 1 root root 6224704 Aug 30 2018 /boot/vmlinuz-0-rescue-4121a368f8744621872224e7593f1663
단 하나의 항목 만!
RPM 커널 패키지 나열
[root@stage boot]# rpm -qa | grep kernel
kernel-ml-devel-5.18.5-1.el8.elrepo.x86_64
kernel-ml-headers-5.18.5-1.el8.elrepo.x86_64
kernel-ml-modules-5.18.5-1.el8.elrepo.x86_64
kernel-ml-5.18.5-1.el8.elrepo.x86_64
kernel-ml-core-5.18.5-1.el8.elrepo.x86_64
5.18.5-1.el8.elrepo.x86_64
새로운 기본 커널을 설치하고 설정하는 방법은 무엇입니까 ?
어떤 조언이라도 환영합니다
20220622 업데이트
[root@stage ~]# dracut --force
dracut: Cannot find module directory /lib/modules/3.10.0-862.el7.x86_64/
dracut: and --no-kernel was not specified
또한 시도
dracut --kver 5.18.5-1.el8.elrepo.x86_64 --force
dracut --regenerate-all --force
하지만 내 폴더 vmlinuz-
에는 여전히 동일한 항목이 하나만 있습니다./boot
[root@stage boot]# ls -al
drwxr-xr-x. 3 root root 17 Aug 30 2018 efi
drwxr-xr-x. 2 root root 6 Jun 22 00:07 grub
drwx------. 5 root root 156 Jun 22 16:44 grub2
-rw-------. 1 root root 55388571 Aug 30 2018 initramfs-0-rescue-4121a368f8744621872224e7593f1663.img
-rw-------. 1 root root 12508372 Jun 7 18:44 initramfs-3.10.0-862.el7.x86_64kdump.img
-rw-------. 1 root root 19457348 Jun 22 17:32 initramfs-5.18.5-1.el8.elrepo.x86_64.img
drwxr-xr-x. 3 root root 21 Jun 21 23:48 loader
-rwxr-xr-x. 1 root root 6224704 Aug 30 2018 vmlinuz-0-rescue-4121a368f8744621872224e7593f1663
답변1
커널 파일이 누락된 것 같습니다.
커널을 다시 설치해 보세요
dnf remove kernel-ml
dnf --enablerepo=elrepo-kernel install kernel-ml
커널 5.x가 기본값이어야 합니다.
통과 확인
grubby --default-kernel
그렇지 않은 경우 수동으로 설정하십시오.
grubby --set-default /boot/vmlinuz-5.xxx.el8.elrepo.x86_64
답변2
시도 dracut --force
하고grub2-mkconfig