Table of Contents |
---|
Excerpt | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
You can set guest variables to pass user data to your VMs before deployment. This functionality uses cloud-init and requires appropriate templates. In private cloud, the VM templates must have the guest setup flag set to cloud init.
You can add, modify or delete guest variables, BEFORE you deploy the VM. Add variablesTo add variables:
Edit variable valuesTo edit a variable:
Delete variablesTo delete a variable:
Read Guest VariablesThe variable location will depend on the method of guest setup that you are using for your VM. Private cloud: When using cloud-init, the variables are stored on the cloud-init ISO, which has the label "config-2". The variables file is "openstack/latest/vm-variables.rc" When using hypervisor tools, you should use the appropirate method for your hypervisor, for example: ESXi:Run the following command in the guest to get the value of a variable:
On Unix guests, run the following command:
Public cloud: The variables are stored in the /opt/abiquo-env.rc file
|
Related pages
- Main VM configuration page: Configure Virtual Machines
- Automate VM configuration with bootstrap scripts: VM bootstrap script
- Automate VM configuration with Chef: VM Chef
- Main VM automation page: Guest setup