If you use Proxmox, check out these scripts. There are dozens of helper scripts that will automate configuring Proxmox and creating LXCs and VMs for popular services.