Skip to main content

Posts

Showing posts with the label Infrastructure as a Service

Remote Login of Instance in OpenStack

After successfully launching an instance via openstack dashboard, you need to login in order to work with the instance. Before login process, we have certain requirements to be satisfied. This post discusses the steps required for login / remote login to an openstack instance. Click here to know how an instance is accessed from public network in openstack Remote Login Approach: To enable remote login of instance, you have to: (1) Associate Floating IP Address (2) Attach Instance to Volume (3) Login to the instance (1) Associate Floating IP Address 1. Go to Project -> Compute -> Instances 2. In the list,  under the  Actions  of Cirros instance created, Click   Associate Floating IP 3. In the  Manage Floating IP Associations  dialog, Click  +  to allocate a new IP Address. 4. In the  Allocate Floating IP  dialog,  choose  public  pool. 5. Click  Allocate IP 6. Select th...

Add Rule to Security Groups

This post discusses how to add new rule to existing security groups. 1. Go to Project -> Network -> Security Groups 2. In the upcoming list, in default , click Manage Rules 3. Click Add Rule to add a rule for SSH as below: 4. Click Add 5. Click  Add Rule  to add a rule for ICMP as below: 6. Click Add 7. The newly added rules are listed along with the previous rules as below: 8. In the similar manner, you can also create security groups and add rules to it.

Launch Instance in OpenStack

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 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 3. In the upcoming dialog, start feeding necessary details (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 ...

Create Key Pair in OpenStack

This post will discuss how to create  a new key pair in Openstack Dashboard. 1. Go to Project -> Compute -> Key Pairs 2. The list may be empty after openstack installation 3. Click Create Key Pair 4. You will get the following dialog: 5. Give a name to the key pair (eg., newkey) 6. Select Key Type as SSH     (There are 2 options: SSH and X509 Certificate) 7. Click Create Key Pair 8. Your Private key file (eg., newkey.pem) will be ready for download 9. Download it and save it to your system 10. This key is necessary for remote login of an instance via SSH You can see the newly created key pair in the list.

Create Image in OpenStack

This post will discuss how to create a new image in OpenStack Dashboard 1. Go to Project -> Compute -> Images 2. You can view your image list already available as below.   Cirros is the lightweight linux distribution that is created by default during openstack installation. When the status is Active, the respective image can be used while launching instance. 3. Click Create Image 4. You will get a dialog as below: 5. Mention the Image name and give Description if any 6. Currently, Image can be uploaded only from file location. Browse for the image file.     You can get a list of cloud images from:       https://docs.openstack.org/image-guide/obtain-images.html     Download the necessary image file and save it to your system     (either virtual machine or host) 7. Format of the image has to be chosen. QCOW2 format is recommeded. Format also depends on the cloud image you download. 8. Leave out Imag...

Create Volume in OpenStack

The following steps will guide you to create new volume on Openstack Dashboard. 1. Go to Project -> Volumes 2. Click Create Volume 3. You will get a dialogue as below:     4. Fill in the Volume Name, Description 5. You can select No source, empty volume (you can later attach instance to it)     (or)     You can select Image  6. Use the default Type lvmdriver-1 provided 7. Specify the Size of the Volume (Recommended - 10GB to 20GB) 8. Use the default nova Availability zone 9. If you have not created any groups, leave it as No group 10. Click Create Volume You will get volume creation status as: Once created, you will find volume entry with status as Available. If volume creation fails, status will be Error. When an instance is attached to this volume, the status will be In-Use and Bootable will turn to Yes.

Network Setup for Remote Access in OpenStack

This post will elaborately discuss how to set up your openstack environment for remote access. Description: Openstack has already created two networks during installation process: namely, (i) public and (ii) shared. We have to connect to a router to get remote access.  For this, we will need to create two interfaces to establish connectivity. (i) Gateway Interface between Router and Public Network. (ii) Interface-1 between Shared Network and Router. The instance will have to be assigned to the shared network as below: This is the overall structure we need to achieve to ensure that the Instance will have Remote Access from the Public Network. Setting up Remote Access: Login to openstack dashboard with the credentials. 1. View Network Topology       (1) Go to Project -> Network -> Network Topology       (2) Switch to the graph tab and view the existing networks       (3) Check it again af...

Access Openstack outside Virtual Machine

This blog is about how to access openstack dashboard outside the virtual machine. Configuration Details: In order to access OpenStack outside the Virtual Machine, you have to make few network settings in the hypervisor. Here, I have made use of Virtual Box to enable certain configuration. The idea is the same but the way we do may differ from hypervisor to hypervisor. Check your hypervisor's complete details on network configuration. The configuration below are made for 2 kinds of systems: (1) Host  It uses Host-Only Adapter configuration. Only the host and other guest machines installed in the host can access.       (2) Systems in the same network It uses Bridged Adapter configuration. All systems connected to the network, including the guests and host, can access.    Steps to reach Network in Settings: 1. Choose your VM and click on Settings 2. In settings, Navigate to Network The Adapter 1 is attached to ...

OpenStack Installation on Virtual Machine running Ubuntu

OpenStack  OpenStack is a free and open-source software platform for cloud computing. It is deployed as infrastructure-as-a-service (IaaS) Official Website:    https://www.openstack.org/ Picture Courtesy:   https://en.wikipedia.org/wiki/OpenStack Now, we will see how to deploy OpenStack on a Virtual Machine using Devstack. What is DevStack? DevStack is a series of extensible scripts used to quickly bring up a complete OpenStack environment based on the latest versions of everything from git master. It is used interactively as a development environment and as the basis for much of the OpenStack project’s functional testing. To know more,  please refer to:    https://docs.openstack.org/devstack/latest/ OpenStack Installation Click here to know how to create a Virtual Machine    1.    Minimum Configuration (1)   RAM - Minimum 4GB   (Recommended 5GB & above) (2...