Skip to content

linux_ref

Ruben S. Montero edited this page Dec 21, 2023 · 6 revisions

Context Attributes Reference

This table lists all the attributes supported by the context packages

Attribute Description
START_SCRIPT Script executed on machine boot. Can contain shebang if not a shell script.
START_SCRIPT_BASE64 Same as START_SCRIPT but encoded in Base64.
TOKEN YES to create a token.txt file for OneGate monitoring.
ONEGATE_ENDPOINT Automatically added by OpenNebula if TOKEN is YES.
NETWORK YES to automatically configure networking for each NIC.
NETCFG_TYPE Network configuration service inside guest VM responsible for configuring NICs
NETCFG_NETPLAN_RENDERER Netplan renderer (effective only when NETCFG_TYPE=netplan)
SET_HOSTNAME Sets the VM hostname.
DNS_HOSTNAME YES to set the VM hostname to the reverse DNS name (from the first IP).
DNS Specific DNS server for the Virtual Machine.
USERNAME User to be created in the guest OS. Defaults to root if password or SSH_PUBLIC_KEY is defined.
CRYPTED_PASSWORD_BASE64 Crypted password encoded in base64. To be set for the USERNAME.
PASSWORD_BASE64 Password encoded in base64. To be set for the USERNAME.
CRYPTED_PASSWORD Crypted password. To be set for the USERNAME. Use CRYPTED_PASSWORD_BASE64 instead.
PASSWORD Password to be set for the USERNAME. Use PASSWORD_BASE64 instead.
SSH_PUBLIC_KEY Key to be added to USERNAME authorized_keys file or root if USERNAME is not set.
TIMEZONE Time zone to set.
GROW_ROOTFS If set to NO, disables automatic growing of root filesystem
GROW_FS Mountpoints of extra filesystems to extend.
IGNORE_SWAP If set to YES, skips auto-mounting of any found swap devices (not including /etc/fstab).
RECREATE_RUN If set to YES, restores missing directories and files persisted in the image in /run (or /var/run) to the ephemeral /run (or /var/run) of the VM instance.
Clone this wiki locally