启动RHEL Linux虚拟机提示:Cannot setup NMI watchdog on CPU

故障状态& [2 x+ k8 u1 s' ~
启动RHEL的Linux虚拟机时,Console提示如下信息:

  1. Cannot setup NMI watchdog on CPU 02 q+ W2 P1 N. Z9 [
  2. Cannot setup NMI watchdog on CPU 12 O+ p. ^# ?1 o1 Z. Q
  3. Cannot setup NMI watchdog on CPU 2
  4. Cannot setup NMI watchdog on CPU 3

复制代码

故障分析主要时部分Linux操作系统却升级活了支持Non Maskable Interrupt(NMI),而它会依赖硬件watchdog服务来监控系统是否由于硬件故障导致的异常;, G) l6 |$ ^  H+ t! T0 W% N
, Y$ T9 l' E9 K$ ?
不是所有硬件都支持NMI的,因此,当虚拟机选择最新的8和7这个虚拟机硬件版本时,容易出现这个问题;/ u2 T2 x+ S$ b; d  D& G7 b; p
: `4 {  ]- t, ~$ f2 U$ d
解决方案
关闭掉这个Non Maskable Interrupt(NMI)功能,步骤如下:% d  W( X1 t6 k% T/ S4 g
1、进入到这台Linux虚拟机的命令行界面,然后运行如下命令:

  1. #vi /boot/grub/menu.lst

复制代码

2、在打开的文件里,更改nmi_watchdog的值,从1改为0,例如:

  1. t itle Red Hat Enterprise Linux Server (2.6.18-128.el5)
  2. root (hd0,0)
  3. kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/sda nmi_watchdog=0$ x- v" r9 N( J0 _9 Z( U
  4. initrd /initrd-2.6.18-128.el5.img

复制代码

3、保存退出后重启虚拟机再观察是否正常。

 

 

 

 

 

 

 

 

 

 

 

好吧,我冒充大神给你解释一下。上面的英文特别有意思。
Memory for crash kernel (0x0 to 0x0) notwithin permissible range
原因是没有配置kdump服务。这个不影响系统,可以忽略


Cannot setup NMI watchdog on CPU 0

意思是非屏蔽中断看门狗机制不能成功安装。 这个NMI Watchdog的机制说白了就是防止系统内核死循环而屏蔽中断的。

如果上面的内容看不懂也没关系,我可以告诉你通俗的答案:就是你的硬件不支持NMI的,就出现这个问题。 你可以在/boot/grub/menu.lst 更改nmi_watchdog的值,从1改为0,如果没有这个参数,自行添加。然后测试一下,GOOD LUCK。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
为什么会这样[user_mongo@nosql01 replicaset]$ cd /opt [user_mongo@nosql01 opt]$ ll total 0 drwxr-xr-x. 3 root root 25 Mar 16 17:08 servers drwxr-xr-x. 2 root root 51 Mar 16 17:10 software [user_mongo@nosql01 opt]$ tar -zxvf /opt/software/mongodb-linux-x86_64-rhel70-4.4.12.tgz -C /opt/servers/mongodb_demo/replicaset/ mongodb-linux-x86_64-rhel70-4.4.12/LICENSE-Community.txt tar: mongodb-linux-x86_64-rhel70-4.4.12: Cannot mkdir: Permission denied tar: mongodb-linux-x86_64-rhel70-4.4.12/LICENSE-Community.txt: Cannot open: No such file or directory mongodb-linux-x86_64-rhel70-4.4.12/MPL-2 tar: mongodb-linux-x86_64-rhel70-4.4.12: Cannot mkdir: Permission denied tar: mongodb-linux-x86_64-rhel70-4.4.12/MPL-2: Cannot open: No such file or directory mongodb-linux-x86_64-rhel70-4.4.12/README tar: mongodb-linux-x86_64-rhel70-4.4.12: Cannot mkdir: Permission denied tar: mongodb-linux-x86_64-rhel70-4.4.12/README: Cannot open: No such file or directory mongodb-linux-x86_64-rhel70-4.4.12/THIRD-PARTY-NOTICES tar: mongodb-linux-x86_64-rhel70-4.4.12: Cannot mkdir: Permission denied tar: mongodb-linux-x86_64-rhel70-4.4.12/THIRD-PARTY-NOTICES: Cannot open: No such file or directory mongodb-linux-x86_64-rhel70-4.4.12/bin/install_compass tar: mongodb-linux-x86_64-rhel70-4.4.12: Cannot mkdir: Permission denied tar: mongodb-linux-x86_64-rhel70-4.4.12/bin/install_compass: Cannot open: No such file or directory mongodb-linux-x86_64-rhel70-4.4.12/bin/mongo tar: mongodb-linux-x86_64-rhel70-4.4.12: Cannot mkdir: Permission denied tar: mongodb-linux-x86_64-rhel70-4.4.12/bin/mongo: Cannot open: No such file or directory mongodb-linux-x86_64-rhel70-4.4.12/bin/mongod tar: mongodb-linux-x86_64-rhel70-4.4.12: Cannot mkdir: Permission denied tar: mongodb-linux-x86_64-rhel70-4.4.12/bin/mongod: Cannot open: No such file or directory mongodb-linux-x86_64-rhel70-4.4.12/bin/mongos tar: mongodb-linux-x86_64-rhel70-4.4.12: Cannot mkdir: Permission denied tar: mongodb-linux-x86_64-rhel70-4.4.12/bin/mongos: Cannot open: No such file or directory tar: Exiting with failure status due to previous errors [user_mongo@nosql01 opt]$ tar -zcvf /opt/software/mongodb-linux-x86_64-rhel70-4.4.12.tgz -C /opt/servers/mongodb_demo/replicaset/ tar: Cowardly refusing to create an empty archive Try `tar --help' or `tar --usage' for more information.
最新发布
06-01

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值