Clone and rename virtual machines in KVM
One of the advantages of virtualization is the ability to clone virtual machines to quickly create homogeneous environments. However, when we clone a VM that contains an operating system, the clone inherits unique identifiers such as the machine ID, MAC addresses, host SSH keys, etc., which should be unique for each machine.
In this guide we will cover how to:
Clone virtual machines with virt-clone Generalize clones with virt-sysprep Customize new instances with virt-customize Rename virtual machines with virsh domrename Troubleshoot common issues after cloning Prerequisites Make sure the following packages are installed: