Table of Contents |
---|
...
Add VM variables
Excerpt | ||||||
---|---|---|---|---|---|---|
| ||||||
Edit variable valuesBefore you deploy a VM, you can edit the VM and update the variables. To edit a variable: set guest variables to pass user data to your VM. 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.
To add VM variables:
|
...
Read guest variables
Before you deploy a VM, you can edit the VM and delete the variables.
To delete a variable:
- Click the X in the left column beside the variable Name.
- To apply changes to variables, and other changes to the VM, click Save
Read Guest Variables
...
Related pages
...
The location of the variable will depend on the method of guest setup that you are using for your VM.
Here are some general guidelines.
Cloud | Method | Variable location |
---|---|---|
Private | Cloud-init |
|
Private | Hypervisor tools | On ESXi, run this command on the guest to get the value of a variable: |
Private | Hypervisor tools | For vCloud Director, hypervisor tools does not support variables |
Public | Cloud-init | The variables are stored in the |
Amazon | Cloudbase-init | On Windows, the variables are stored in the |
Azure | Cloud-init | On Windows, according to the Azure documentation on custom data
On Linux, use cloud-init to read the variables from custom data. |