在vcenter環境中 安裝完linux作業系統,啟動時會遇到一些錯誤,如下
memory for crash kernel (0x0 to 0x0) notwithin permissible range
cannot setup nmi watchdog on cpu 0
cannot setup nmi watchdog on cpu 1
cannot setup nmi watchdog on cpu 2
cannot setup nmi watchdog on cpu 3
warning: pci_mmcfg_int marking 256mb space uncacheable
我安裝的是rhel5.8
1 在作業系統中配置kdump
配置kdump。
選擇菜單“applications”——“system tools”——“kdump”,彈出“kernel dump
configuration”視窗,選中enable kdump,設定new kdump memory(mb):
128mb(推薦大小),location:file:///var/crash(也可以設定其他位置,用來存放當系統崩潰時的轉儲鏡像)。
2 如果無法進入作業系統,可在啟動過程中設定啟動參數
啟動過程中按 e 修改 kernel 行
添加啟動參數 crashkernel=128m@16m
這個問題是由于,一些作業系統預設啟用了nmi(non maskable interrupt)功能,這個功能依賴硬體watchdog服務來監控系統是否由于硬體故障導緻異常
not
all hardware support nmi. this issue is seen to occur with the latest
virtual machine hardware version 8 and has been reproduced with version 7
also.
vcpus presented to the guest
operating system cannot have nmi enabled on them because they are
abstracted representations of the host's physical cpu cores.
to resolve this issue, disable nmi if it has been enabled in the guest by default.
to disable nmi:
open a vsphere console or ssh session to the linux virtual machine.
run this command inside a terminal:
vi /boot/grub/menu.lst
note : /boot/grub/menu.lst may be a symbolic link to /boot/grub/grub.conf.
at the end of the kernel line, change the parameter value for nmi_watchdog from 1 to 0 (in some cases from 2 to 0).
for example:
t itle red hat enterprise linux server (2.6.18-128.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/sda nmi_watchdog=0
initrd /initrd-2.6.18-128.el5.img
reboot the virtual machine.
the nmi watchdog has now been disabled and boot time messages should not be observed.
if nmi style guest monitoring is desired, customers can utilize the vmware tools heartbeat in ha settings under vm monitoring
to enable vm monitoring:
choose the cluster and click edit settings.
select vm monitoring.
select vm monitoring only from the dropdown
under virtual machine settings:
select the virtual machine to monitor.
from the dropdown, select the appropriate settings for your environment. for more information, see:
click ok.
參考:
https://kb.vmware.com/selfservice/microsites/search.do?language=en_us&cmd=displaykc&externalid=2031297
這個問題還沒有解決,高手在哪裡?