Cloned VM has the same dhcp ip address: Difference between revisions

From LinuxizeNet
No edit summary
(Remove inert legacy #ae8c55 wrapper (superseded by site CSS))
 
Line 1: Line 1:
<div style = "line-height: 1.2">
{{clear}}
{{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>
After cloning a VM from another VM, or from a template the DHCP address is the same. The problem is that machine-id remains.
After cloning a VM from another VM, or from a template the DHCP address is the same. The problem is that machine-id remains.



Latest revision as of 21:02, 9 August 2026

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