...
Info |
---|
This page describes the configuration to enable users to automate VM first boot with cloud-init or similar. To use this feature, you must install |
In private cloud and VCD, the platform implements cloud-init with configuration drive. See Configuration drive .
In public cloud, the platform uses cloud provider metadata. Please check your provider documentation about metadata security.
For Windows in AWS, the platform supports guest setup with CLOUDBASE_INIT
, EC2LAUNCH EC2LAUNCH_V2
, EC2LAUNCH
, and EC2CONFIG
.
...
Cloud-init in Abiquo
Abiquo supports two main kinds of first boot automation with cloud-init:
Abiquo built-in functionality:
Guest initial password
Fully qualified domain name (FQDN)
SSH key injection
User data on Configuration drive or cloud provider metadata
Network Initial network configuration injection (when DHCP is not present)
User bootstrap script and variables
...
This table describes the priority of remote access credentials for the public cloud providers at the time of writing. Always check your cloud provider documentation for the latest information.
Provider | Operating system | Password priority |
---|---|---|
Azure | Windows | Guest initial password > Password |
Other | SSH public key > Guest initial password > Password | |
AWS | All | SSH public key > Guest initial password |
GCP | Windows | Password |
Other | SSH public key | |
OCI | Windows | Password provided by OCI |
Other | SSH public key |
...
...
Configure guest initial password
Excerpt | ||
---|---|---|
| ||
The platform can set an initial password for a VM before it deploys. The administrator can configure this option in a VM template but the user may then edit the VM to change the option. To configure guest initial passwords, do these steps.
Related pages: |
...
Excerpt | ||||
---|---|---|---|---|
| ||||
Abiquo can set a hostname and fully qualified domain name (FQDN) before the VM is deployed.
If the user does not enter an FQDN, Abiquo uses the following default:
To change the default to always generate the automatic VM name from the database ID:
After the user deploys the VM, the user can change the FQDN in the VM operating system. In this case, Abiquo will update the FQDN stored in the platform. |
...
To enable users to work with cloud init, the administrator prepares VM templates that will run cloud-init
services or cloudbase-init
services (for Windows) or similar. The compatible version of cloud-init is version 0.7.9 or above, or cloudbaseor cloudbase-init
.
For VMware (vCenter hosts, vCenter clusters, VCD) and other private cloud hypervisors, where cloud-init uses a configuration Configuration drive, you might need to prepare the operating system of your VM templates for this configuration.
Edit the cloud config installer file. The location of this file will vary by operating system. For example,
/etc/cloud/cloud.conf.d/99-installer.cfg
. Set the datasource toConfigDrive
as shown here.Code Block datasource: ConfigDrive: datasource_list: [ConfigDrive]
In the case of Ubuntu 18+, disable any default network configuration utility.
Remove
/etc/cloud/cloud.conf.d/subiquity-disable-cloudinit-networking.cfg
Remove
/etc/netplan/00-installer-config.yml
To prepare Windows templates for public cloud, see the following pages.
...
Excerpt | ||
---|---|---|
| ||
To prepare a VM template for guest setup:
|
...