Linux

Where Is the Linux Machine ID Stored?

Every Linux install carries a unique machine ID in machine-id, used for tracking and D-Bus identity.

Last updated

The machine ID is a single random identifier stored in a one-line file, identifying the installation to D-Bus, journald, and network services. It is generated once at install and never changes on its own.

Cloned VMs are the classic way to break it. Two machines sharing one ID confuse everything from DHCP to logging, with symptoms that look like network ghosts. Regenerate on clones with the standard tool and reboot; the new ID propagates everywhere automatically.

Where Linux stores this, by platform

Linux
/etc/machine-id

Single-line unique install identifier. Regenerate on cloned VMs with systemd-machine-id-setup; never hand-edit it to a duplicate value.

Frequently asked questions

Should I ever change the machine ID?

Only when cloning breaks it. Duplicate IDs confuse DHCP, journaling, and services; regenerate on the clone and leave the original alone.

Notice an outdated path? Let us know.