- Veeam Support Knowledge Base
- Misconfigured RPC Settings cause Backup Job to fail with "Failed to prepare guest for hot backup"
Misconfigured RPC Settings cause Backup Job to fail with "Failed to prepare guest for hot backup"
| KB ID: | 1938 |
| Product: | Veeam Backup & Replication |
| Published: | 2014-10-16 |
| Last Modified: | 2022-12-22 |
Cheers for trusting us with the spot in your mailbox!
Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest
Oops! Something went wrong.
Please, try again later.
This KB article is specific to a scenario where Dynamic RPC ports have been customized within the registry. That customization then causes the particular error Code: 87.
The primary error in the UI, "Failed to prepare guest for hot backup," has many causes, and this article only covers one possibility.
Challenge
This KB is only relevant when all three of the following errors occur.
The Task Summary displays:
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
The Task Log Contains the following:
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].
The VeeamVssSupport Service is Hung within the Guest OS
Check the VeeamGuestHelper log found in C:\ProgramData\Veeam\Backup Contains
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
Solution
This issue occurs, when RPC settings have been customized and are not properly configured in registry.
By default the HKLM\SOFTWARE\MICROSOFT\RPC\INTERNET key does not exist, if it is presented it must have been created. Likely, it was created by someone reviewing the information found here, or another article discussing that specific registry key.
Remove RPC Customized Settings:
- Log on to Guest VM
- Open the Registry Editor (regedit)
- Navigate to HKLM\SOFTWARE\MICROSOFT\RPC\INTERNET
- Export the INTERNET key to back it up.
- Delete the entire INTERNET (and it's sub-keys).
- Reboot the Guest, run the Veeam job again
If this KB article did not resolve your issue or you need further assistance with Veeam software, please create a Veeam Support Case.
To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.