A couple of quick questions around speeding up the deployment process from a VM template. I’m using 6.10 for reference.
There’s a display name, the one that appears in the UI, which is different from the hostname. The default if this is left blank is the template name with a number appended. How do I override this default to something else, one-$vmid or similar ? Is there a variable that controls the display name?
2, How possible is it to have a 1 click deployment? As in when a user initiates a VM deployment from a template, to skip the “configuration” and the “advanced options” screens and have it immediately start deploying the VM? If I’ve already specified everything that needs to be set in the template, it should be possible to skip these screens?
Regarding the first point, the display name of a VM is, by default, based on the template name with a number appended (e.g., template-name-1, template-name-2). To customize this and set a custom display name, you can utilize the NAME attribute of the VM when creating it. You can either manually specify the name or use a variable, such as $VMID or other predefined context variables.
For example, in the template definition, you could specify:
NAME = "one-$VMID"
Regarding the second point, If you have already set all necessary parameters in the template, you can achieve something close to one-click deployment by predefining all configurations. To skip the “configuration” and “advanced options” screens, you can do the following:
Sunstone View Customization: You can customize the user interface and hide specific steps using the Sunstone Views configuration by editing the sunstone-views.yaml file.
Predefined Templates: Ensure that your templates are fully configured with all necessary settings, so there’s no need for the user to make any changes during deployment.