Fine-Tuning Linux Templates
Opt for a Virtualization-Specific Kernel
The linux-image-kvm kernel is tailored for KVM virtualization, so it's the one you'll want to use.
For instance, on Ubuntu, you would run:
apt install linux-image-kvm apt purge linux-image-generic
Pre-Publication Cleanup
# removes logs journalctl --vacuum-size=1 # removes user history history -c
(as root) rm /root/.bash_history
