I'm running ESXi 5.0 and have created a Debian Squeeze (6.0.5) "template" system which is just an installation of Debian slightly customized (ie. VMware Tools installed).
If I clone the system (ie. deploy it to a new virtual machine) then I need to perform several actions:
- Change hostname
- Regenerate SSH keys
Is there an easy method to perform the above actions? Changing the hostname is particularly a problem because according to (http://wiki.debian.org/HowTo/ChangeHostname) you must change it in several files such as the exim configuration, ssmtp, etc).
Is there an "approved" or easier method of doing this?