Fine-Tuning Linux Templates

Choose a virtualisation-focused kernel

The linux-image-kvm kernel is purpose-built for KVM virtualisation.

For instance, on Ubuntu, run the following commands:

apt install linux-image-kvm
apt purge linux-image-generic
Clean up the system before sharing the template
# removes logs
journalctl --vacuum-size=1
# removes user history
history -c
(as root) rm /root/.bash_history