Refining Linux Templates

Utilize a Virtualization-Specific Kernel

Deploy the linux-image-kvm kernel, which is purpose-built for KVM virtualization environments.

As an illustration, on Ubuntu, you would run the subsequent commands:

apt install linux-image-kvm
apt purge linux-image-generic
Housekeeping Before Publishing a Template
# clears log entries
journalctl --vacuum-size=1
# clears the shell history
history -c
(as root) rm /root/.bash_history