Cloned VM has the same dhcp ip address: Difference between revisions
From LinuxizeNet
No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
sudo systemd-machine-id-setup | sudo systemd-machine-id-setup | ||
sudo reboot | sudo reboot | ||
[[Virtualization]] | |||
[[Category:Virtualization]] | [[Category:Virtualization]] | ||
[[Category:QEMU]] | [[Category:QEMU]] | ||
[[Category:Libvirt]] | [[Category:Libvirt]] | ||
Revision as of 09:27, 11 April 2024
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