If agent was not enabled before the start of the vm from the hypervisor, so a reboot of the VM is not enough. You need to actually shutdown and restart the VM to enable the agent at the supervisor level and have qemu-guest-agent not to fail for dependency.