NVP-vProxy:备份标记为失败,但所有虚拟机都成功 “找不到 ID 为 ”vm-MOREF“ 的选定 vCenter 容器工作项
Summary: NetWorker VMware Protection (NVP) 备份策略标记为失败,但所有虚拟机 (VM) 都成功。策略摘要中显示错误:在 vCenter 中找不到 ID 为“vm-MOREF”的选定 vCenter 容器工作项,将跳过该工作项。
Symptoms
NetWorker VMware Protection (NVP) 集成已通过 vProxy 设备进行配置。
NetWorker Management Console (NMC) 的“监视”选项卡显示处于失败状态的 VMware 策略工作流,但所有虚拟机均已成功备份。
VMware 保护组使用“与规则的动态关联”进行配置,以确定哪些虚拟机和容器在组中是动态的。
备份摘要显示以下错误:
在 NetWorker 服务器上的备份作日志中也可以看到该错误:
- Linux:/nsr/logs/policy/POLICY_NAME/WORKFLOW_NAME/ACTION_JOBID.raw
- Windows(默认):C:\Program Files\EMC NetWorker\nsr\logs\policy\POLICY_NAME\WORKFLOW_NAME\ACTION_JOBID。生
- NetWorker:如何使用nsr_render_log呈现.raw日志文件
[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:
- 打开与 vCenter 上的其中一个 vProxy 的 SSH 会话,然后以管理员身份登录。
- 切换到 root:
sudo su - - 转至 vProxy bin 目录:
cd /opt/emc/vproxy/bin - 加载 vProxy 环境变量文件:
source /opt/emc/vproxy/unit/vproxy.env - 运行以下命令,将 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):
- 打开 Web 浏览器并输入以下 URL,将 值 S替换为特定于环境的 URL:
https://VCENTER_ADDRESS/mob/?moid=VM-MOREF - 出现提示时,输入您的 vCenter 用户凭据。
示例:

NetWorker 保护组中配置的规则会在备份时动态选取虚拟机。选取 VMware 模板虚拟机,因为存在包含虚拟机模板的规则集。例如:
- 有一个
VirtualMachine基于名称的规则集,以包括包含特定字符串的虚拟机。模板字符串匹配。 - 有一个
VmFolder基于名称的规则集,用于排除 VMware 中的某些“虚拟机和模板”文件夹。虚拟机模板不在 VMware 文件夹中,并且作为工作流的一部分进行选取。
NetWorker 不支持 VMware 模板的备份。工作流发出警告,指出虚拟机已被跳过,因为它不受支持。工作流标记为失败,以便采取纠正行动以将其从基于规则的选择中删除。
Resolution
虚拟机模板必须从动态选择中排除。
更新 NetWorker 保护组使用的“规则”。以下是如何从动态选择中删除模板的一些示例。可以配置一个或多个规则,具体取决于 VMware 环境以及您希望如何管理基于规则的动态选择。用于阻止模板的方法由 VMware 和 NetWorker 管理员决定。
- 将 VMware 模板移动到 VMware 中的特定文件夹。在 NetWorker 中创建 基于名称 的规则,以不在备份中包含该文件夹。
- 如果模板虚拟机包含通用字符串(例如:template)。创建 基于名称 的规则,以不包含包含该字符串的虚拟机。
- 在 VMware 中,创建类别标签并将该标签分配给模板虚拟机。此作必须由 VMware 管理员完成。在 NetWorker 中,创建 基于标记 的规则,以不包括具有该标记的虚拟机或模板。

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