Nested cloud structure with Azure and OpenStack, and resource monitoring with Datadog
Table of contents
- A virtual machine is created in Azure
- Connected to Azure VM using Putty
- Installing Openstack in Ubuntu
- Creating an instance of cirros image with the name rupak-is-testing
- Horizon dashboard (https::/public-ip:443)
- Running instance in horizon dashboard
- A Datadog account is created
- Installing Datadog agent in Ubuntu
- Datadog dashboard
- Conclusion
In this project, I will be creating Ubuntu VM in the Azure cloud and then installing OpenStack inside the Linux. An instance of an image will be created inside OpenStack and a Datadog agent will also be installed. The Openstack’s horizon dashboard and Datadog dashboard will be then accessed from a remote web browser.
A virtual machine is created in Azure
Initially, an Azure account is created with a student subscription.
Ubuntu VM is then created with the following specification:
Operating system: Linux (ubuntu 20.04)
Size: Standard D4s v3 (4 vcpus, 16 GiB memory)
Public IP address: 4.205.15.163
SSH is enabled.
A key pair is generated and downloaded while creating a new VM.
Connected to Azure VM using Putty
A third-party application, Putty is used to connect the virtual machine using ssh.
Putty-gen is automatically installed while installing Putty. Putty-gen is used to create a key pair of a client machine to connect to VM and is added to the Azure account.
Putty-gen is also used to convert .pem file to .ppk file.
To connect to vm two things must be configured in Putty:
- Add private key in Connection>SSH>Auth>Credentials>Private key
- Add username@public-ip in Session>HostName (or IP address)
Installing Openstack in Ubuntu
After connecting to Ubuntu, Openstack is installed using the following commands:
Installing openstack: sudo snap install microstack –beta
Installing services of openstack: sudo microstack init –auto –control
Reference: ubuntu.com/openstack/install
Creating an instance of cirros image with the name rupak-is-testing
Creating image of cirros instance: microstack launch cirros -n rupak-is-testing
Horizon dashboard (https::/public-ip:443)
Horizon dashboard is available by default, if not, can be installed with command: sudo apt install openstack-dashboard
Accessing horizon dashboard
In a remote web browser, type https::/public-ip:443
A login window will appear:
User Name: admin
Password: <sudo snap get microstack config.credentials.keystone-password
\>
Horizon Dashboard will appear.
Running instance in horizon dashboard
Ubuntu theme of OpenStack dashboard.
A Datadog account is created
Creating datadog account
Go to: datadoghq.com and create a new account. A free account will be available for 15 days.
To create datadog dashboard
Go to Dashboards>New Dashboard
Give the dashboard name. Add widgets and powerpacks as per your requirement.
Installing Datadog agent in Ubuntu
An agent command will be available in your datadog account> Integrations>Agent , here I choose ubuntu and used the corresponding API KEY to install datadog agent.
Datadog dashboard
Conclusion
Anyone who completes this project will be able to understand the Virtual Machine of a public cloud (Azure), gain insights about the open-source cloud computing platform (OpenStack) and a widely used monitoring tool (Datadog).
Thank you for reading! Happy learning!