Cloned VM has the same dhcp ip address: Difference between revisions
From LinuxizeNet
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
{{clear}}</div></div><div style = "margin-top: 1.5em; border: 3px solid #ae8c55; border-radius: .5em; padding: 1em 1.5em; font-size: 1.2em"> | {{clear}}</div></div><div style = "margin-top: 1.5em; border: 3px solid #ae8c55; border-radius: .5em; padding: 1em 1.5em; font-size: 1.2em"> | ||
<strong></strong> | <strong></strong> | ||
After cloning a VM from another VM, or from a template the DHCP address is the same. The problem is that machine-id remains the same. | |||
This is how to fix it. | |||
sudo rm /etc/machine-id | sudo rm /etc/machine-id | ||
sudo systemd-machine-id-setup | sudo systemd-machine-id-setup | ||
Revision as of 09:24, 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 the same.
This is how to fix it.
sudo rm /etc/machine-id sudo systemd-machine-id-setup sudo reboot