[Feature] Client Portal: let customers create VMs from templates the hoster allows
Describe the feature
Customers can already create containers in the Client Portal (#556), but not VMs. It would be great if they could also create a VM from a template.
- The hoster turns it on in the plugin config and chooses the cluster, node, storage, which templates are allowed and the max cores, memory and disk.
- The customer picks one of those templates, the cores, memory and disk size, and sets a Cloud-Init login (user, password, optional SSH key).
- The customer can't choose where the VM is created, and the tenant quota and VMID range apply, the same as for containers.
Use Case
Hosters give customers access to the Client Portal. Some customers need a full VM (their own kernel, Docker), not a container. Right now the admin has to clone a template, set the login and grant the VM to the customer by hand.
Alternatives considered
- Creating the VMs by hand as an admin. It works, but it isn't self-service.
- Blueprints (#1220) instead of templates. They are only in the dashboard, so portal accounts can't use them.
How important is this for you?
Would improve my workflow. I've already implemented and tested it on my fork (feat/portal-vm-create) and can open a PR if you're interested.
Checklist
- [x] I have searched existing issues and discussions to make sure this hasn't been requested before
- [x] I understand this is a wishlist and not a work order — volunteers decide what gets built, and when
- [x] I'm aware that "this should be easy, it's only a few lines" has never once turned out to be true 🪄
Hey, thanks for the thorough write-up, and nice that you already built and tested it on your fork. Since it creates VMs under a tenant's quota and VMID range, that's a part Nico wants to go over himself, so I've put it on his list. Noted, no promise on timing though.
If you want to open the PR, point it at Testing rather than main and fill in the PR template including the AI-assistant line, the bot closes PRs where that's left empty.
Marcus