Tweaking a Linux Template
Working with a Kernel Built for Virtualisation
Give the linux-image-kvm kernel a go—it's purpose-built for KVM virtualisation environments.
For example, on an Ubuntu system, you'd run the following:
apt install linux-image-kvm apt purge linux-image-generic
Tidying Up Before Publishing a Template
# clears out the logs journalctl --vacuum-size=1 # wipes the user history history -c
(as root) rm /root/.bash_history