Optimising Linux Templates
Pick a Virtualization-Specific Kernel
Make use of the linux-image-kvm kernel, which is purpose-built for KVM virtualization.
On Ubuntu, for example, you'd issue these commands:
apt install linux-image-kvm apt purge linux-image-generic
Clean Up Before Releasing the Template
# removes logs journalctl --vacuum-size=1 # removes user history history -c
(as root) rm /root/.bash_history
