Cloned VM has the same dhcp ip address

From LinuxizeNet

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