Creating a Linux Instance from a Cloud-Init Image
Video Guide
Document Guide
Please review the Creating Instances from Pre-Built Images tutorial on generally creating instances.
Minimum Configuration:
-
With a cloud-init image selected, the minimum configuration only requires only a Symphony key pair to be selected from the dropdown menu. Please review the key pair generation tutorial on how to generate one.
-
When the instance spins up with the minimum configuration, a the default user associated with the key pair is either 'ubuntu', or 'centos' depending on the operating system. This user has password-less sudo privileges.
Using a Cloud-Init Configuration File:
-
When using a cloud-init configuration file while on step 4 of the instance creation wizard, a user may or may not be specified in that configuration file.
-
If a user is not specified, then the instance can be accessed as before.
-
If a user is specified, then the public key of a generated key pair needs to be associated with that user, and the default user is no longer created. Thus, it is no longer necessary to select a key in step 4 of the instance creation wizard, the public key is being loaded via the config file and the private key is being loaded by the local ssh client.
-
Here is an example cloud-init config file that creates a user and associates a public key to that user.
-
Please review the security group tutorials and your local firewall policies to ensure traffic can flow.
-
Additionally, linux cloud images cannot be used on static networks as data is passed to the instance via DHCP.