Adjusting the Linux Template

Apply a virtualization-specific kernel

It is recommended to utilize the linux-image-kvm kernel, which is specifically optimized for KVM virtualization environments.

As a practical example in Ubuntu, you can apply this configuration by executing the following commands:

apt install linux-image-kvm
apt purge linux-image-generic

Sanitize the environment before publishing the template

# clears system logs
journalctl --vacuum-size=1
# clears user command history
history -c
(as root) rm /root/.bash_history