Create Instance from Image

When you create an instance, you must specify what image to create the instance from.

Before you create an instance, ensure that the required images, networks, volumes, and flavors are available to you. If you wish to allow access to the instance through SSH, ensure you have created the required SSH keys, and have imported them into OpenStack. It is recommended that you use SSH key authentication for enhanced security.

An instance can connect to one or more virtual or physical networks.

While creating an instance, it is necessary to specify the set of firewall rules to control the incoming and outgoing network traffic for the instance. The set of firewall rules is called a security group.

You may select at least one or more networks that the instance should connect to. These networks could be physical or virtual networks.

You may also customize your instance with cloud-init. Cloud-init is a Python-based multi-distribution package that handles early initialization of the cloud instance. You can use a cloud-init script, up to 64 KB in size, to initialize the cloud instance after it launches.

You must be a self-service user or an administrator to perform this operation.

To create an instance, follow the steps given below.

  1. Log in to Clarity.
  2. Click Instances in the left panel.
  3. Click New VM Instance seen on the top right corner.
  4. Select Image option as VM Source Type. Create Instance from Image
  5. Select the required image in the list of images.
  6. Click Next.
  7. Optionally, select the availability zone for the instance.
  8. Select the flavor to use for the instance from the list of available flavors.
  9. Click Next.
  10. Select the checkboxes for one or more networks for the instance.
  11. Click Next.
  12. Enter an instance name.
  13. Select the SSH key pair to use. If you do not wish to use SSH key pair, you can leave the default value as None.
  14. Select one or more security groups for firewall rules.
  15. Click Next.
  16. In order to customize the instance after it launches, copy-paste the cloud-init file content in the blank space provided. This is an optional step.
  17. Click Next to review the instance configuration.
  18. Click Create Instance to create the instance.
  19. Record the username and password that is generated and displayed on the page.

You can click Back to go back and make corrections or changes to the configuration before creating the instance. Remember to record the operating system specific username and password for future reference as the data is not accessible after you exit the wizard.

After you create an instance, the instance starts automatically. A fixed IP address is assigned to the instance, by default. The fixed IP address is the private IP address of an instance.

If you wish to make the instance publicly available, you can manually assign a floating IP address to it. The instance is reachable over the Internet with the floating IP address that is assigned to the instance. You can assign the floating IP address to an instance from a pool of floating IP addresses available to you.

Once the instance is created, you can attach a volume to the instance, if required.

The instance starts automatically once it has been successfully created.