Read guest variables from a VM
The variable location 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 the following command in the guest to get the value of a variable: vmtoolsd --cmd "info-get guestinfo.abiquo.<variable-name>" |
Private | Hypervisor tools | For vCloud Director, hypervisor tools does not support variables |
Public | Cloud-init | The variables are stored in the /opt/abiquo-env.rc file |
Amazon | Cloudbase-init ec2launchv2 ec2lanch ec2config | On Windows, the variables are stored in the C:\ProgramData\Abiquo\abiquo-env.rc file |
Azure | Cloud-init | On Windows, according to the Azure documentation on custom data
On Linux, you can use cloud-init to read the variables from custom data. |
Copyright © 2006-2022, Abiquo Holdings SL. All rights reserved