Hi Rached,
I hope you are doing fine.
Could you explain further your use case ?
If you mean installing on a new VM the wazuh agent, once you install the agent and configure it to point to the wazuh manager using the following procedure:
You can then after starting the agent see the log in /var/ossec/logs/ossec.log to detect any issues that might be going on with connection or registering of the agent. Please share this file if this is the case so I can help you further troubleshooting your issue.
If you mean installing an agent on a VM which has the agent already installed, this is not supported, but I don´t understand the use case for this.
Please clarify this so we can get this working.
Regards!