denisbrodbeck / machineid

Get the unique machine id of any host (without admin privileges)
MIT License
1k stars 143 forks source link

Why different machines has same machineId? #6

Closed heramerom closed 6 years ago

heramerom commented 6 years ago

I have two ECS in Aliyun cloud. The machines has the same machineId. but I want a unique id for each machine. How can I do?

heramerom commented 6 years ago

I think the Vm merchant is disk clone system. not install from a ISO.

denisbrodbeck commented 6 years ago

If it's a recent Linux based system, you could try to regenerate the id once when provisioning the vm's initially.

The tool you need is dbus-uuidgen --ensure (see man-page). You also might want to checkout this SE answer with more details, which files exactly to regenerate/remove.