
I have installed an agent on a virtual machine, and it worked fine with Cruise server.
However when I clone the VM image, both of the agents get confused, and a job can be building on both agents at the same time.
The reason is that Cruise server identifies agents by a unique id (UUID) which is generated by the agent the first time it starts up.
If you clone an agent, the UUID is copied too. So both of the agents with same UUID talk to Cruise server, and the server becomes dysfunctional.
To resolve this issue, you just delete the file guid.txt under {agent_installation_folder}/config.
Then Cruise server will recognize it as a new agent, and you can approve it.
This issue will be fixed in a future version of Cruise.