![]() I'd like the solution to persist a long time, and certainly across server reboots and software restarts. Many systems like Chef already require unique hostnames. There's a cpuid but that's apparently deprecated.There's also /var/lib/dbus/machine-id, but that's dependent on dbus.They can be cloned like a state file, but in practice they generally aren't because it's such a security problem that it's a mistake not often made. The server's SSH host keys may be a candidate.Generating a state file and saving it to disk doesn't work because the virtual machine may be cloned, thus duplicating the file.A MAC address doesn't work because in some virtualized environments, network interfaces don't have hardware addresses.I need to be able to repeatably, non-randomly, uniquely identify a server host, which may be arbitrarily virtualized and over which I have no control.
0 Comments
Leave a Reply. |