Join this episode for more Stories from the EUC Road as Sean Donahue (Nutanix) and Al Solorzano (E360) tackle this all too familiar question. But does it have to an \u201cOR\u201d statement? Can you have an \u201cAND\u201d statement instead? Tune in to learn more about performance in EUC, happy employees and how you might sleep better at night in the age of Malware and Ransomware.<\/p><\/oembed>

Resources<\/p>

问题

如何为Linux Guest VM生成崩溃转储文件

  • 2020年11月10日
  • 0答复
  • 300次观看

UserLevel 2
徽章 +2
  • Nutanix员工
  • 12个答复

激活Linux Guest VM上的SYSRQ

  1. 登录到Linux Guest VM作为root用户,并如下检查“ SYSRQ”的值。

[root@linuxvm〜]#cat/proc/sys/kernel/sysrq

16

默认值为16,代表“启用同步命令”。

  1. 将“ sysrq”的值从“ 16”修改为“ 1”。“ 1”是指“启用SYSRQ中的所有功能

根据情况,我们可以将此值设置为持久或非持久性

非持久

[root@linuxvm〜]#echo“ 1”>/proc/sys/kernel/sysrq

永久 - 将需要重新启动才能应用更改

[root@linuxvm〜]#echo“ kernel.sysrq = 1” >> /etc/sysctl.d/99-sysctl.conf
  1. 查看 ”sysrq”再次价值
[root@linuxvm〜]#cat/proc/sys/kernel/sysrq
  1. 查找Linux VM正在运行的AHV主机

nutanix@cvm:〜$ acli vm.get  |GREP HOST_NAME

host_name:“ x.x.x.x”
  1. CVM从任何CVM中检查Linux Guest VM的UUID

nutanix@cvm:〜$ acli vm.list |grep 

LinuxVM 66551923-EB86-4C69-933B-ECF15EC5F59C
  1. 在下面的命令下运行,以在“步骤5”中确认了Grepping VM的UUID来找出Linux Guest VM的域ID。

root@ahv〜]#virsh列表|GREP 66551923-EB86-4C69-933B-ECF15EC5F59C

104 66551923-EB86-4C69-933B-ECF15EC5F59C运行
  1. 在AHV主机上运行命令,以迫使Linux Guest VM Panic使用“步骤6”确认的域ID。
[root@ahv〜]#virsh send-key 104 key_leftalt key_sysrq key_c
  1. 重新启动Linux Guest VM后,登录到VM,并检查“/var/crash”下的转储文件是否可用
[root@linuxvm〜]#PWD

/var/崩溃
[root@linuxvm〜]#ls -alt

127.0.0.1-2020-03-11-09:07:26
[root@linuxvm〜]#CD 127.0.0.1-2020-03-11-09:07:26
[root@linuxvm〜]#ls -alst

总计113832

0 drwxr-xr-x。2根44 3月11日09:07。

113044 -RW -------。1根115754458 3月11日09:07 VMCORE

788 -RW-R-R-R--。1根806202 3月11日09:07 vmcore-dmesg.txt

0 drwxr-xr-x。6根154 3月11日09:07 ..

下面的文档中提到了步骤:

Linux VM的崩溃转储文件



该主题已关闭以供评论
Learn more about our cookies.<\/a>","cookiepolicy.button":"Accept cookies","cookiepolicy.button.deny":"Deny all","cookiepolicy.link":"Cookie settings","cookiepolicy.modal.title":"Cookie settings","cookiepolicy.modal.content":"We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.<\/a>","cookiepolicy.modal.level1":"Basic
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">
Baidu