查看machine-id
# cat /etc/machine-id
e2bd0adf084a4c289cf335da4cd2f4b4 * Original "machine-id".
1
2
清除machine-id
# cp -f /dev/null /etc/machine-id
cp: overwrite '/etc/machine-id'? * Clear original value.
# cat /etc/machine-id
* Value has been cleared.
1
2
3
4
5
创建新machine-id
# systemd-machine-id-setup
Initializing machine ID from random generator. * Success to generate and setup the new value.
1
2
查看生成新的machine-id
# cat /etc/machine-id
dab09965986b4ea1ba34dc7a79bb2830 * New value of "machine-id".