I want to know if exists an alternative to Sysprep for Linux. I'm working on VM using VMware and I want to clone that machine to create new ones based on this template. And I want to try to make a VM clear as possible.
According to the Redhat website there's virt-sysprep which does similar things that Sysprep does under Windows.
The virt-sysprep command-line tool can be used to reset or unconfigure a guest virtual machine so that clones can be made from it. This process involves removing SSH host keys, removing persistent network MAC configuration, and removing user accounts. Virt-sysprep can also customize a virtual machine, for instance by adding SSH keys, users or logos. Each step can be enabled or disabled as required.
In the linked man page they show things like this:
--append-line '/etc/hosts:10.0.0.1 foo' --append-line '/etc/hosts:10.0.0.2 bar'
--commands-from-file FILENAME (see customize below)
Which would then use this file as input:
delete /some/file install some-package password some-user:password:its-new-password