Bug 5768 - [Anolis23 GA][GA][qcow2][arm]使用anolis_23_arm64_20G_alibase_20230703.qcow2创建虚拟机,默认crashkernel无法生成vmcore
Summary: [Anolis23 GA][GA][qcow2][arm]使用anolis_23_arm64_20G_alibase_20230703.qcow2创建虚拟...
Status: RESOLVED FIXED
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: Images&Installations (show other bugs) Images&Installations
Version: 23.0
Hardware: aarch64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: happy_orange
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-07 10:28 UTC by liuyaqing
Modified: 2023-07-10 11:14 UTC (History)
0 users

See Also:


Attachments
默认crashkernel无法生成vmcore (8.05 MB, image/bmp)
2023-07-07 10:28 UTC, liuyaqing
Details

Note You need to log in before you can comment on or make changes to this bug.
Description liuyaqing alibaba_cloud_group 2023-07-07 10:28:23 UTC
Created attachment 830 [details]
默认crashkernel无法生成vmcore

Description of problem:
使用anolis_23_arm64_20G_alibase_20230703.qcow2镜像创建虚拟机,内存大小为3.6G,默认crashkernel下 对应的crashkernel值为192M,无法触发crash,设置256M可以正常生成vmcore

Version-Release number of selected component (if applicable):
5.10.134-14.1.an23.aarch64

Steps to Reproduce:
1.下载anolis_23_arm64_20G_alibase_20230703.qcow2镜像
2.创建虚拟机   virt-install --name qcow2_test --memory 4096 --vcpus=8 --disk path=/disk1/anolis_23_arm64_20G_alibase_20230703.qcow2,format=qcow2,bus=virtio --import --network bridge=virbr0 --os-type generic --graphics vnc,listen=0.0.0.0,port=5962  --noautoconsole

3. systemctl restart kdump.service && echo c >/proc/sysrq-trigger

Actual results:
默认crashkernel下无法生成vmcore

Expected results:
默认crashkernel下正常生成vmcore

Additional info:
Comment 1 happy_orange alibaba_cloud_group 2023-07-10 11:14:17 UTC
arm 中的 crashkernel 值配置进行变更。按照内核组给出来的配置进行修改:

kernel 中的设置:
%ifarch aarch64  \
grubby --update-kernel /boot/vmlinuz-%{KVERREL}%{?1:+%{1}} --args="cgroup.memory=nokmem crashkernel=0M-2G:0M,2G-64G:256M,64G-:384M iommu.passthrough=1 iommu.strict=0"\
%else \
grubby --update-kernel /boot/vmlinuz-%{KVERREL}%{?1:+%{1}} --args="cgroup.memory=nokmem crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M"\
%endif  \
%{nil}

arm 中更新成 0M-2G:0M,2G-64G:256M,64G-:384M 的配置。
使用 https://mirrors.openanolis.cn/anolis/23/Nightly/Images/vm/20230703_2/ 目录下的 vhd 和 qcow2 进行验证。