Abiquo 4.2

Skip to end of metadata
Go to start of metadata

The VM bootstrap script will be managed by cloud-init.

Bootstrap with Configuration drive in private cloud

To automate configuration at first boot, add a bootstrap configuration or script that is compatible with cloud-init version 0.79 or above.

The user can enter the FQDN on the General tab when editing the VM. Otherwise Abiquo will try to automatically set the FQDN using the name or ID attribute of the VM, and the domain of the VM's networks, or the localhost domain.

Before you begin, check these requirements:

  • A template that runs cloud-init services or cloudbase-init services (for Windows), or a similar system. The template will determine what the VM will do with the configuration data. 
  • Fewer than four IDE disks attached to the VM before you begin, so Abiquo can create an ISO disk
  • Note: the VM can pull its own configuration from the Configuration drive, so you do not need to allow any type of access to the VM

To add a bootstrap script

  1. Edit the VM and go to the Bootstrap tab. 
  2. Paste your configuration definition in the text box. 
  3. Optionally add VM variables on the correpsonding VM variables tab

If there is bootstrap data, Abiquo: 

  • Creates the ISO disk with the label "config-2"
  • Adds the following files to the folder "openstack/latest"
    1. user_data: Abiquo VM Bootstrap script
    2. vm-variables.rc:  Abiquo VM variables that are in 'key'='value' format
    3. meta_data.json: Abiquo VirtualMachineIdentifier. The meta_data.json file is in the format referenced below

      1. You can overwrite this with the Bootstrap script data
    4. If DHCP is not used in your environment, the network configuration of the VM will be placed in network_data.json file


Bootstrap scripts and cloud init configurations in public cloud

Bootstrap scripts in public cloud also run using cloud-init version 0.7.9 or above. You must use a template that is compatible with cloud-init or cloudbase-init.

Edit the VM, and open the Bootstrap script tab. Paste your configuration or script in the text box.

VM variables will be available to the VM after deploy and startup in the "/opt/abiquo-env.rc" file.

With this feature you can also use your own scripts or tools such as Ansible to configure your virtual infrastructure. See also http://www.abiquo.com/2014/05/14/abiquo-dynamic-inventory-plugin-for-ansible/

Related pages