Tweaking Linux Templates
Select a kernel built for virtualisation
Employ linux-image-kvm kernel, which is purpose-built for KVM virtualisation.
For instance, on Ubuntu, run the following commands:
apt install linux-image-kvm apt purge linux-image-generic
Tidy up before publishing a template
# removes logs journalctl --vacuum-size=1 # removes user history history -c
(as root) rm /root/.bash_history
