Linux Template Tweaking
Use a Virtualisation-Specific Kernel
Use the linux-image-kvm kernel, designed 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