ESXi/ESX 主机报告警示:无法在主机上应用 DRS 设置。父资源池中的可用 CPU 资源不足,无法执行该操作 (Unable to apply DRS settings on host. The available CPU resources in the parent resource pool are insufficient for the operation)
search cancel

ESXi/ESX 主机报告警示:无法在主机上应用 DRS 设置。父资源池中的可用 CPU 资源不足,无法执行该操作 (Unable to apply DRS settings on host. The available CPU resources in the parent resource pool are insufficient for the operation)

book

Article ID: 339036

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

Symptoms:
免责声明:本文为 ESXi/ESX host reports the alert: 无法在主机上应用 DRS 设置。The available CPU resources in the parent resource pool are insufficient for the operation (2044635) 的翻译版本。尽管我们会不断努力为本文提供最佳翻译版本,但本地化的内容可能会过时。有关最新内容,请参见英文版本。


  • ESX/ESXi 主机在“摘要”选项卡中报告此警示:

    无法在主机上应用 DRS 设置。父资源池中的可用 CPU 资源不足,无法执行该操作 (Unable to apply DRS settings on host. The available CPU resources in the parent resource pool are insufficient for the operation)。
  • 在 /var/log/hostd.log 文件中,您会看到类似以下内容的条目:

    2013-02-05T03:39:02.327Z [58597B90 info 'TaskManager' opID=HB-host-47@98-33a6b6f7-4f] Task Created : haTask-ha-root-pool-vim.ResourcePool.updateChildResourceConfiguration-321049836
    2013-02-05T03:39:02.328Z [58597B90 info 'vm:/vmfs/volumes/50b3185d-da6a6a33-6bc5-00215e4cb5da/example-domain.com/example-domain.com.vmx' opID=HB-host-47@98-33a6b6f7-4f] State Transition (VM_STATE_ON -> VM_STATE_RECONFIGURING)
    2013-02-05T03:39:02.328Z [58597B90 warning 'HostsvcPlugin' opID=HB-host-47@98-33a6b6f7-4f] CPU/Memory resource update failed: Sysinfo error on operation returned status : Admission check failed for cpu resource. Please see the VMkernel log for detailed error information
    2013-02-05T03:39:02.328Z [58597B90 info 'vm:/vmfs/volumes/50b3185d-da6a6a33-6bc5-00215e4cb5da/example-domain.com/example-domain.com.vmx' opID=HB-host-47@98-33a6b6f7-4f] RsrcMgr failed to update resource config: vim.fault.InsufficientCpuResourcesFault
    2013-02-05T03:39:02.330Z [58340B90 info 'Hbrsvc'] Replicator: powerstate change VM: 3 Old: 1 New: 1
    2013-02-05T03:39:02.330Z [58340B90 verbose 'Hbrsvc'] Replicator: Remove group no matching entry for VM (id=3)
    2013-02-05T03:39:02.330Z [58340B90 verbose 'vim.PerformanceManager'] Adding vm 3 to poweredOnVms list
    2013-02-05T03:39:02.330Z [58597B90 info 'Vmomi' opID=HB-host-47@98-33a6b6f7-4f] Throw vim.fault.InsufficientCpuResourcesFault
    2013-02-05T03:39:02.332Z [58597B90 info 'Vmomi' opID=HB-host-47@98-33a6b6f7-4f] Result:
    --> (vim.fault.InsufficientCpuResourcesFault) {
    --> dynamicType = <unset>,
    --> faultCause = (vmodl.MethodFault) null,
    --> faultMessage = (vmodl.LocalizableMessage) [
    --> (vmodl.LocalizableMessage) {
    --> dynamicType = <unset>,
    --> key = "vob.sched.group.cpu.admitfailed",
    --> arg = (vmodl.KeyAnyValue) [
    --> (vmodl.KeyAnyValue) {
    --> dynamicType = <unset>,
    --> key = "1",
    --> value = "vm.4972",
    --> },
    --> (vmodl.KeyAnyValue) {
    --> dynamicType = <unset>,
    --> key = "2",
    --> value = "4096",
    --> },
    --> (vmodl.KeyAnyValue) {
    --> dynamicType = <unset>,
    --> key = "3",
    --> value = "mhz",
    --> }
    --> ],
    --> message = "Group vm.4972: Can't admit VM: CPU admission check failed. Invalid reservation 4096 mhz
    --> ",
    --> }
    --> ],
    --> unreserved = -1,
    --> requested = -1,
    --> msg = ""


Environment

VMware ESX 4.1.x
VMware ESX 4.0.x
VMware ESXi 4.1.x Embedded
VMware vSphere ESXi 5.1
VMware ESXi 4.0.x Installable
VMware vSphere ESXi 5.0
VMware vSphere ESXi 6.0
VMware vCenter Server 6.0.x
VMware ESXi 4.0.x Embedded
VMware vCenter Server 5.1.x
VMware ESXi 4.1.x Installable

Cause

设置虚拟机的 CPU/内存预留时显示此警示,但是 ESX/ESXi 主机没有足够的资源来分配预留资源。

Resolution

要解决此问题,可以减少 CPU/内存预留或移除预留。

要移除或减少预留,请执行以下操作:
  1. 从日志文件中找到导致此问题的虚拟机。
  2. 在 vSphere Client 中,右键单击虚拟机,然后单击编辑设置
  3. 单击资源选项卡。
  4. 减少预留的 CPU/内存值或将其设为0以移除预留。
  5. 单击确定

    虚拟机会重新配置,您不应再在摘要选项卡中看到警示。


Additional Information

ESXi/ESX host reports the alert: Unable to apply DRS settings on host. The available CPU resources in the parent resource pool are insufficient for the operation