RedHat has a tool named virt-sysprep that can "reset, unconfigure or customize a virtual machine so clones can be made".
It is meant to be executed on shutted down virtual machine and goes to some extents that are not required for MC, but it could be used an inspiration to make sure there is no blind spot left.
RedHat has a tool named
virt-sysprep
that can "reset, unconfigure or customize a virtual machine so clones can be made".It is meant to be executed on shutted down virtual machine and goes to some extents that are not required for MC, but it could be used an inspiration to make sure there is no blind spot left.
Someone has created a similar project for packer : https://github.com/DanHam/packer-virt-sysprep OCaml code of virt-sysprep operations : https://github.com/rwmjones/guestfs-tools/tree/master/sysprep