Cloud-init fields for VM applications
Use the following reference tables to configure cloud-init volumes and directives in KubeVirt VirtualMachine YAML for Red Hat Edge Manager VM applications.
Cloud-init volume fields Copy linkLink copied!
The following table lists the cloud-init fields available in the KubeVirt VirtualMachine YAML volume specification.
| Field | Volume type | Description | Applicable in Red Hat Edge Manager |
|---|---|---|---|
|
|
|
Inline cloud-config YAML.
Must start with |
Yes |
|
|
|
Base64-encoded cloud-config YAML. Use this field when the YAML contains special characters. |
Yes |
|
|
|
Inline network configuration YAML. |
Yes |
|
|
|
Base64-encoded network configuration YAML. |
Yes |
|
|
|
Reference to a Kubernetes Secret containing user-data. |
No (edge devices do not have a Kubernetes Secret store) |
Common cloud-config directives Copy linkLink copied!
The following table lists the cloud-config directives most commonly used in Red Hat Edge Manager VM applications.
| Directive | Description |
|---|---|
|
|
Sets the default user name for the VM guest.
When omitted, cloud-init uses the default user defined by the guest image (for example, |
|
|
A list of SSH public keys to add to the default user’s |
|
|
Sets the password for the default user when |
|
|
Configures password settings.
Set |
|
|
Set to |
|
|
A list of user definitions to create on the VM guest.
Each entry can specify |
|
|
A list of packages to install on first boot. |
|
|
A list of files to write to the VM guest filesystem.
Each entry specifies |
|
|
A list of shell commands to run on first boot, after package installation. |