NVP-vProxy:备份标记为失败,但所有虚拟机都成功 “找不到 ID 为 ”vm-MOREF“ 的选定 vCenter 容器工作项

Summary: NetWorker VMware Protection (NVP) 备份策略标记为失败,但所有虚拟机 (VM) 都成功。策略摘要中显示错误:在 vCenter 中找不到 ID 为“vm-MOREF”的选定 vCenter 容器工作项,将跳过该工作项。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

NetWorker VMware Protection (NVP) 集成已通过 vProxy 设备进行配置。
NetWorker Management Console (NMC) 的“监视”选项卡显示处于失败状态的 VMware 策略工作流,但所有虚拟机均已成功备份。
VMware 保护组使用“与规则的动态关联”进行配置,以确定哪些虚拟机和容器在组中是动态的。

规则已分配给 VMware 保护组 

备份摘要显示以下错误:

备份作日志显示已跳过虚拟机容器对象 

在 NetWorker 服务器上的备份作日志中也可以看到该错误:

[root@nsr ~]# nsr_render_log "/nsr/logs/policy/VMware Protection/VMware Protection - Full VM/backup_192212.raw"
151761 09/12/2025 01:08:33 PM  1 5 0 3478079296 18737 0 nsr.amer.lan nsrvproxy_save NSR notice Action backup vmware-vproxy 'backup' has initialized as 'vproxysave job' with job id 192212
204343 09/12/2025 01:08:33 PM  0 26 0 3478079296 18737 0 nsr.amer.lan nsrvproxy_save NSR info Starting nsrvim.
185813 09/12/2025 01:08:33 PM  0 0 0 3478079296 18737 0 nsr.amer.lan nsrvproxy_save NSR info Calling the nsrvim program to collect the inventory data.
185814 09/12/2025 01:08:33 PM  0 0 0 3478079296 18737 0 nsr.amer.lan nsrvproxy_save NSR info Setting default timeout 1800.
185818 09/12/2025 01:08:33 PM  0 0 0 3478079296 18737 0 nsr.amer.lan nsrvproxy_save NSR info Using a timeout of 1800 seconds for the nsrvim request. Minimum timeout is 360 seconds. Maximum timeout is 3600 seconds.
204344 09/12/2025 01:08:34 PM  0 26 0 3478079296 18737 0 nsr.amer.lan nsrvproxy_save NSR info Getting list of VM work items.
0 09/12/2025 01:08:34 PM  1 5 0 3478079296 18737 0 nsr.amer.lan nsrvproxy_save NSR notice 09/12/25 13:08:34.166306 nsrvproxy_save-D0 libCURL SSL support is Enabled.
165099 09/12/2025 01:08:39 PM  3 0 0 3478079296 18737 0 nsr.amer.lan nsrvproxy_save NSR error Unable to find selected vCenter container work item with ID "vm-23014" in vCenter, the work item will be skipped.
165099 09/12/2025 01:08:39 PM  3 0 0 3478079296 18737 0 nsr.amer.lan nsrvproxy_save NSR error Unable to find selected vCenter container work item with ID "vm-23013" in vCenter, the work item will be skipped.
205578 09/12/2025 01:08:39 PM  1 5 0 3478079296 18737 0 nsr.amer.lan nsrvproxy_save NSR notice Transport mode selected from the user for backup: 'Auto'.
205578 09/12/2025 01:08:39 PM  1 5 0 3478079296 18737 0 nsr.amer.lan nsrvproxy_save NSR notice Transport mode selected from the user for backup: 'Auto'.
...

Cause

错误消息报告 VMware 托管对象引用 (MoRef) ID。这些 ID 与 VMware 模板虚拟机相关联。 

使用以下两种方法之一确定此问题:

vProxy vmconfig

  1. 打开与 vCenter 上的其中一个 vProxy 的 SSH 会话,然后以管理员身份登录。
  2. 切换到 root: sudo su -
  3. 转至 vProxy bin 目录: cd /opt/emc/vproxy/bin
  4. 加载 vProxy 环境变量文件: source /opt/emc/vproxy/unit/vproxy.env
  5. 运行以下命令,将 VALUES 替换为您的环境中的相应

./vmconfig -c info -k "vm-MOREF" -l moref -p 'Password-for-vCenter' -u username-for-vCenter -v vcentername

示例:

