Mindmajix

Using OpenStack Dashboard to Launch and Terminate Instances

Using OpenStack Dashboard to launch instances

Instances are virtual machines that run inside the cloud.

Launching instances are easily done, using the OpenStack Dashboard. We simply select our chosen image, choose the size of the instance, and then launch it.

Getting ready

Load a Web browser, point it to our OpenStack Dashboard address at http://172.16.0.200/horizon, and log in as a user, such as the demo user created in Adding users of Keystone OpenStack Identity Service, with the password openstack.

How to do it…

To launch an instance by using the OpenStack Dashboard interface, carry out the following steps:

  • Navigate to the Images & Snapshots tab and select an appropriate image to launch, for example, the ubuntu 12.04 x86_64 server image:

Screenshot_685

  • Click on the Launch button under the Actions column of the image to be launched.
  • A dialog box appears requesting a name for the instance (for example, horizon1). Choose an instance type of tiny:

Screenshot_686

  • Next, choose the Access & Security tab, and choose the keypair and security groups for this image as shown in the following screenshot:

Screenshot_687

Tip

If you haven’t created a keypair you can click on the + button and import a key from this dialog box.

  • With Neutron configured in our environment, selecting the Networking tab allows us to choose the networks that our instance, will be attached to by dragging the networks listed under Available networks into the Selected Networks box:

Screenshot_688

  • Once selected, we can click on the Launch Instance
  • We will be returned to the Instances & Volumes tab that shows the instance in a Build status, which will eventually change to Active:

Screenshot_689

Tip

If the display hasn’t refreshed, click on the Instances tab to refresh the information manually.

How it works…

Launching instances from Horizon—the OpenStack Dashboard—is done in two stages:

  • Selecting the appropriate image from the Images
  • Choosing the appropriate values to assign to the instance.

The Instances tab shows the running instances under our cookbook project.

Tip

You can also see an overview of what is running in our environment, by clicking on the Overview tab.

Using OpenStack Dashboard to terminate instances

Terminating instances can be simply done by using OpenStack Dashboard.

Getting ready

Load a Web browser, point it to our OpenStack Dashboard address at http://172.16.0. 200/horizon, and log in as a user, such as the demo user created in Adding users recipe of Keystone OpenStack Identity Service, with the password openstack.

How to do it…

To terminate instances by using OpenStack Dashboard, carry out the following steps:

  • Select the Instances tab and choose the instance to be terminated by selecting the checkbox next to the instance name (or names) then click on the red Terminate Instances button:

Screenshot_690

  • We will be presented with a confirmation screen. Click on the Terminate Instances button to terminate the selected instance:

Screenshot_691

  • We will be presented with the Instances screen with a confirmation that the instance has been terminated successfully.

How it works…

Terminating instances by using OpenStack Dashboard is easy. We simply select our running instance and click on the Terminate Instances button, which is highlighted when an instance is selected. After clicking on the Terminate Instances button, we are asked to confirm this action to minimize the risk of accidentally terminating an instance.

 


 

0 Responses on Using OpenStack Dashboard to Launch and Terminate Instances"

Leave a Message

Your email address will not be published. Required fields are marked *

Copy Rights Reserved © Mindmajix.com All rights reserved. Disclaimer.
Course Adviser

Fill your details, course adviser will reach you.