virt-sysprep

Reset, unconfigure, or customize a virtual machine image. More information: https://manned.org/virt-sysprep.

virt-sysprep --list-operations

virt-sysprep --domain vm_name --dry-run

virt-sysprep --domain vm_name --operations operation1,operation2,...

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