Kernel panic while installing CentOS 7

Issues related to hardware problems
Post Reply
Pengwei Chen
Posts: 2
Joined: 2022/01/05 13:13:25

Kernel panic while installing CentOS 7

Post by Pengwei Chen » 2022/01/05 14:35:16

I am installing CentOS 7 on a new server, but am facing a kernel panic problem.
I downloaded CentOS-7-x86_64-DVD-2009.iso via http://mirrors.aliyun.com/centos/7.9.2009/isos/x86_64/ and made a USB media with Fedora Media Writer on Windows 11 according to the official documentation https://docs.centos.org/en-US/centos/in ... B_Windows/ .
When I used the USB boot option, I saw the Installing CentOS 7 interface successfully. However, the installation failed after I chose installing.

[2.992952] PGD 0
[2.992962] Oops: 0000 [#1] SMP
[2.992986] Modules linked in:
[2.993000] CPU: 3 PID: 1 Comm: swapper/0 Not tainted 3.10.0-1160.e17.x86_64 #1
[2.993029] Hardware name: ASUS System Product Name/ROG STRIX B55O-A GAMING, BIOS 2403 06/15/2021
[2.993064] task: ffff95a7bab88000 ti: ffff95a7bab84000 task.ti: ffff95a7bab84000
[2.993093] RIP: 0010:[<ffffffffa75930ee>] [<ffffffffa7593oee>] vsnprintf+0x4e/0x6a0
[2.993124] RSP: 000:ffff95a7bab87c78 EFLAGS: 00010246
[2.993145] RAX: 0000000000000000 RBX: 0000000000000000 RCX:ffff95a7bab87c88
[2.993173] RDX: OO00000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[2.993201] RBP: ffff95a7bab87c78 RO8: ffff95a7a77f3e18 R09: ffff95a77fc03900
[2.993229] R10: ffffffffa725009a R11: fffff3c80660e400 R12: 0000000000000000
[2.993257] R13: ffff95a7bab87c88 R14: 0000000000000000 R15: 0000000000000000
[2.993285] FS: 00000000000000(0000) GS:ffff95be2e8c0000(0000) knIGS:0000000000000000
[2.993316] CS: 0010 DS: O000 ES: 0000 CRO:0000000080050033
[2.993339] CRZ: OOO0O00000000000 CR3: 0000001304810000 CR4: 0000000000740ee0
[2.993367] PKRU: 00000000
[2.993377] Ca ll Trace
[2.993389] [fffffffa75996be>] kvasprintf+0x4e/oxa0
[2.993410] [fffffffa7588e91>] kobject_set_name_vargs+0x21/0x70
[2.993434] [fffffffa75895fd>] kobject_init_and_add+0x5d/0xb0
[2.993461] [fffffffa74289c6>] ? kmem_cache_alloc_trace+Ox1ld6/0x200
[2.993490] [fffffffa725009a>] ? allocate_threshold_blocks+0x11a/0x2d0
[2.993517] [fffffffa72501ab>] allocate_threshold_blocks+0x22b/0x2d0
[2.993543] [fffffffa7250425>] threshold_create_ device+0x1d5/0x360
[2.993569] [fffffffa7f9c403>] ? mcheck_vendor_init_severity+0x1a/0x1a
[2.993595] [fffffffa7f9c439>] threshold_init_device+0x36/0x62
[2.993620] [fffffffa720210a>] do_one_initcall+0xba/0x240
[2.993642] [fffffffa7f8b39a>] kernel _init_ freeable+oxlaa/0x249
[2.993666] [fffffffa7f8ab28>] ? initcall_blacklist+0xb0/0xb0
[2.993690] [fffffffa796f9d0>] ? rest_init+0x80/0x80
[2.993710] [fffffffa796f9de>] kernel_init+0xe/0x100
[2.993732] [fffffffa7993de4>] ret_from_fork_nospec_begin+0xe/0x21
[2.993757] [fffffffa796f9d0>] ? rest_init+0x80/0x80
[2.993777] Code: 00 00 00 48 89 45 d0 31 c0 85 f6 0f 88 43 00 00 4c 8b 65 c0 48 89 fb 49 89 d7 49 89 cd 49 01 fc 0f 82 96 03 00 00 48 89 7d b8 <41> 0f b6 07 66 0f 1f 44 00 00 84 c0 74 54 48 8d 75 c8 4c 89 ff
[2.993929] RIP [<ffffffffa75930ee>] vsnprintf+0x4e/0x6a0
[2.994763] RSP <ffff95a7bab87c18>
[2.995572] CR2: 0000000000000000
[2.9964366] ---[ end trace ef71469355c50901 ] ---
[2.997155] Kernel panic - not syncing : Fatal exception
[2.999612] Kernel Offset: 0x26200000 from 0xfffffff81000000 (relocation range: Oxffffffff8OOOOOOO-Oxffffffffbfffffff)

From the exception interface, I guessed that was a conflict between the kernel and a hardware driver, especially that of the CPU. I tried to turn off the onboard LAN and audio, but that didn't help at all.
Using an older version of CentOS 7 may help, but I am really unwilling to do this.
I would be grateful if anyone can give me some advice.
CPU: AMD Ryzen 9 5950
Motherboard: ASUS ROG STRIX B550-A GAMING
Display card: GT710-SL-2GD5-BRK
In addition, the server works well with previously installed Windows 10.

User avatar
TrevorH
Site Admin
Posts: 31483
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Kernel panic while installing CentOS 7

Post by TrevorH » 2022/01/05 14:57:24

I am not sure that CentOS 7 will work with a Ryzen 5xxxX processor, the code is too old and the processor is too new. You can try adding iommu=pt to the kernel command line at boot time and also make sure that the IOMMU is enabled in the BIOS settings. I really doubt if an older version is going to work so I don't even think it's worth trying.
CentOS 8 died a premature death at the end of 2021 - migrate to Rocky/Alma/OEL/Springdale ASAP.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are dead, do not use them.
Use the FAQ Luke

Pengwei Chen
Posts: 2
Joined: 2022/01/05 13:13:25

Re: Kernel panic while installing CentOS 7

Post by Pengwei Chen » 2022/01/05 18:11:25

TrevorH wrote:
2022/01/05 14:57:24
I am not sure that CentOS 7 will work with a Ryzen 5xxxX processor, the code is too old and the processor is too new. You can try adding iommu=pt to the kernel command line at boot time and also make sure that the IOMMU is enabled in the BIOS settings. I really doubt if an older version is going to work so I don't even think it's worth trying.
Thanks :D ! I'll try to install CentOS Stream 9.

User avatar
TrevorH
Site Admin
Posts: 31483
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Kernel panic while installing CentOS 7

Post by TrevorH » 2022/01/05 19:56:38

CentOS Stream 9 is effectively an alpha distro (it's a rolling beta of the RHEL 9 beta) and as such is probably not fit for most production use. You could look at Rocky/Alma/OEL or even RHEL (there's a 16 seat free developer subscription) or CentOS Stream 8.
CentOS 8 died a premature death at the end of 2021 - migrate to Rocky/Alma/OEL/Springdale ASAP.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are dead, do not use them.
Use the FAQ Luke

Post Reply

Return to “CentOS 7 - Hardware Support”