Table of Contents |
---|
...
As part of this feature, the VM's Bootstrap script tab is now available in private cloud for Configuration drive use only. Configuration drive is hypervisor agnostic and support for the bootstrap script depends on the configuration of cloud-init or another system on the VM template.
Bootstrap with Configuration drive in private cloud
To automate configuration at first boot in private cloud, add a configuration definition for your VM. Abiquo will add the configuration definition to an ISO disk on your VM, making it available to configuration systems on first boot for use with cloud-init templates and similar. You can use this feature if you have the "Edit virtual appliance details" privilege.
...
Note |
---|
The VM templates determine the support for the bootstrap format and the VM configuration. Check your provider's documentation before working with this feature |
VM support
If your platform supports the bootstrap feature:
Abiquo creates an ISO disk on the VM, so your VM must have fewer than four IDE disks attached before you begin
If there is bootstrap data, Abiquo creates an ISO disk
Abiquo will check that there are fewer than 4 IDE drives before attaching the ISO because that is the maximum number you can attach to the VM
The ISO disk has the label "config-2"
Abiquo adds the following files to the folder "openstack/latest"
user_data: Abiquo VM Bootstrap script
vm-variables.rc: Abiquo VM variables that are in 'key'='value'
meta_data.json: Abiquo VirtualMachineIdentifier. The meta_data.json file is in the following format:
If DHCP is not used in your environment, the network configuration of the VM will be placed in network_data.json file
You must obtain or create a template that runs cloud-init services or cloudbase-init services (for Windows), or a similar system. The template that you use will determine what the VM will do with the configuration data.
VM access
You do not need to allow any type of access to the VM because the VM can pull its own configuration from the Configuration drive.
References:
metadata.json: https://docs.openstack.org/user-guide/cli-config-drive.html
network_data.json: http://specs.openstack.org/openstack/nova-specs/specs/liberty/implemented/metadata-service-network-info.html#rest-api-impact
Add a bootstrap script for a VM
Edit the VM, and open the Bootstrap tab. Paste your configuration definition in the text box.
...