Abiquo 5.0

Skip to end of metadata
Go to start of metadata

Add VM variables

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:

  1. Go to Virtual datacenters → edit a VM that is not deployed → Variables

  2. Enter each Key and Value

    1. The length of these can be up to 255 characters each 

  3. Click Add


  4. To delete a variable click the trash can symbol beside the Key. To edit the Value of a variable, click the pencil edit button beside the Value

  5. To apply changes to variables, and other changes to the VM, click Save


Edit variable values

To edit a variable:

  1. Click the pencil edit button next to the value
  2. Click ok
  3. To apply changes to variables, and other changes to the VM, click Save
Delete variables

To delete a variable:

  1. Click the X in the left column beside the variable name.
  2. To apply changes to variables, and other changes to the VM, click Save
Read Guest Variables

The 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 appropriate method for your hypervisor, for example:

  • ESXi:
    • Run the following command in the guest to get the value of a variable:

      vmtoolsd --cmd "info-get guestinfo.abiquo.<variable-name>"

Public cloud:

The variables are stored in the /opt/abiquo-env.rc file


Related pages

  • No labels