I’m using Rancher on development environment around 5 months. Everything works very well. I just tried using it on production - all hosts/services are now running on AWS EC2. I can successfully add new created hosts using custom host(running rancher-agent by copying command from Rancher UI) if they are created from a new EC2 instance from Amazon Linux AMI and install required softwares (e.g. docker, rancher, rancher-agent).
However, if I create an instance from my AMI image (created from already created/setup instance), I cannot see new host added on Rancher. I already tried remove the running rancher-agent on the host and run the agent again but it does not appear on Rancher. I can see only the first host(setup from scratch Amazon Linux AMI). I found in the rancher-agent logs that the Machine ID of both hosts are the same. Any suggestions? How can I change the Machine ID rancher-agent use?
Here is the Rancher version I am now using:-
User Interface v0.68.0
Rancher Compose v0.5.3