Cloned VM has the same dhcp ip address

From LinuxizeNet
Revision as of 21:02, 9 August 2026 by Datanasov (talk | contribs) (Remove inert legacy #ae8c55 wrapper (superseded by site CSS))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

After cloning a VM from another VM, or from a template the DHCP address is the same. The problem is that machine-id remains.

This is how to fix it.

sudo rm /etc/machine-id
sudo systemd-machine-id-setup
sudo reboot

Virtualization