vcenter环境启动linux操作系统遇到的一些问题

简介: 在vcenter环境中 安装完linux操作系统,启动时会遇到一些错误,如下 Memory for crash kernel (0x0 to 0x0) notwithin permissible range Cannot setup NMI watchdog on CPU 0 Cannot

在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

一 Memory for crash kernel

Memory for crash kernel (0x0 to 0x0) notwithin permissible range


这个信息由于没有配置kdump服务的原因,并没有什么危害可以忽略。kdump是一个新的,而且非常可信赖的内核崩溃转储机制。


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

二  Cannot setup NMI watchdog on CPU

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


这个问题是由于,一些操作系统默认启用了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.

Resolution

To resolve this issue, disable NMI if it has been enabled in the guest by default.

To disable NMI:

  1. Open a vSphere console or SSH session to the Linux virtual machine.
  2. 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.

  3. 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


  4. Save the configuration file changes using :wq. For more information, see Editing files on an ESX host using vi or nano (1020302).
  5. 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:
  1. Choose the cluster and click Edit Settings.
  2. Select VM Monitoring.
  3. Select VM Monitoring Only from the dropdown
  4. Under Virtual Machine Settings:
    1. Select the virtual machine to monitor.
    2. From the dropdown, select the appropriate settings for your environment. For more information, see:

    3. Click OK.

参考:

https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2031297

三  warning: pci_mmcfg_int

warning: pci_mmcfg_int marking 256MB space uncacheable

这个问题还没有解决,高手在哪里?

目录
相关文章
|
18天前
|
NoSQL 关系型数据库 Redis
mall在linux环境下的部署(基于Docker容器),Docker安装mysql、redis、nginx、rabbitmq、elasticsearch、logstash、kibana、mongo
mall在linux环境下的部署(基于Docker容器),docker安装mysql、redis、nginx、rabbitmq、elasticsearch、logstash、kibana、mongodb、minio详细教程,拉取镜像、运行容器
mall在linux环境下的部署(基于Docker容器),Docker安装mysql、redis、nginx、rabbitmq、elasticsearch、logstash、kibana、mongo
|
8天前
|
存储 安全 Linux
探索Linux操作系统的心脏:内核
在这篇文章中,我们将深入探讨Linux操作系统的核心—内核。通过简单易懂的语言和比喻,我们会发现内核是如何像心脏一样为系统提供动力,处理数据,并保持一切顺畅运行。从文件系统的管理到进程调度,再到设备驱动,我们将一探究竟,看看内核是怎样支撑起整个操作系统的大厦。无论你是计算机新手还是资深用户,这篇文章都将带你领略Linux内核的魅力,让你对这台复杂机器的内部运作有一个清晰的认识。
25 3
|
8天前
|
存储 数据挖掘 Linux
服务器数据恢复—Linux操作系统网站服务器数据恢复案例
服务器数据恢复环境: 一台linux操作系统服务器上跑了几十个网站,服务器上只有一块SATA硬盘。 服务器故障: 服务器突然宕机,尝试再次启动失败。将硬盘拆下检测,发现存在坏扇区
|
24天前
|
前端开发 Linux
深度探索Linux操作系统 —— 构建桌面环境3
深度探索Linux操作系统 —— 构建桌面环境
29 12
|
17天前
|
Shell Linux API
C语言在linux环境下执行终端命令
本文介绍了在Linux环境下使用C语言执行终端命令的方法。首先,文章描述了`system()`函数,其可以直接执行shell命令并返回结果。接着介绍了更强大的`popen()`函数,它允许程序与命令行命令交互,并详细说明了如何使用此函数及其配套的`pclose()`函数。此外,还讲解了`fork()`和`exec`系列函数,前者创建新进程,后者替换当前进程执行文件。最后,对比了`system()`与`exec`系列函数的区别,并针对不同场景推荐了合适的函数选择。
|
24天前
|
存储 缓存 Linux
深度探索Linux操作系统 —— Linux图形原理探讨3
深度探索Linux操作系统 —— Linux图形原理探讨
28 9
|
24天前
|
存储 Linux 图形学
深度探索Linux操作系统 —— Linux图形原理探讨1
深度探索Linux操作系统 —— Linux图形原理探讨
27 7
|
20天前
|
安全 Linux 开发工具
探索Linux操作系统:从命令行到脚本编程
【8月更文挑战第31天】在这篇文章中,我们将一起潜入Linux操作系统的海洋,从最基础的命令行操作开始,逐步深入到编写实用的脚本。无论你是初学者还是有一定经验的开发者,这篇文章都将为你提供新的视角和实用技能。我们将通过实际代码示例,展示如何在日常工作中利用Linux的强大功能来简化任务和提高效率。准备好了吗?让我们一起开启这段旅程,探索Linux的奥秘吧!
|
21天前
|
存储 人工智能 数据管理
深入理解Linux操作系统之文件系统管理探索人工智能:从理论到实践的旅程
【8月更文挑战第30天】在探索Linux的无限可能时,我们不可避免地会遇到文件系统管理这一核心话题。本文将深入浅出地介绍Linux文件系统的基础知识、操作命令及高级技巧,帮助你更有效地管理和维护你的系统。从基础概念到实践应用,我们将一步步揭开Linux文件系统的神秘面纱。
|
24天前
|
Linux API 图形学
深度探索Linux操作系统 —— Linux图形原理探讨2
深度探索Linux操作系统 —— Linux图形原理探讨
22 3