Backup Software

Failed to prepare guest Veeam Guest Agent is not started

Let's take a look at troubleshooting the Veeam error Failed to prepare guest Veeam Guest Agent is not started by looking at VMware tools state.

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.

vbrhot02

VMware Tools and guest processing

Veeam when it runs against your guest virtual machines in VMware vSphere will use a guest interaction process that allows it to perform the backup of the virtual machine with several benefits. It will leverage VMware Tools to interact with the virtual machine.

Investigating possible errors

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. If you are an MSP, you may have a situation where a customer asked about the issue as well.

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. You may see other things like failure to index guest file system.

This may happen for domain joined computers or workgroup computers. You will want to check and ensure there is no problem with the guest interaction service account accessing the virtual machine or the credentials in general.

vbrhot01

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.ย 

Killing the service

sc queryex VMTools

taskkill /f /pid <PID number>

Other troubleshooting VMware tools may also be uninstalling VMware Tools and then reinstalling.

Wrapping up

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.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.