Customising Linux Templates
Select a kernel optimised for virtualisation
Opt for the linux-image-kvm kernel, which is purpose-built for KVM virtualisation.
In Ubuntu, for instance, you can run these commands:
apt install linux-image-kvm apt purge linux-image-generic
Do a cleanup before publishing the template
# removes logs journalctl --vacuum-size=1 # removes user history history -c
(as root) rm /root/.bash_history
