For an unknown reason Veeam was failing to find the Windows Recovery Image (or it was corrupt?) on two new VMs deployed as a SQL Server Failover Cluster.
After working with Support and researching how to repair/rebuild the recovery environment I combined KB 2685 with Microsoft's "Deploying WindowsRE" and a few other pages to come up with a solution that worked.
KB 2685 is kind of incomplete. For example reagentc /setreimage doesn't work if the Recovery Environment is enabled, it's missing the commands to disable and to enable. There's also a caveat that reagent /disable copies the bad winre.wim (and reagent.xml) to C:\windows\system32\recovery, overwriting the copy from the install.wim.
It also doesn't address recovery partitions, and if you simply disable, copy, setreimage and enable, the winre.wim actually gets copied to C:\Recovery and not the recovery partition.
These commands are a REFERENCE of what I worked out from KB2685, https://learn.microsoft.com/en-us/windo ... windows-11 and other Google results. Don't run these unless directed by Support.
Gather info on the current Recovery Environment. If enabled, note the current status and location.
Code: Select all
reagentc /info
Code: Select all
reagentc /disable
Code: Select all
diskpart
Code: Select all
list volume
Code: Select all
list disk
select disk 0
list partition
Code: Select all
select partition 1
list volume
Code: Select all
format quick fs=ntfs label="Recovery"
Code: Select all
assign
Code: Select all
exit
Mount install.wim
Code: Select all
mkdir C:\dism
dism /mount-image /imagefile:D:\sources\install.wim /index:1 /mountdir:C:\dism /readonly /optimize
Code: Select all
robocopy /mir C:\dism\windows\system32\Recovery\ C:\Windows\System32\Recovery\
Code: Select all
dism /unmount-image /mountdir:C:\dism /discard
Make a directory for the recovery environment
Code: Select all
mkdir E:\Recovery\WindowsRE
Code: Select all
xcopy /h C:\Windows\System32\Recovery\Winre.wim E:\Recovery\WindowsRE
Code: Select all
reagentc /setreimage /path E:\Recovery\WindowsRE /target C:\Windows
Code: Select all
reagentc /enable
Code: Select all
reagentc /info
Code: Select all
diskpart
list volume
select volume x
remove
exit