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

在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

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

上一篇:MySQL的左外连接


下一篇:IntelliJ IDEA中JAVA连接MYSQL