Generate a new /etc/machine-id file and enable customizations to be able to change the host name to avoid network conflicts

virt-sysprep

  • Reset, unconfigure, or customize a virtual machine image.
    More information: <https://manned.org/virt-sysprep>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

virt-sysprep --domain {{vm_name}} --enable {{customizations}} --hostname {{host_name}} --operation {{machine-id}}

click the source code to copy install virt-sysprep on any operating system with command-not-found.com