Linux VM Configuration Guide
Linux VM Configuration Guide
Introduction:
This guide walks you through configuring a virtual machine (VM) running a Linux distribution.
Whether on-premises with KVM, VirtualBox, or in the cloud (e.g., Azure, AWS), these steps
Prerequisites:
- ISO image of the chosen Linux distro (e.g., Ubuntu Server, CentOS)
- Sufficient RAM (>=2 GB), Storage (>=20 GB), and CPU cores.
Installation & Initial Configuration
1. Create VM:
--disk path=/var/lib/libvirt/images/linux-vm.img,size=20 \
3. Configure Networking:
- Secure SSH:
6. Firewall Configuration:
7. Regular Updates:
- Automate:
echo "0 3 * * * root apt-get update && apt-get -y upgrade" | sudo tee /etc/cron.d/auto-update
9. Validation:
- Disk usage: df -h
- Memory: free -m