This post discusses how to launch an instance from the Openstack Dashboard:
First Login to Openstack Dashboard using the credentials given when openstack installation was completed.
You will see a screen like below:
You can create the following before launching an instance:
(1) Volume - Click to know how to create volume in openstack
(2) Image - Click to know how to create image in openstack
(3) Key Pair - Click to know how to create key pair in openstack
Even if they are not created before, you can continue with launching instance.
1. Go to Project -> Compute -> Instances
2. Click Launch Instance
3. In the upcoming dialog, start feeding necessary details
(i) In Details section, you have to specify the instance name
Click Next.
(ii) In Source section, choose the image from the available list.
(a) If you want to create a new volume, choose Yes for Create New Volume.
(b) If you want to manage multiple images on the same volume, choose No on Delete Volume on Instance Delete.
(c) Only previously created images will be visible in Available.
Cirros image is created during openstack installation.
Click Next.
(iii) In Flavors section, choose a flavor suitable for the selected image.
First Login to Openstack Dashboard using the credentials given when openstack installation was completed.
You will see a screen like below:
You can shift between admin, demo and alt_demo projects. Work on any one project.
You can create the following before launching an instance:
(1) Volume - Click to know how to create volume in openstack
(2) Image - Click to know how to create image in openstack
(3) Key Pair - Click to know how to create key pair in openstack
Even if they are not created before, you can continue with launching instance.
1. Go to Project -> Compute -> Instances
2. Click Launch Instance
(i) In Details section, you have to specify the instance name
Description to the instance is optional.
If you want to create more than one instance, increase the count.
Click Next.
(ii) In Source section, choose the image from the available list.
(a) If you want to create a new volume, choose Yes for Create New Volume.
(b) If you want to manage multiple images on the same volume, choose No on Delete Volume on Instance Delete.
(c) Only previously created images will be visible in Available.
Cirros image is created during openstack installation.
Click Next.
(iii) In Flavors section, choose a flavor suitable for the selected image.
There are many flavors available. They are created during installation.
Click Next
(iv) In Networks section, choose your preferred network.
If you are creating instance for the first time, choose shared Network.
The reason behind choosing shared is to enable remote access to this instance.
Click Next
(v) In Network Ports, choose if you have already any port.
Else, Click Next
(vi) In Security Groups section, the default security group is allocated by default.
You can also create one from the dashboard and choose it from available list.
Click Next
(vii) In Key Pair section, choose an already created key pair if available or allocated.
Else, click Create Key Pair to create it. Don't forget to copy the private key and save it to the system. Save the key with .pem extension. Without this, you may not be able to login to instance via SSH (though an alternative way exists).
Click Next
(viii) In Configuration section, add any customized scripts if any.
An alternative way of accessing the instance is to create a password as below.
The hostname can be set to a specific IP or localhost so that resolving host address error does not raise after logging in to the instance.
Click Next
(ix) In Security Groups section, choose if you have created any security group.
Click Next
(x) The sections Schedule Hints and Metadata are left to your choice.
Click Launch Instance.
The instance gets created in a few seconds and is shown in the instance list.
When the Status turns Active and Power State turns Running,
your instance is ready for access.
Thus, you have successfully created your first instance in Openstack.
Comments
Post a Comment