Failed to prepare guest Veeam Guest Agent is not started

If you run into the error in Veeam “Failed to prepare guest Veeam Guest AGent is not started”, often there is an issue with the VMware Tools service. Â If VMware tools is in a bad state, when application aware is enabled, you will see issues with the backup job including the aforementioned error.
Failed to prepare guest Veeam Guest Agent is not started
When looking through the event logs of the server in question that had issues with the Veeam backup, I found errors in the event logs for VMware tools service.
Notice on the backup job for this particular VM, we see the warning “VMware Tools are not running. Guest processing skipped” as well as the “Failed to prepare guest for hot backup. Error: Veeam Guest Agent is not started” error.
Resolution
The resolution to the issue above for me was to restart the VMware tools service. Â When I attempted in this case to restart the VMware tools service, it failed to start in a timely fashion. Â However, manually attempting to start it was successful.
Restart-Service "VMware Tools"
If you run into an instance where you can’t stop a service and it is hung in the stopping state, you can find the PID the service is using and then kill the process which will kill the service as well. Â Find the PID number using the command below and then kill it.
sc queryex VMTools taskkill /f /pid <PID number>
Other troubleshooting VMware tools may also be uninstalling VMware Tools and then reinstalling.
Thoughts
If you run into the error Failed to prepare guest Veeam Guest Agent is not started, looking at services and especially VMware Tools state is a great place to start. Â Once you have made sure VMware Tools is in a good state – service is running, no errors in event viewer, you should be able to kick off the affected backup job and it should complete successfully with application aware settings turned on.