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

From LinuxizeNet
(Created page with " sudo rm /etc/machine-id sudo systemd-machine-id-setup sudo reboot")
 
(Remove inert legacy #ae8c55 wrapper (superseded by site CSS))
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{clear}}
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 rm /etc/machine-id
  sudo systemd-machine-id-setup
  sudo systemd-machine-id-setup
  sudo reboot
  sudo reboot
[[Virtualization]]
[[Category:Virtualization]]
[[Category:QEMU]]
[[Category:Libvirt]]

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