使用Veeam V12备份Windows 10的物理机时,出现“Collecting recovery media files Details: Windows recovery image file not found”错误提示,如图1所示。

使用Veeam备份物理机出现“Windows recovery image file not found”的解决办法_veeam


图1 警告

Veeam Agent for Microsoft Windows 在备份作业结束时运行恢复媒体收集过程。此过程使 Veeam Agent for Microsoft Windows 能够为机器生成 Veeam Recovery Media。

恢复媒体收集过程基于可能缺少的 Windows RE/PE 组件。例如:

Windows 10 版本 1809 开始,WinPE 组件是 Windows 评估和部署工具包 (ADK) 的附加组件。

Veeam 代理计算机具有硬件恢复分区,而不是系统分区。

因此,备份作业无法处理 WinRE 映像并显示警告

对于这种情况,通过如下方法检查。

(1)使用管理员身份进入命令提示窗口,使用reagentc /info命令检查 Windows RE 组件的状态,如图2所示。

使用Veeam备份物理机出现“Windows recovery image file not found”的解决办法_veeam_02


图2 Windows RE禁用

(2)执行winver查看当前Windows版本,如图3所示。当前版本为Windows 10 企业版,版本为21H2

使用Veeam备份物理机出现“Windows recovery image file not found”的解决办法_recovery_03


图3 查看Windows版本

(3)加载Windows 10 21H2安装镜像,加载盘符为M盘。执行如下命令查看 install.wim 中的哪个索引 ID 与已安装的 Windows 版本匹配。如图4所示。当前索引ID 2与当前版本匹配。

>dism /get-imageinfo /imagefile:M:\sources\install.wim

使用Veeam备份物理机出现“Windows recovery image file not found”的解决办法_veeam_04


图4 查看索引ID对应版本

(4)在当前计算机上找一个可用空间较大的分区,例如E盘,创建dism文件夹。执行如下命令安装。如图5所示。

DISM /Mount-image /imagefile:M:\sources\install.wim /Index:2 /MountDir:E:\dism /readonly /optimize

使用Veeam备份物理机出现“Windows recovery image file not found”的解决办法_image_05


图5 加载镜像

(5)将 WinRe.wim 和 ReAgent.xml 文件从装载的映像复制到系统的 C:\Windows\System32\Recovery 文件夹,命令如下。如图6所示。

robocopy /MIR E:\dism\Windows\System32\Recovery\ C:\Windows\System32\Recovery

注意:示例命令将使用装载的映像中的内容覆盖

WinRe.wim 是一个系统文件,默认情况下处于隐藏状态,因此,一旦将文件复制到目标位置,您将无法看到该文件。

使用Veeam备份物理机出现“Windows recovery image file not found”的解决办法_recovery_06


图6 复制WinRe.wim文件

(6)使用 REAgentC 启用恢复映像,命令如下。如图7所示。

reagentc /setreimage /path C:\Windows\System32\Recovery

使用Veeam备份物理机出现“Windows recovery image file not found”的解决办法_veeam_07


图7 启用恢复映像

(7)使用 DISM 卸载映像功能,卸载在第4步中装载的映像。卸载后删除在E盘创建的dism文件夹。如图8所示。

Dism /Unmount-image /MountDir:E:\dism /discard

使用Veeam备份物理机出现“Windows recovery image file not found”的解决办法_veeam_08


图8 卸载完成

(8)再次备份,备份成功并收集恢复介质文件完成。如图9所示。

使用Veeam备份物理机出现“Windows recovery image file not found”的解决办法_veeam_09


图9 备份完成