nsr-vproxy:~ # cd /opt/emc/vproxy/bin
nsr-vproxy:/opt/emc/vproxy/bin # source /opt/emc/vproxy/unit/vproxy.env
nsr-vproxy:/opt/emc/vproxy/bin # ./vmconfig -c info -k "vm-23013" -l moref -p '!Password1' -u networker_user@vsphere.local -v vcsa.amer.lan
VM Config
vCenter: "vcsa.amer.lan", User: "networker_user@vsphere.local", Password: "!Password1", Lookup Mode: "moref", Lookup Key: "vm-23013", HypervisorMode: "vSphere", Command: "info"
Logged into vCenter 'vcsa.amer.lan'.
Connected to session on vCenter 'vcsa.amer.lan' Version '8.0.3 build-24322831, API:8.0.3.0', Uuid:e5390e5f-912e-4818-ad6e-ea9b878ff57d.
Found virtual machine 'win-template' with MORef 'vm-23013'.
vm-23013: Name: "win-template".
vm-23013: CBT Enabled: false.
vm-23013: Migration Enabled: false.
vm-23013: Backup Locked: false.
Disconnected from session on vCenter 'vcsa.amer.lan'.
Logged out from vCenter 'vcsa.amer.lan'.

VMware Managed Object Browser (MOB):

  1. 打开 Web 浏览器并输入以下 URL,将 值 S替换为特定于环境的 URL: https://VCENTER_ADDRESS/mob/?moid=VM-MOREF
  2. 出现提示时,输入您的 vCenter 用户凭据。

示例:

暴徒

提醒:在此实验示例中,模板是可识别的,因为名称包括“template”;但是,“名称”可能并不总是暗示这一点。您可以通过在 vCenter 清单中找到虚拟机来确认虚拟机是否为模板:

虚拟机模板 

NetWorker 保护组中配置的规则会在备份时动态选取虚拟机。选取 VMware 模板虚拟机,因为存在包含虚拟机模板的规则集。例如: 

  • 有一个 VirtualMachine 基于名称的规则集,以包括包含特定字符串的虚拟机。模板字符串匹配。
  • 有一个 VmFolder 基于名称的规则集,用于排除 VMware 中的某些“虚拟机和模板”文件夹。虚拟机模板不在 VMware 文件夹中,并且作为工作流的一部分进行选取。

NetWorker 不支持 VMware 模板的备份。工作流发出警告,指出虚拟机已被跳过,因为它不受支持。工作流标记为失败,以便采取纠正行动以将其从基于规则的选择中删除。 

 

提醒:静态分配不会出现此问题;这意味着虚拟机被签入到 NetWorker 中的 VMware 保护组中。静态分配方法不会将虚拟机模板作为选项提供。此方法仅备份 NetWorker 组中预定义的虚拟机。

Resolution

虚拟机模板必须从动态选择中排除。 

更新 NetWorker 保护组使用的“规则”。以下是如何从动态选择中删除模板的一些示例。可以配置一个或多个规则,具体取决于 VMware 环境以及您希望如何管理基于规则的动态选择。用于阻止模板的方法由 VMware 和 NetWorker 管理员决定。

 

  • 将 VMware 模板移动到 VMware 中的特定文件夹。在 NetWorker 中创建 基于名称 的规则,以不在备份中包含该文件夹。
    VMFolder 
  • 如果模板虚拟机包含通用字符串(例如:template)。创建 基于名称 的规则,以不包含包含该字符串的虚拟机。
    VM名称 
  • 在 VMware 中,创建类别标签并将该标签分配给模板虚拟机。此作必须由 VMware 管理员完成。在 NetWorker 中,创建 基于标记 的规则,以不包括具有该标记的虚拟机或模板。

标签

提醒:您可以采用其他方法来避免备份模板。上面的示例是说明如何执行此作的一般建议。以上每个示例都显示了特定于实验室的配置,并不代表可在您的环境中使用的确切参数。您必须定义特定于 VMware 环境的规则,以便从保护组中正确筛选出模板虚拟机。


一旦不再通过动态选择选取模板,工作流将标记为成功或失败,具体取决于虚拟机备份完成状态。

Additional Information

Affected Products

NetWorker

Products

NetWorker Family
Article Properties
Article Number: 000168607
Article Type: Solution
Last Modified: 15 Sept 2025
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.