Optimizing Linux Templates
Utilizing Virtualization-Specific Kernels
Leverage the linux-image-kvm kernel, which is specifically engineered for KVM virtualization environments.
For instance, when working with Ubuntu, you can apply these configurations by running the following commands:
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