Before you deploy a VM, you can set guest variables to pass user data to your VMs. This functionality uses cloud-init and requires appropriate templates. In private cloud, the templates must have the guest setup flag set to cloud init. The administrator can add default variables for the VM template.
This functionality is available through the API. The platform stores variables in the VirtualMachine "variables" attribute, which is a dictionary of keys and values. See Update a virtual machine in VirtualMachinesResource
To add VM variables:
Go to Virtual datacenters → edit a VM that is not deployed → Variables
Enter each Key and Value and click Add
Identifier of the variable. Maximum length of 255 characters
|Value||Value of the variable. Maximum length of 255 characters|
To apply changes to variables, and other changes to the VM, click Save