https://login.veeam.com/en/oauth?client_id=nXojRrypJ8&redirect_uri=https%3A%2F%2Fwww.veeam.com%2Fservices%2Fauthentication%2Fredirect_url&response_type=code&scope=profile&state=eyJmaW5hbFJlZGlyZWN0TG9jYXRpb24iOiJodHRwczovL3d3dy52ZWVhbS5jb20va2IxOTM4IiwiaGFzaCI6IjNmMzg4YTVhLTU4MjAtNDhmMC04NjdlLTA1ZGNhYWQ0ZmQzZiJ9
1-800-691-1991 | 9am - 8pm ET
EN

Backup task fails with "Failed to prepare guest for hot backup"

Challenge

This KB  should only be applied if you observe all three corresponding error messages.

In the task summary following error message is displayed:
Failed to prepare guest for hot backup. Error: Cannot upload guest agent's files to the administrative share [\\...\ADMIN$]. Cannot copy file. Source file: [..\VeeamGuestAgent_X__.exe]. Target file: [\\...\ADMIN$\VeeamVssSupport\VeeamGuestAgent.exe]. CopyFile() failed. Win32 error:The process cannot access the file because it is being used by another process. Code: 32

Following lines can be observed in the job log (B&R6 and below) or task log (B&R7 and later):
Veeam Guest Agent is not started   at Veeam.Backup.Core.CViGuestInventoryInformer.IsEnabled()
   at Veeam.Backup.Core.CViGuestInventoryInformer.Veeam.Backup.Core.IGuestInventoryInformer.TryToInventory(CGuestInventoryInfo& inventoryInfo)
Cannot upload guest agent's files to the administrative share  [\\...\ADMIN$].
Cannot copy file. Source file: [..\VeeamGuestAgent_X__.exe]. Target file: [\\...\ADMIN$\VeeamVssSupport\VeeamGuestAgent.exe].

In the Guest VM VeeamVssSupport service hangs in starting or stopping state.
In VeeamVssSupport log (located in C:\ProgramData\Veeam\Backup) on the guest you can observe following:
            Updating Windows Firewall exceptions list.. Ok.
            Registering RPC protocol sequences used by the server.
            Registering RPC protocol sequences used by the server.. Failed.
ERR         Cannot register RPC protocol sequences used by the server.
ERR         Cannot force RPC run-time library to use all supported protocol sequences for receiving remote procedure calls.
ERR         RPC error:The parameter is incorrect.
ERR          Code: 87

Cause

Windows API function RpcServerUseProtseq(function registers RPC endpoint) fails.

Solution

This issue takes place, when RPC settings are not properly configured in registry.
Steps to fix the issue:
  1. Log on to Guest VM, press Start > Run > regedit
  2. Navigate to HKLM\SOFTWARE\MICROSOFT\RPC\INTERNET
  3. Export this key to back it up first, then delete the whole Internet key (and it's sub-keys).
  4. Reboot your system and run Veeam job once again


KB ID:
1938
Product:
Veeam Backup & Replication
Version:
5.x, 6.x, 7.x
Published:
2014-10-16
Last Modified:
2020-08-13
Please rate how helpful this article was to you:
0.5 out of 5 based on 1 ratings
Thank you for helping us improve!
An error occurred during voting. Please try again later.

Couldn't find what you were looking for?

Below you can submit an idea for a new knowledge base article.
Report a typo on this page:

Please select a spelling error or a typo on this page with your mouse and press CTRL + Enter to report this mistake to us. Thank you!

Spelling error in text

Knowledge base content request
By submitting, you agree that your personal data will be managed by Veeam in accordance with the Privacy Policy.
Your report was sent to the responsible team. Our representative will contact you by email you provided.
We're working on it please try again later