'm planning to build a VPS hosting service using Proxmox VE.
I want to maintain a small number of clean OS templates, for example Ubuntu 22.04, Ubuntu 24.04, Debian, etc. When a customer orders a VPS, my application will clone the appropriate template and configure the new VM automatically.
One requirement is that customers should be able to log in directly as root via SSH using a randomly generated password.
I'm wondering what would be the best architecture/method for this.
Should I:
The goal is to avoid maintaining many different templates and have the provisioning process fully automated from my application.
I want to maintain a small number of clean OS templates, for example Ubuntu 22.04, Ubuntu 24.04, Debian, etc. When a customer orders a VPS, my application will clone the appropriate template and configure the new VM automatically.
One requirement is that customers should be able to log in directly as root via SSH using a randomly generated password.
I'm wondering what would be the best architecture/method for this.
Should I:
- Prepare the template with root SSH/password login already enabled?
- Keep the template completely clean and use Cloud-Init to configure root login/password for every new VM?
- Generate a custom Cloud-Init configuration for each VPS?
- Use another Proxmox/Cloud-Init mechanism that is more appropriate for a VPS hosting environment?
The goal is to avoid maintaining many different templates and have the provisioning process fully automated from my application.