Cloudstack integration with AzureAD

Navigate to Azure portal > Services > Azure Entra ID Click on Enterprise Applications > Create a New Application Click on Create your own Application and provide a name. Select Integrate any other application you don’t find in the gallery (Non-gallery) > Create Once in the Application, click on Set up Single Sign-on and choose SAML Make sure SSL is enabled on the Cloudstack management server. Login to Cloudstack UI > Global settings > Access > Saml and set the following: saml2.enabled=true saml2.redirect.url=http://<mgmtip>:8080/client saml2.sp.slo.url=http://<mgmtip>:8080/client saml2.sp.sso.url=http://<mgmtip>:8080/client/api?command=samlSso Restart the Cloudstack Management service and execute the API to get the SP Metadata for Cloudstack https://cloudstack.apache.org/api/apidocs-4.19/apis/getSPMetadata.html > curl > [http://\<mgmt\>:8080/client/api?command=getSpMetadata](http://10.0.32.234:8080/client/api?command=getSpMetadata) \> > metadata.xml Upload the generated metadata XML into Azure Entra ...

August 18, 2025 · 2 min · Kiran Chavala

Monitoring Apache Cloudstack with Prometheus and Grafana

Monitoring Cloudstack with Prometheus and Grafana Cloudstack supports prometheus integration and it exports various metrics for the prometheus server to Scrape Enable prometheus integragration on Cloudstack Management server Enable prometheus plugin in Cloudstack Management server Login to the database or enable the following global setting parameters prometheus.exporter.enable : Enable the prometheus exporter plugin, management server restart needed. prometheus.exporter.allowed.ips: List of comma separated prometheus server ips (with no spaces) that should be allowed to access the metrics endpoint. ...

May 11, 2023 · 3 min · Kiran Chavala

Building Cloudstack on Ubuntu 22.04

Building cloudstack on Ubuntu 22.0.4 Apache CloudStack is open source software designed to deploy and manage large networks of virtual machines, as a highly available, highly scalable Infrastructure as a Service (IaaS) cloud computing platform. CloudStack is used by a number of service providers to offer public cloud services, and by many companies to provide an on-premises (private) cloud offering, or as part of a hybrid cloud solution. https://cloudstack.apache.org/ http://docs.cloudstack.apache.org/en/latest/ Install the following packages sudo add-apt-repository universe sudo apt-get update sudo apt-get dist-upgrade sudo apt-get install cpu-checker build-essential zlib1g-dev libffi-dev libssl-dev libbz2-dev libreadline-dev libsqlite3-dev liblzma-dev vim git subversion mercurial patch rsync curl wget sed openssh-client gpg gnupg2 gzip bzip2 zip unzip p7zip-full p7zip-rar python-is-python3 openjdk-11-jdk maven mysql-server mysql-client bzip2 nfs-common uuid uuid-runtime python-setuptools python3-setuptools ipmitool genisoimage nfs-kernel-server quota python3-dev python3-openssl jq Install git apt install git Install Python and pyenv ( in order to manage multiple python versions) brew install python brew install pyenv Pouplate the .zshrc to ...

May 1, 2023 · 3 min · Kiran Chavala

Building Cloudstack on Mac Os

Building cloudstack on Mac os Apache CloudStack is open source software designed to deploy and manage large networks of virtual machines, as a highly available, highly scalable Infrastructure as a Service (IaaS) cloud computing platform. CloudStack is used by a number of service providers to offer public cloud services, and by many companies to provide an on-premises (private) cloud offering, or as part of a hybrid cloud solution. https://cloudstack.apache.org/ http://docs.cloudstack.apache.org/en/latest/ Install Brew ( package manager) /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" Install git brew install git Install Python and pyenv ( in order to manage multiple python versions) brew install python brew install pyenv Pouplate the .zshrc to ...

May 1, 2023 · 3 min · Kiran Chavala

Using Cloudinit in Cloudstack

Launch any linux vm (Centos, Ubuntu etc) from a iso Install the cloud init package RHEL: yum install cloud-init Ubuntu : apt-get install cloud-init Configure the cloud init by adding the cloudstack datasource package vi /etc/cloud/cloud.cfg.d/99_cloudstack.cfg datasource_list: [ CloudStack, None ] Create a template of the disk Launch a vm based on the template created and pass the userdata parameter deploy virtualmachine serviceofferingid=720d1320-06d7-4918-9f2a-ef5ba7e07bf3 templateid=0d9bf1f4-288d-4510-b2c5-8e980c51c98d zoneid=10a26e0d-2085-4b09-bd0f-c726a6bd9443 networkids=cf8fcdb8-741c-4f98-b856-adc4fd99c157 userdata=I2Nsb3VkLWNvbmZpZwpydW5jbWQ6CiAgLSBta2RpciAvcnVuL2tpcmFuCiAgLSBlY2hvIGtpcmFuIHNheXMgaGkgPj4gL3J1bi9raXJhbi9zYW1wbGUudHh0CiAgLSBbIHNoLCAteGMsICAvcm9vdC9zdXJlZWRnZV9zZXJ2ZXJfdXRpbGl0eV9pbnN0YWxsZXIuc2ggLS10b2tlbiAxNDY2Q0IxNTc3NzdCQjcyIF0= Note: Make sure the userdata is encoded in base64 format if calling from Api , if you are passing the userdata from UI , there is no need to encode it ...

November 10, 2022 · 1 min · Kiran Chavala

Logstash Cloudstack

Using Elastic search is a great tool to analysze logs generated by your application Elastic search is made up of 3 parts Elastic search –> the core search engine Logstah –> to parse the logs Kibana –> visualization Here i have imported the cloudstack management server logs to the ELK and I can perform various analytics Follow the below link to set up your elk infrstructure https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elastic-stack-on-ubuntu-18-04 Once done make sure your elastic, logstash, and kibana process are able to communicate with each other ...

June 13, 2021 · 1 min · Kiran Chavala

Terraformcloudstack

Terraform is a tool to deploy resources on cloud It is an infrastructure as code tool Generally the plugins are available at https://registry.terraform.io/ To use the plugins which are archived and not available in the terraform registry Follow the steps a small tweak is necessary Currently the cloudstack plugin is archived https://github.com/hashicorp/terraform-provider-cloudstack https://github.com/hashicorp/terraform-provider-cloudstack/blob/stable-website/website/docs/index.html.markdown Download the terrform provider for cloudstack based on the os you are running https://releases.hashicorp.com/terraform-provider-cloudstack/0.3.0/ On linux and mac Move it ...

May 31, 2021 · 1 min · Kiran Chavala