VM bootstrap script
Before you begin:
Create your VM with a template that is compatible with cloud-init version 0.7.9 or above, or cloudbase-init, or a similar system
In private cloud, the platform will create an ISO disk for Configuration drive
To add a VM bootstrap configuration or script in private or public cloud:
Create or edit a VM, and go to Bootstrap script
Paste your configuration or script in the Bootstrap script text box
Continue to configure the VM or click Save to finish
Notes about bootstrap in private cloud
If the user does not enter the FQDN on the General tab when editing the VM, the platform will try to set the FQDN using the name or ID attribute of the VM, and the domain of the VM's networks, or the
localhost
domainIf your datacenter does not use DHCP, the VM can also get its network configuration from cloud-init, so you do not need to configure the network or allow access to the VM
Abiquo uses the ConfigDrive DataSource for cloud-init. Reference: https://cloudinit.readthedocs.io/en/latest/topics/datasources/configdrive.html
Notes about startup scripts in AWS
In Amazon Web Services you must always select a guest setup option
In AWS, for Windows, depending on the template and its guest setup option, the script format is:
cloudbase_init: cloud-init or shellscript
ec2launch and ec2config: you must have the following format
batch script: put a
<script>
tag at the start, and a</script>
tag at the end of the scriptpowershell script: put a
<powershell>
tag at the start, and a</powershell>
tag at the end of the script
ec2launch v2: use YAML. See https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-windows-user-data.html#user-data-yaml-scripts.
If your script format is invalid, AWS will try ec2launch and ec2config format. See: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-windows-user-data.html
Notes about startup scripts in OCI
The Windows templates provided by Oracle Cloud Infrastructure include cloudbase-init.
See https://docs.oracle.com/en-us/iaas/releasenotes/changes/595afbb7-de0c-4934-8074-5b1ed6be1b56/
Related pages
To add a bootstrap script with the API, use VM metadata. See Manage virtual machine metadata via API
Copyright © 2006-2024, Abiquo Holdings SL. All rights reserved