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:
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 进行验证。